Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ogramming Exercise 9-2 Instructions Ch9_Ex2Data.txt Ch9_Ex2Out.txt 1 Duckey Donald 85 2 Goof Goofy 89 Instructions 3 Brave Balto 93 4 Snow Smith 93 Write a

image text in transcribed
ogramming Exercise 9-2 Instructions Ch9_Ex2Data.txt Ch9_Ex2Out.txt 1 Duckey Donald 85 2 Goof Goofy 89 Instructions 3 Brave Balto 93 4 Snow Smith 93 Write a program that reads students' names followed by their test 5 Alice Wonderful 89 scores. The program should output each student's name followed by 6 Samina Akthar 85 the test scores and the relevant grade. It should also find and print the 7 Simba Green 95 highest test score and the name of the students having the highest B Donald Egger 90 9 Brown Deer 86 test score. 10 Johny Jackson 95 11 Greg Gupta 75 Student data should be stored in a struct variable of type 12 Samuel Happy 80 student Type , which has four components: studentFName and 13 Danny Arora 80 studentLName of type string, testScore of type int ( 14 Sleepy June 70 testScore is between 0 and 100), and grade of type char . 15 Amy Cheng 83 16 Shelly Malik 95 Suppose that the class has 20 students. Use an array of 20 17 Chelsea Tomek 95 components of type student Type . Your program must contain at 18 Angela Clodfelter 95 least the following functions: 19 Allison Nields 95 20 Lance Norman 88 . A function to read the students' data into the array. A function to assign the relevant grade to each student. . A function to find the highest test score. A function to print the names of the students having the highest test score. Your program must output each student's name in this form: last name followed by a comma, followed by a space. followed by the first name: the name must be left justified. Moreover, other than declaring the variables and opening the input and output files, the function main should only be a collection of function calls. Your program should accept no input and save the output to Ch9_Ex2Out.txt

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

Mobile Communications

Authors: Jochen Schiller

2nd edition

978-0321123817, 321123816, 978-8131724262

Students also viewed these Programming questions