Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Menu option B -- Determine Grade The program will READ in data from a text file named Grades.txt. The user corrects any bad data. The

Menu option B -- Determine Grade The program will READ in data from a text file named Grades.txt. The user corrects any bad data. The program updates the information in Grades.txt file. For example, if the file contains 55 credits which exceeds the max credits you can take during one semester. You will create and submit a text file with a minimum of 5 records in addition to the example below. The file is named Grades.txt and contains the following format: first line full name second line number of credits third line study hours

Such as Patrick Mahomes 12 36 DesHAun waTson 9 apple drew BrEeS 55 15 JULIO JONES 15 45

The program determines the grade, assuming its the same grade for each class 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 module(s) to convert to proper case. The program displays the students name, number of credits, total weekly study hours, and desired grade The information from 5.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 60 A Joe Theismann 15 60 B Philip Rivers 3 15 A Tom Brady 9 36 B

@*That is the problem we are trying to resolve. The grades.txt file will contain a full name, study hours, and credits ( above has examples, makeup info if needed) and wants the program to determine what grade they are going to acheive by the amount of study hours. Here are the parameters for that. The new information will be displayed Student, Grade, Study Hours, and Credits.The grades.txt will be read in, the program will determine the grade according to the study hours, and the grade, study hours, credits, and name will all be written to the file to update.

15 hours per class A

12 hours per class B

9 hours per class C

6 Hours per class D

I need this all under a function called determine grade PLEASE

6 or less hours per class 0

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Harness The Power Of Big Data The IBM Big Data Platform

Authors: Paul Zikopoulos, David Corrigan James Giles Thomas Deutsch Krishnan Parasuraman Dirk DeRoos Paul Zikopoulos

1st Edition

0071808183, 9780071808187

More Books

Students also viewed these Databases questions