Create a complete C++ program that will read from a file, "studentInfo.txt", the user ID for a student (a number, but use a string to hold it). Next it will need to read three integer values that will represent the 3 exam scores the student got for the semester. Once the values are read and stored in descriptive variables it will then need to calculate a weighted course average for that student. Below is an example of what the calculation would be for the program. score1 * .3 + score2 * .3 + score3 * .4 The program will then determine the letter grade for that student and write the user ID and the letter grade to a file "studentGrade.txt" The standard grading scale will be used: A --> 90 – 100 B --> 80 - 89.99 C --> 70 - 79.99 D --> 60 - 69.99 F --> below 60 To keep from the user being confused as if anything happened or not, give them a ending statement i.e. Something like the following: Program has completed and the output can be found in 'studentGrade.txt' Files Referenced StudentInfo.txt

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Topic Video
Question
100%

Create a complete C++ program that will read from a file, "studentInfo.txt", the user ID for a student (a number, but use a string to hold it). Next it will need to read three integer values that will represent the 3 exam scores the student got for the semester. Once the values are read and stored in descriptive variables it will then need to calculate a weighted course average for that student.

Below is an example of what the calculation would be for the program.

score1 * .3 + score2 * .3 + score3 * .4

The program will then determine the letter grade for that student and write the user ID and the letter grade to a file "studentGrade.txt"

The standard grading scale will be used:

A --> 90 – 100
B --> 80 - 89.99
C --> 70 - 79.99
D --> 60 - 69.99
F --> below 60

To keep from the user being confused as if anything happened or not, give them a ending statement i.e. Something like the following:

Program has completed and the output can be found in 'studentGrade.txt'

Files Referenced

StudentInfo.txt

2437 61 92 79
9065 82 63 95
9816 71 92 59
4607 83 91 95
9747 69 99 61
2481 92 86 59
3893 62 70 71
5735 65 91 68
3735 98 77 68
8085 90 63 97
3247 72 96 89
6548 56 52 56
5859 100 99 68
4740 89 80 97
4424 72 72 69
5494 67 87 70
6114 71 87 96
5700 100 64 79
9890 93 92 92
6786 73 79 97
Transcribed Image Text:2437 61 92 79 9065 82 63 95 9816 71 92 59 4607 83 91 95 9747 69 99 61 2481 92 86 59 3893 62 70 71 5735 65 91 68 3735 98 77 68 8085 90 63 97 3247 72 96 89 6548 56 52 56 5859 100 99 68 4740 89 80 97 4424 72 72 69 5494 67 87 70 6114 71 87 96 5700 100 64 79 9890 93 92 92 6786 73 79 97
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 4 images

Blurred answer
Knowledge Booster
Instruction Format
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education