Threesuns

Email the Instructor

Contact

All Semesters

Semesters

All Courses

Courses

2016Summer

06.06.16 - 07.31.16

C Language

CSCI2473

Tuesday Thursday
09:30 AM - 12:20 PM

Total and Average

Lab04

Objective: To work with integer and floating point types

pastdue

Submit Your Solution

Lab04

Request a Copy of your Solution

Lab04

Requirements

Calculation for total is correct20 pts
Total and average are displayed correctly20 pts
Calculation for average is correct to two decimal places30 pts
Most appropriate datatype is used for all variables20 pts
Program compiles with no errors or warnings 5 pts
All required prompts and inputs are preformed correctly5 pts
Total100 pts

Instructions

For this lab you will need to write a C program that will prompt for and allow the user to enter 10 integer numbers. Your program is not responsible for the user entering anything other than integers.

Once the required input has been complete your program should then calculate the total and the average of all of the numbers that were entered.

The final step is for the program to display the total and average that were calculated. The average should be displayed to 2 decimal points.