subject
Business, 15.01.2020 23:31 jennsou

Being a good student, you volunteer to write a program for an it 106 instructor to calculate the class average for the midterm exam in his/her class. a class always has between 1 and 30 students, but the exact number of students in the class is unknown. midterm exam grades fall within the range of 0.0 through 100.0, inclusive of these values. write a small program that continuously prompts the user to enter midterm exam grades for one class, until the user enters a sentinel value of -1. you must remember to check to make sure only valid midterm exam grades in the range specified are entered, displaying an error message when an invalid midterm exam grade is entered. once the sentinel value is reached, display the average midterm exam grade of all midterm exam grades entered, formatted to the "tenths" decimal place.

assumption: you may assume the user will always enter only numeric values. you do not need to check if the value the user has entered is numeric or not.

hints:

remember to use constants as appropriate, along with other good design practices you have learned in the course

remember to use string. format to format a string

based on your understanding of the program's requirements, try to think about what a few sample runs of the program might look like. don't forget to consider bounds checking.

note: for input/output, you must use the joptionpane class.

your code must compile using the jgrasp ide. if your code does not compile using jgrasp (for any reason), a grade of 0 will be earned. no exceptions!

upload your completed .java file. make sure you upload the .java file and not the .class file

ansver
Answers: 2

Other questions on the subject: Business

image
Business, 22.06.2019 06:10, aj0914
Investment x offers to pay you $5,700 per year for 9 years, whereas investment y offers to pay you $8,300 per year for 5 years. if the discount rate is 6 percent, what is the present value of these cash flows? (do not round intermediate calculations and round your answers to 2 decimal places, e. g., 32.16.) present value investment x $ investment y $ if the discount rate is 16 percent, what is the present value of these cash flows? (do not round intermediate calculations and round your answers to 2 decimal places, e. g., 32.16.) present value investment x $ investment y
Answers: 1
image
Business, 23.06.2019 14:20, stinkbugg310
Jessica wants to plan where she will place furniture in her room, so she has drawn a scale model of her room in order to begin planning. the scale model is 11 inches long and 8.5 inches wide. jessica notices that the door to her room takes up 1.75 inches on the right-side wall of her room, and she realizes that she cannot place any furniture in the area that the door turns through when it is opened.
Answers: 3
image
Business, 24.06.2019 01:00, LEXIEXO
The voting age in america should be changed from 18 to 16
Answers: 2
image
Business, 24.06.2019 07:00, katia87
Sales of quilt covers at bud banis's discount department store in carbondale over the past year are shown below. management prepared a forecast using a combination of exponential smoothing and its collective judgment for the 4 months (march, april, may, and june):
Answers: 1
You know the right answer?
Being a good student, you volunteer to write a program for an it 106 instructor to calculate the cl...

Questions in other subjects:

Konu
Mathematics, 05.05.2020 23:16