Computers and Technology

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

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 02:00, hannahliebl2000
What is the largest decimal number that can be represented by a binary number with 4 place values? (remember, each place in a binary number has a value of a power of 2, starting in the ones place with 20.)
Answers: 3
image
Computers and Technology, 22.06.2019 08:10, josued123321
Alook-up table used to convert pixel values to output values on a monitor. essentially, all pixels with a value of 190 or above are shown as white (i. e. 255), and all values with a value of 63 or less are shown as black (i. e. 0). in between the pixels are scaled so that a pixel with a value p is converted to a pixel of value 2/127 −+3969). if a pixel has a value of 170 originally, what value will be used to display the pixel on the monitor? if a value of 110 is used to display the pixel on the monitor, what was the original value of the pixel?
Answers: 1
image
Computers and Technology, 22.06.2019 18:30, yayamcneal05
Which cultural aspect does this type of song best portray? a german polka dance
Answers: 1
image
Computers and Technology, 23.06.2019 00:00, addisonrausch
What season was better from fortnite?
Answers: 2
Do you know the correct answer?
C++ single-dimensional arrays exercise #1: design and implement a program (name it assign grades) t...

Questions in other subjects: