Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You will need to read the data from a file named gradebook.txt . ( A sample has been provided in the starter code. ) The
You will need to read the data from a file named gradebook.txtA sample has been provided in the starter code. The file will contain lines of information. Each line will have a student id student first name, student last name, percent earned, and letter grade. You will need to read the data into variables of the appropriate data type. You will then print the data in the console using manipulators to format the data into a table. The decimal numbers should be formatted to decimal places, and the percent should be displayed with a sign in the output. Remember that the file provided is just a sample and your code will be tested using files that contain different student and grade information. You can set up your own test by replacing information in the sample file with new data. Your code should always display what is in the file in the proper format.
Sample Output
Student Num Student Name Percent Grade
Tucker Guidi B
Stylianos Griffin A
Marika Mohan F
Alwilda Caruso A
Cyrus Douglas A
Starter Code
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started