Business
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

answer
Answers: 2

Other questions on the subject: Business

image
Business, 22.06.2019 20:30, jessicaisbaehood
Juanita and sam attend a beach party and notice that the local beach appears to have a great deal more trash washed up on shore than it did when they were young. the water doesn't appear nearly as clear, and there seems to be less evidence of small water creatures living in the shallows. an afternoon at the local library convinces them that one major cause is the new factory nearby. after some discussion, they decide their next step should be identifying the cause of the changes identifying the problem picketing the guilty factory lobbying their elected representatives to complain about the problem talking to a local environmental group about solutions
Answers: 3
image
Business, 22.06.2019 22:50, tiffanibell71
Adding a complementary product to what is currently being produced is a demand management strategy used when: a. capacity exceeds demand for a product that has stable demand. b. price increases have failed to bring about demand management. c. demand exceeds capacity. d. demand exceeds 100 percent. e. the existing product has seasonal or cyclical demand.
Answers: 3
image
Business, 23.06.2019 00:40, maddie1776
Assume the total cost of a college education will be $250,000 when your child enters college in 17 years. you presently have $69,000 to invest. what annual rate of interest must you earn on your investment to cover the cost of your child’s college education? (do not round intermediate calculations. enter your answer as a percent rounded to 2 decimal places, e. g., 32.16.)
Answers: 2
image
Business, 23.06.2019 01:30, zayeboyd4436
Brian has just finished college. he wants to set up a small business to make and sell fireworks. he registers his company and acquires a license from the government. he finds that most of his competitors are selling fireworks at an extremely low price. he would like to make more money, so he decides to innovate and develop better fireworks. he sells his fireworks at a higher price, and they are a huge hit with the customers. after a few years, he earns enough profit to set up a bigger fireworks factory that complies with the government’s health and safety regulations. he even starts exporting fireworks overseas. which type of economy does this scenario describe?
Answers: 3
Do you know the correct 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
Social Studies, 25.08.2019 04:50
Konu
Mathematics, 25.08.2019 04:50