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, 21.06.2019 22:20
On january 1, jackson, inc.'s work-process inventory account showed a balance of $ 66,500. during the year, materials requisitioned for use in production amounted to $ 70,500, of which $ 67,700 represented direct materials. factory wages for the period were $ 210,000 of which $ 187,000 were for direct labor. manufacturing overhead is allocated on the basis of 60% of direct labor cost. actual overhead was $ 116,050. jobs costing $ 353,060 were completed during the year. the december 31 balance in work-process inventory is
Answers: 1
question
Business, 22.06.2019 01:30
At the end of the week, carla receives her paycheck and goes directly to the bank after work to make a deposit into her savings account. the bank keeps the required reserve and then loans out the remaining balance to a qualified borrower named malik as a portion of his small business loan. malik uses the loan to buy a tractor for his construction business and makes small monthly payments to the bank to payback the principal balance plus interest on the loan. the bank profits from a portion of the interest payment received and also passes some of the interest back to carla in the form of an interest payment to her savings account. in this example, the bank is acting
Answers: 1
question
Business, 22.06.2019 15:10
Popeye produces 20 cans of spinach in 8 hours. wimpy produces 15 hamburgers in 10 hours. if each hamburger trades for 1.5 cans of spinach, then: a.wimpy’s production and productivity are greater than popeye’s. b.popeye’s production is greater than wimpy’s, but his productivity is less. c.wimpy’s production is greater than popeye’s, but his productivity is less. d.popeye’s production and productivity are greater than wimpy’s.
Answers: 3
question
Business, 22.06.2019 19:50
On july 7, you purchased 500 shares of wagoneer, inc. stock for $21 a share. on august 1, you sold 200 shares of this stock for $28 a share. you sold an additional 100 shares on august 17 at a price of $25 a share. the company declared a $0.95 per share dividend on august 4 to holders of record as of wednesday, august 15. this dividend is payable on september 1. how much dividend income will you receive on september 1 as a result of your ownership of wagoneer stock
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, 18.04.2021 09:50
question
Mathematics, 18.04.2021 09:50
question
Chemistry, 18.04.2021 09:50
question
Mathematics, 18.04.2021 09:50
Questions on the website: 13722360