subject

Write a program that reads students’ names followed by their test scores. the program should output each student’s name followed by the test scores and the relevant grade. it should also find and print the highest test score and the name of the students having the highest test score. student data should be stored in a struct variable of type studenttype, which has four components: studentfname and studentlname of type string, testscore of type int (testscore is between 0 and 100), and grade of type char. suppose that the class has 20 students. use an array of 20 components of type studenttype. your program must contain at least the following functions: a. a function to read the students’ data into the array. b. a function to assign the relevant grade to each student. c. a function to find the highest test score. d. 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.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 01:00
Program description: a c# app is to be created to produce morse code. the morse code assigns a series of dots and dashes to each letter of the alphabet, each digit, and a few special characters (such as period, comma, colon, and semicolon). in sound-oriented systems, the dot represents a short sound and the dash represents a long sound. separation between words is indicated by a space, or, quite simply, the absence of a dot or dash. in a sound-oriented system, a space is indicated by a short period of time during which no sound is transmitted. the international version of the morse code is stored in the data file morse.txt.
Answers: 3
question
Computers and Technology, 22.06.2019 19:20
1)consider the following code snippet: #ifndef book_h#define book_hconst double max_cost = 1000.0; class book{public: book(); book(double new_cost); void set_cost(double new_cost); double get_cost() const; private: double cost; }; double calculate_terms(book bk); #endifwhich of the following is correct? a)the header file is correct as given.b)the definition of max_cost should be removed since header files should not contain constants.c)the definition of book should be removed since header files should not contain class definitions.d)the body of the calculate_terms function should be added to the header file.
Answers: 1
question
Computers and Technology, 24.06.2019 02:10
Which sentences describe the things you need to ensure while creating a sketch and a drawing? while an artistic or creative drawing is a creative expression, a technical drawing is an informative expression. you need to create accurate and neat drawings to convey accurate information. a technical drawing clearly conveys its meaning or information, and does not leave room for interpretation maintain a good speed while creating drawings
Answers: 1
question
Computers and Technology, 24.06.2019 10:00
3. what do the terms multipotentialite, polymath, or scanner mean?
Answers: 2
You know the right answer?
Write a program that reads students’ names followed by their test scores. the program should output...
Questions
question
History, 04.02.2020 23:53
question
Social Studies, 04.02.2020 23:53
question
Mathematics, 04.02.2020 23:53