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

Another question on Business

question
Business, 22.06.2019 01:30
What is an example of a good stock to buy during economic expansion? a) cyclical stock b) defensive stock c) income stock d) bond
Answers: 3
question
Business, 22.06.2019 03:00
5. profit maximization and shutting down in the short run suppose that the market for polos is a competitive market. the following graph shows the daily cost curves of a firm operating in this market. 0 2 4 6 8 10 12 14 16 18 20 50 45 40 35 30 25 20 15 10 5 0 price (dollars per polo) quantity (thousands of polos) mc atc avc for each price in the following table, calculate the firm's optimal quantity of units to produce, and determine the profit or loss if it produces at that quantity, using the data from the previous graph to identify its total variable cost. assume that if the firm is indifferent between producing and shutting down, it will produce. (hint: you can select the purple points [diamond symbols] on the previous graph to see precise information on average variable cost.) price quantity total revenue fixed cost variable cost profit (dollars per polo) (polos) (dollars) (dollars) (dollars) (dollars) 12.50 135,000 27.50 135,000 45.00 135,000 if the firm shuts down, it must incur its fixed costs (fc) in the short run. in this case, the firm's fixed cost is $135,000 per day. in other words, if it shuts down, the firm would suffer losses of $135,000 per day until its fixed costs end (such as the expiration of a building lease). this firm's shutdown price—that is, the price below which it is optimal for the firm to shut down—is per polo.
Answers: 3
question
Business, 22.06.2019 10:30
On july 1, oura corp. made a sale of $ 450,000 to stratus, inc. on account. terms of the sale were 2/10, n/30. stratus makes payment on july 9. oura uses the net method when accounting for sales discounts. ignore cost of goods sold and the reduction of inventory. a. prepare all oura's journal entries. b. what net sales does oura report?
Answers: 2
question
Business, 23.06.2019 00:00
3. which of the following occupations relate to a skill category of mathematics and data? select all that apply. (2 correct answers) engineer financial analyst mechanic sales person 4. which of the following occupations relate to a skill category of words and literacy? select all that apply. (2 correct answers) educator lawyer marketing manager psychologist architect
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
question
Mathematics, 05.05.2021 22:20
question
Mathematics, 05.05.2021 22:20
question
Mathematics, 05.05.2021 22:20
Questions on the website: 13722360