Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. (20 points) Develop a C+t progran named lww2.cpp that reads a data file holding the records of students' id and scores of two exams.

image text in transcribed
image text in transcribed
1. (20 points) Develop a C+t progran named lww2.cpp 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 progrm should print out the students amanged from highest namenc average, to lowest. The output should go back to the console, not a file. You should create a smict to hold the student's id, numeric average, and letter grade. Furthermore, you are to use an array to bold this data. Note, you will not hav y an array within your struct declaration. The following shows a sample input data file. Pleave note that the file hax the number of students as the first line. Sample Input File 51000200030004000500087.0100.079.099.065.092.5100.081.098.561.9 A sample run of your program might look like thin. Note that the user's inpat are highlighted in bold. Sample Execution Enter an input file: c:/css2//input, txt Courne Report 2000=100.00(A) 6000=98.75(A) Your program will be graded based on 1. Compilation without error: 2 Correct outpot renult. 3. Good propramnung structure such as indentation and blank line to mprove resdability. 4. Comments. (Title, Abutract, Author, and Date are maadatory) If you have finctions in your projram, you also nend to provide the "abutrich of each fanction

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

Data Analysis In Microsoft Excel

Authors: Alex Holloway

1st Edition

B0CCCPKTTX, 979-8852388452

More Books

Students also viewed these Databases questions

Question

LO 25-2 What are the varieties of sexual behavior?

Answered: 1 week ago

Question

=+18-4 Describe the loca- tion and function of feature. detectors.

Answered: 1 week ago

Question

solve question 1

Answered: 1 week ago

Question

What are the purposes of promotion ?

Answered: 1 week ago

Question

Define promotion.

Answered: 1 week ago

Question

Write a note on transfer policy.

Answered: 1 week ago

Question

Stages of a Relationship?

Answered: 1 week ago