Questions: 11 448

Answers by our Experts: 10 707

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Select all devices that can be used by the Arduino as outputs




Light sensor



Buttons



Temperature sensor



Electromagnets

What will be the value of the answer variable be after the code segment below has run



Int answer= 84;


Int number 35 = 17;


Number 59 = 4;



Answer% = number 35- number 59

Bool solution ;




Int number 2= 10



Number 7 = 25



Number 9 = 16




Solution = number 2>= 7 & & number 2>number9

Write a program which reads salaries of 10 employees of an organization. The program will tell, what the maximum salary is and what the minimum salary is 


Write a program that takes the marks from the user and tells the grade corresponding to the marks. The marks and corresponding grades are mentioned below:

Marks Grades

Greater than 90 A

Greater than or equal to 86 and less than 90 A-

Greater than or equal to 81 and less than 86 B+

Greater than or equal to 77 and less than 81 B

Greater than or equal to 72 and less than 77 B-

Greater than or equal to 68 and less than 72 C+

Greater than or equal to 63 and less than 68 C

Greater than or equal to 58 and less than 63 C-

Greater than or equal to 54 and less than 58 D+

Greater than or equal to 50 and less than 54 D

Below 50 F


















Write a program that able to compute the pay of both types of employees: retired one’s and employed, the retired employees will receive pension and it will be computed and displayed with proper variables and messages. The pension of the employer will be fixed and will be computed on the basis of age, if the age of the retired employer is between 60 to 70 years then its pension will be 30000 and if the age is greater than 70 then the pension will be 40000. The pay of the employer will be computed on daily worked hours and the net pay will be shown with the proper messages of gross salary. The pay of the employer will be 1000 rupees per day if he/she worked for 8 hours and if it works more than 8 hours, then he will be paid 300 rupees per hour but the extra time can only be utilized at maximum of 3 hours.


Question 2a: Explain further on the three main principles of Object-Oriented Programming


2b: More Details on each one How it works on C++ with 2 examples each


Write a program in c++ and implement all basic operation (create new node, search element in list, delete from list etc) in doubly linked list

Draw a flowchart from this algorithm.


Start

Declare variable kilowattHour

Declare variable amountDue

Declare variable i

for i=1 to 100 Step 1

Read kilowattHour from the user

if kilowattHour<=300 then

amountDue=kilowattHour*25.00

else

amountDue=300*25.00+(kilowattHour-300)*30.00

End if

Display amountDue

end for

Stop


Based on the given main menu create a program that will compute the Total Fine 

                    ----  Violation Code and Penalties -----

053 - Disobedience to traffic control signals/signs - 350 pesos

054 - Driving tricycle on national road - 350 pesos

055 - Driving without license - 700 pesos

056 - Discrimination of passengers/trip cutting - 700 pesos


        ---- Offense Code ----

1 - First Offense

2 - second Offense

3 - Third Offense


Enter Code:

Enter Offense Code:



For the first offense, there is no extra penalty; for the second offense, there is a 5% additional penalty based on the existing penalty; and for the third offense, there is a 10% additional penalty based on the existing penalty. The 12% Tax is also included in the computation of the Total Fine.



LATEST TUTORIALS
APPROVED BY CLIENTS