subject

C++ single-dimensional arrays exercise #1: design and implement a program (name it assign grades) that stores and processes numeric scores for a class. the program prompts the users to enter the class size (number of students) to create a single-dimensional array of that size to store the scores. the program prompts the user to enter a valid integer score (between 0 and 100) for each student. the program validates entered scores, rejects invalid scores, and stores only valid scores in the array. the program defines method print grades() that takes a signal-dimensional array of integer scores as a parameter and processes the scores to print letter grades based on the following scale: grade is a if score > = 90 and score < = 100 grade is b if score > = 80 and score < = 89 grade is c if score > = 70 and score < = 79 grade is d if score > = 60 and score < = 69 grade is f if score < 60the final part of the program you should use fstream and the program should write the scores (each separated by a comma) to a file called "scores. csv".document your code and organized your output following these sample runs. sample run : class size: 5entered grades: 90, 67, 78, 89, 60student 0 score is 90 and grade is astudent 1 score is 67 and grade is dstudent 2 score is 78 and grade is cstudent 3 score is 89 and grade is bstudent 4 score is 60 and grade is d

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 17:00
The camera still is bad even with the new iphone xr and especially in low light it is even worst because you can see the pixels more if its in low light. if all you apple customers want apple to fix this then lets fill there feedback with complaints about the
Answers: 1
question
Computers and Technology, 23.06.2019 22:00
Technician a says engine assemblies can be mounted longitudinally in a chassis. technician b says engine assemblies can be mounted transversely in a chassis. who is correct?
Answers: 2
question
Computers and Technology, 24.06.2019 18:30
*write a program that defines symbolic names for several string literals (chars between quotes). * use each symbolic name in a variable definition. * use of symbolic to compose the assembly code instruction set can perform vara = (vara - varb) + (varc - vard); ensure that variable is in unsigned integer data type. * you should also further enhance your symbolic logic block to to perform expression by introducing addition substitution rule. vara = (vara+varb) - (varc+vard).
Answers: 1
question
Computers and Technology, 24.06.2019 20:00
Write c++programs for the following problem: let the user enter two numbers and display which is greater. !
Answers: 1
You know the right answer?
C++ single-dimensional arrays exercise #1: design and implement a program (name it assign grades) t...
Questions
question
Mathematics, 21.01.2021 17:40
question
Spanish, 21.01.2021 17:40
question
Mathematics, 21.01.2021 17:40
question
Mathematics, 21.01.2021 17:40
Questions on the website: 13722360