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, 21.06.2019 19:30
Which of the following are types of formatting you can apply to a spreadsheet? choose all that apply.
Answers: 3
question
Computers and Technology, 21.06.2019 22:00
Your task this week is to write a very simple spam classifier in python. it will classify messages as either spam (unwanted) or ham (wanted). the program will have a set of spam_words, words that are known to appear in spam messages. that set is included in the template file spam.pypreview the document. you will also define a spam threshold which reflects the allowed percentage of spam words in the message. you'll compute a 'spam indicator', which is the ratio of spam words to the total number of unique words in the message. if the spam indicator exceeds the spam threshold, the message is classified as spam. otherwise it is classified as ham. we'll assume that the spam threshold is a constant and has a value of 0.10. your program will prompt the user for a message and then will print the corresponding spam indicator with two decimal digits and the corresponding classification (spam or ham). the program will be case insensitive. the spam words are detected whether they are in lower case or upper case or mixed case. each word, spam or not, is counted once (even if it appears multiple times in the message.) the program will remove punctuation from the message before identifying the words and computing the spam indicator. for example '! ' must be identified as the spam word 'now'.
Answers: 3
question
Computers and Technology, 23.06.2019 17:00
Companies that implement and apply an information system effectively can create
Answers: 1
question
Computers and Technology, 23.06.2019 18:50
Ais a picture icon that is a direct link to a file or folder
Answers: 1
You know the right answer?
Write a program that reads students’ names followed by their test scores. the program should output...
Questions
question
Social Studies, 19.02.2021 05:10
question
Chemistry, 19.02.2021 05:10
question
Chemistry, 19.02.2021 05:10
question
Mathematics, 19.02.2021 05:10
question
Mathematics, 19.02.2021 05:10
question
Mathematics, 19.02.2021 05:10
question
Mathematics, 19.02.2021 05:10
Questions on the website: 13722367