Answered step by step
Verified Expert Solution
Link Copied!

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.txt.(A sample has been provided in the starter code.) The file will contain 5 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 3 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 |
+----------------+-------------------------------+-----------+-----------+
|80362| Tucker Guidi |82.835%| B |
+----------------+-------------------------------+-----------+-----------+
|63985| Stylianos Griffin |94.789%| A |
+----------------+-------------------------------+-----------+-----------+
|42846| Marika Mohan |32.531%| F |
+----------------+-------------------------------+-----------+-----------+
|40394| Alwilda Caruso |96.408%| A |
+----------------+-------------------------------+-----------+-----------+
|62987| Cyrus Douglas |98.919%| A |
+----------------+-------------------------------+-----------+-----------+
Starter Code

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_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions

Question

4. Does every individual feel included, accepted, and understood?

Answered: 1 week ago

Question

2. Explain how the role of training is changing.

Answered: 1 week ago

Question

7. General Mills

Answered: 1 week ago