Computers and Technology

1. Write a program that accepts three integer numbers. Compute the sum and the average of the three numbers. [2 marks] Expected output:
Enter first number: 10
Enter second number: 20
Enter third number: 30
Total: 60
Average of 10, 20 and 30 = 20
2. Write a program that reads numbers of days from the user and converts it to weeks, months and years. [2 marks]
Expected output:
Enter number of days: 200
200 days is 28.57 weeks,
200 days is 6.67 months,
200 days is 0 years.


1. Write a program that accepts three integer numbers. Compute the sum and the average of the three

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 21:00, 1991987
When a rectangular region is defined using an appropriate style, which value matches the specified edge of the clipping region to the edge of the parent element?
Answers: 3
image
Computers and Technology, 22.06.2019 17:40, pnhandley01
Consider the simple 3-station assembly line illustrated below, where the 2 machines at station 1 are parallel, i. e., the product only needs to go through one of the 2 machines before proceeding to station 2.what is the throughput time of this process?
Answers: 2
image
Computers and Technology, 23.06.2019 09:00, paulusl19
The first screen you see when you open word2016 what is called?
Answers: 1
image
Computers and Technology, 24.06.2019 09:00, king514
Technician a says that a new replacement part is always good. technician b says that sometimes recent repair work will be the cause of a complaint. who is correct? a. both technicians a and b b. technician a c. technician b d. neither technician a nor b
Answers: 3
Do you know the correct answer?
1. Write a program that accepts three integer numbers. Compute the sum and the average of the three...

Questions in other subjects:

Konu
Business, 30.03.2020 13:12
Konu
Mathematics, 30.03.2020 13:22