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, 22.06.2019 11:30
Write a function so that the main program below can be replaced by the simpler code that calls function original main program: miles_per_hour = float( minutes_traveled = float( hours_traveled = minutes_traveled / 60.0 miles_traveled = hours_traveled * miles_per_hour print('miles: %f' % miles_traveled) sample output with inputs: 70.0 100.0 miles: 116.666667
Answers: 3
question
Computers and Technology, 22.06.2019 16:20
Octothorpe is another name for what common computer keyboard symbol?
Answers: 1
question
Computers and Technology, 23.06.2019 03:50
Q-1 which of the following can exist as cloud-based it resources? a. physical serverb. virtual serverc. software programd. network device
Answers: 1
question
Computers and Technology, 23.06.2019 10:00
What is estimated time of arrival (eta)? a device that measures the acceleration (the rate of change of velocity) of an item and is used to track truck speeds or taxi cab speeds a gps technology adventure game that posts the longitude and latitude location for an item on the internet for users to find a north/south measurement of position the time of day of an expected arrival at a certain destination and is typically used for navigation applications
Answers: 3
You know the right answer?
C++ single-dimensional arrays exercise #1: design and implement a program (name it assign grades) t...
Questions
Questions on the website: 13722361