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
image text in transcribed

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

1 2 3 Data Base Techniques

Authors: Dick Andersen

1st Edition

0880223464, 978-0880223461

More Books

Students also viewed these Databases questions

Question

1. What are the differences between analytic and holistic thinking?

Answered: 1 week ago