Access Millions of academic & study documents

After finishing the lab students understand clearly about how to u

Content type
User Generated
Showing Page:
1/3
After finishing the lab students understand clearly about
-how to use cin, cin.get and getline to read data from
keyboard
-how to display the information in columns
-how to display the information in the double numbers with
1 decimal digitPART2:
REQUIREMENT STATEMENT
Create an application such that the users can use to
caluclate the average of the time and the distance
that they exercised during a week from Monday to Sunday.
The application should allow users to enter
the name, the date to start on Monday, the datat on
Sunday, the totals of minutes (int) and the number
of miles (double) that they did everyday then displaying the
output as belows:
WHAT WE NEED TO KNOW TO DO THE PROGRAM
-display information on the screen
-read int, double and string with blank that are entered
from the keyboad
-calculate average
-display decimal number with 1 decimal digit
-display information in columns with left or right indent
(what we learned to do lab2)
-erase the output window before displaying the result:
using system(cls);
PSUEDO-CODE
You already learn about pseudo-code, provide the pseudo-
code as the comment lines at the top of the source file
HOW TO DO THE LAB
-Create the project named
SU22016LAB3_PART2_yourLastName then add the source
filee named
SU22016LAB3_WeekylyExcerciseSheet_yourLastName
-Based on the pseudo-code, write the code
-compile and run to ensure you have all the required from

Sign up to view the full document!

lock_open Sign Up
Showing Page:
2/3
the HOW TO GRADE THE LAB
Solution
Write \"Enter the student\'s name\".
Input Student
test1 = 0
test2 = 0
test3 = 0
Write GradeFile, Student, test1, test2, test3
While Student <> \"ZZZ\"
Write \"Enter the student\'s name\".
Input Student
Write GradeFile, Student, test1, test2, test3
End While
Close GradeFile
Open \"GRADES\" For Input as GradeFile
While Not EOF(GradeFile)
Read GradeFile, Name, Score1, Score2, Score3
Score = Score1 + Score2 + Score3
Write Name, \" \", Score1 , \" \", Score2, \" \" , Score3, \" \",
Score

Sign up to view the full document!

lock_open Sign Up
Showing Page:
3/3

Sign up to view the full document!

lock_open Sign Up
Unformatted Attachment Preview
After finishing the lab students understand clearly about -how to use cin, cin.get and getline to read data from keyboard -how to display the information in columns -how to display the information in the double numbers with 1 decimal digitPART2: REQUIREMENT STATEMENT Create an application such that the users can use to caluclate the average of the time and the distance that they exercised during a week from Monday to Sunday. The application should allow users to enter the name, the date to start on Monday, the datat on Sunday, the totals of minutes (int) and the number of miles (double) that they did everyday then displaying the output as belows: WHAT WE NEED TO KNOW TO DO THE PROGRAM -display information on the screen -read int, double and string with blank that are entered from the keyboad -calculate average -display decimal number with 1 decimal digit -display information in columns w ...
Purchase document to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.
Studypool
4.7
Indeed
4.5
Sitejabber
4.4

Similar Documents