# 1 accept the following information from the user keyboard hw1 hw2 and hw3 out of 100 5346365

1) Accept the following information from the user(keyboard):

– Hw1, hw2 and hw3 (out of 100)

– Midterm (out of 100)

– Final exam (out of 100)

Calculate the total grade out of 100 based on the following gradingscale:

Hws         –>    30% (10% each)

Midterm      –>   30%

Final Exam   –>    40%

Test Data:

(a)

Hw1: 0

Hw2: 0

Hw3: 0

MT: 0

Final : 0

Overall Grade: 0 out of 100

(b)

Hw1: 100

Hw2: 100

Hw3: 100

MT: 100

Final : 100

Overall Grade: 100 out of 100

(c)

Hw1: 80

Hw2: 90

Hw3: 70

MT: 50

Final : 80

Overall Grade: 71 out of 100

2) Write a complete program that calculates and displays theproduct of three integers

Test Data:

(a)

Integer 1: 1

Integer 2: 2

Integer 3: 3

Product of 1, 2 and 3 is 6

(b)

Integer 1: 10

Integer 2: 20

Integer 3: 30

Product of 10, 20 and 30 is 6000

3) Write a program that reads the value (x) from keyboard andcalculates y based on the following

formula:

y = 6x^2 + 12x – 27

Test Data:

(a)

Enter x = 2

y = 21

(b)

Enter x = -3

y = -9

4) Write a program that inputs an integer that represents a lengthof time

in seconds. The program should then output the number ofhours, minutes,

and seconds that corresponds to that number of seconds. Forexample, if

the user inputs 50391 total seconds then the program should output13

hours, 59 minutes, and 51 seconds.

Output:

Enter a time in seconds.

34567

34567 total seconds is equivalent to 9 hours, 36 minutes, and 7seconds.

5) The workers have won a 7.6% pay increase, effective 6 months

retroactively. This program is to accept the previous salary,

then outputs the retroactive

pay due the employee, the new annual salary, and the new

monthly salary.

Output:

Enter current annual salary.

I&#39;ll return new annual salary, monthly salary, and retroactivepay.

1000

new annual salary 1076

new monthly salary 89.6667

retroactive salary due: 38

The compiler I use is Bloodshed DevC++. I&#39;m not sure if that makesa difference.