Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i/Downloads/hw?-css23%20(2).pdf 1.(20 points) Develop a C++ program named hw2.epp that reads a data file holding the records of students' id and scores of two exams.

image text in transcribed

i/Downloads/hw?-css23%20(2).pdf 1.(20 points) Develop a C++ program named hw2.epp that reads a data file holding the records of students' id and scores of two exams. Your program should determine the numeric average and letter grade of each student (there will be 30 students, at most). Then, your program should print out the students arranged from highest numeric avernge, to lowest. The output should go back to the console, not a file. You should create a struct to hold the student's id, numeric average, and letter grade. Furthermore, you are to use an array to hold this data. Note, you will not have an array within your struct declaration The following shows a sample input data file. Please note that the file has the number of students as the first line. Sample Input File 1000 87.0 92.5 2000 100.0 100.0 3000 79.0 81.0 4000 99.0 98.5 5000 65.0 61.9 A sample run of your program might look like this. Note that the user's input are highlighted in bold Sample Execution Enter an input file: C:/CSS2A/input.txt hw2-css2a (1)pof @o

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

Students also viewed these Databases questions

Question

What are the determinants of cash cycle ? Explain

Answered: 1 week ago

Question

1. Identify six different types of history.

Answered: 1 week ago

Question

2. Define the grand narrative.

Answered: 1 week ago

Question

4. Describe the role of narratives in constructing history.

Answered: 1 week ago