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 06:00
Write a program that uses a widgetviewer object to do the following: generate two random integers between 1 and 9 (inclusive). name one of them x, the other y. display them to the user using jlabel objects. create a jlabel object displaying the text "enter an operation number." create a jtextfield for the user's input. create a jbutton displaying the text "press here when you've entered your operation." use addandwait to add it to the widgetviewer object. when the user clicks the jbutton, evaluate operation in the following order to determine the one and only mathematical operation to perform on x and y. use a jlabel to display the result. if operation is between 1 and 10 inclusive, add x and y. if operation is evenly divisible by 4, subtract y from x. if operation is evenly divisible by 5, use integer division to divide y into x. if operation is an even number, use floating point division to divide y into x. if none of the other tests on operation apply, multiply x and y. note: operation can be negative or zero.
Answers: 2
question
Computers and Technology, 22.06.2019 10:30
You have a large, late-model pick-up truck with a rear seat. the pick-up truck weighs 6,500 pounds. the florida seat belt law
Answers: 1
question
Computers and Technology, 23.06.2019 04:31
Acloud service provider uses the internet to deliver a computing environment for developing, running, and managing software applications. which cloud service model does the provider offer? a. iaas b. caas c. maas d. paas e. saas
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
What type of slide show is a dynamic and eye-catching way to familiarize potential customers with what your company has to offer? a. ole b. photo album c. brochure d. office clipboard
Answers: 2
You know the right answer?
C++ single-dimensional arrays exercise #1: design and implement a program (name it assign grades) t...
Questions
question
French, 18.08.2021 09:50
question
Mathematics, 18.08.2021 09:50
question
Mathematics, 18.08.2021 09:50
question
Mathematics, 18.08.2021 09:50
Questions on the website: 13722361