Menu option A -- Determine Hours to Study The program will READ in data from a text file named StudyHours.txt. The user corrects any bad data. The program updates the information in StudyHours.txt file. For example if the file contains a letter grade of K which is not a possible letter grade. You will create and submit a text file with a minimum of 5 additional records from example below. The file is named StudyHours.txt and contains the following format: first line full name second line number of credits third line grade desired for each class Example format StudyHours.txt file Aaron RODgers 12 A Tom brady 9 K philip Rivers apple c Joe Theismann 15 B
Menu option A -- Determine Hours to Study
The program will READ in data from a text file named StudyHours.txt. The user corrects any bad data. The program updates the information in StudyHours.txt file. For example if the file contains a letter grade of K which is not a possible letter grade. You will create and submit a text file with a minimum of 5 additional records from example below. The file is named StudyHours.txt and contains the following format:
first line full name
second line number of credits
third line grade desired for each class
Example format StudyHours.txt file
Aaron RODgers
12
A
Tom brady
9
K
philip Rivers
apple
c
Joe Theismann
15
B
The program determines the total weekly study hours (for all classes)
All data must be displayed in proper case such as Wendy Payne, i.e. no names should be in all lower case or all upper case or a mix such as wendy or PaYNe. Use a function to convert to proper case.
The program displays the student’s name, number of credits, expected total number of weekly study hours, and desired grade
The information from 4.4 is also appended to a file named HowManyHours.txt in alphabetical order (by firstname) in the following format:
first line full name
second line number of credits
third line study hours
fourth line grade
Example format HowManyHours.txt file
Aaron Rodgers
12
36
A
Joe Theismann
15
45
C
Philip Rivers
3
15
A
Tom Brady
9
15
C
MUST USE FUNCTIONS
Trending now
This is a popular solution!
Step by step
Solved in 5 steps with 5 images