Question: Business requirements: ( Grade Point Average Calculation File Processing ) Often programmers will need to update and maintain a program they already developed and is
Business requirements:Grade Point Average Calculation File ProcessingOften programmers will need to update and maintain a program they already developed and is in use. This week, we will update lab where we developed a Grade Point Calculation program.The update is to:
Use a file to read and write student grade point average information
We will store the data into a structure.
Then write to a file called student.dat.R
ead the data from the filestudent.dat and display data on the screen.
Other than using files to read and write too, we will use the same requirements from lab :
Show me the Steps to Write a program to prompt a teacher to enter student information to calculate grade point average GPAby prompting user to enter number of students, number of classes taken, student idfirst name, last name, and grades received in a semester. The program will display student information and calculated GPA.
Technology requirements:
Use a structure to store student information:
Student ID an integer number entered by userS
tudent First Name entered by user character array string
Student Last Name entered by user character array string
Calculate GPA based on letter grades and number of classes taken float data type
User to input number of students to calculate grades for
User to input number of classes each student taken.
Use of function to calculate and return the GPA
Function will ask user to enter letter grade for each classuse a switch statement for valid letter grades of ABCDand F invalid letters must be reentered
Each case converts each letter to a numeric grade to then total up and divide by number of courses.A B C D F
Function returns GPA total grade points divided by number of courses.
Store return value of GPA into student structure.
Write the student data to a file: do not write each grade to the file, just the GPAHere is the data to be written and read from the student.dat file:
Student ID
Student First Name
Student Last Name
Student GPA
Read student data from the file and display the student data on the screen student Idstudent first name, student last name, GPA
Pseudo code.Remember the Input, process, output model. Look at what the input should bewhat the process isand what the output should beUse the code examples in the book and our week lab to understand how to code the input, process, and output.First go into the problem statements above and highlight what needs to be done. Remember chapter the decomposition and using stepwise analysis when developing an algorithmpseudo code. You will create one array in this program.Pseudocode is part of your design and documentation grade.
Please submit your pseudocode with your code and screenshots of test cases. You will also need screenshots of the student.dat file or upload the student.dat file.
Test Data:
School Grade Transaction Processing System
Enter student data:
Enter Number of students to enter grades for:
Enter information for Students:
Student ID:
Enter first name: Bill
Enter last name: Studious
Enter Number of Grades to enter:
Enter Letter Grade: A
Enter Letter Grade: A
Enter Letter Grade: b
Student ID:
Enter first name: Charles
Enter last name: Brown
Enter Number of Grades to enter:
Enter Letter Grade: C
Enter Letter Grade: D
Displaying Student Information from file student.dat:
Student Id:
First Name: Bill
Last Name: Studious
GPA:
Student Id:
First Name: Charles
Last Name: Brown
GPA:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
