Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ Program: Create a data file to store student names and test score, testScore.txt Write a program will will readthe data from the data file

C++ Program: Create a data file to store student names and test score, testScore.txt

Write a program will will readthe data from the data file and compute averageScore

averageScore = 0.15*(test1 + test2) + 0.2 * midterm + 0.3 * final + 0.2 * homeworks

then,compute the grade by using

averageScore: 90 - 100, grade = 'A'

80 - 89, grade = 'B'

70-79, grade = 'C'

60-69, grade = 'D'

< 60, grade = 'F'

Print the following for each student

LastName FirstName averageScore Grade

Save the results in a an output file


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

More Books

Students also viewed these Databases questions

Question

Explain how cultural differences affect business communication.

Answered: 1 week ago

Question

List and explain the goals of business communication.

Answered: 1 week ago