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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 08:30, Calirose
When you interpret the behavior of others according to your experiences and understanding of the world your evaluation is
Answers: 1
image
Computers and Technology, 23.06.2019 09:20, lovely222
How to print: number is equal to: 1 and it is odd number number is equal to: 2 and it is even number number is equal to: 3 and it is odd number number is equal to: 4 and it is even number in the console using java using 1 if statement, 1 while loop, 1 else loop also using % to check odds and evens
Answers: 3
image
Computers and Technology, 24.06.2019 05:50, 11232003
What all vehicles has tesla inc. created over the years
Answers: 3
image
Computers and Technology, 24.06.2019 06:30, chloeholt123
For which utilities, if any, does the landlord pay?
Answers: 2
You know the right answer?
C++ single-dimensional arrays exercise #1: design and implement a program (name it assign grades) t...

Questions in other subjects:

Konu
Mathematics, 28.02.2021 20:40
Konu
Chemistry, 28.02.2021 20:40