Computers and Technology

Create a project named JavaReview. Use a package name of edu. seminolestate. review. You can substitute your domain name for edu. seminolestate if you wish. Create a single class named ReviewApplication. When the application starts, prompt the user to enter 5 floating point numbers. These are numbers that can contain a decimal. You do not need to edit these numbers. Your professor will only enter valid decimal numbers when testing your application. You must store these numbers in an array.
Display a menu with five options. These options are add, subtract, multiply, divide, and quit. Below is a sample of the menu.
Enter a to add.
Enter s to subtract.
Enter m to multiply.
Enter d to divide.
Enter q to quit.

Add all the elements in the array when the add option is selected. Display the final sum using System. out.
Subtract each element (elements 2 through 5) in the array from the first element when the subtract option is selected. Display the final result using System. out.
Multiply each element in the array when the multiply option is selected. Display the final product using System. out.
Divide each (elements 2 through 5) in the array into the first element when the divide option is specified. Display the final product using System. out.
End the application when the quit option is selected.
Display an error message if the user enters any character other than a, s, m, d, or q.
Continue to display the menu and process user selections until the user enters the quit option. Display a closing message before ending the application.
Add comments to the top of your source code for your name and the date. Do this for each class file.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 01:00, toottoot42169
What can you find the under the privacy policy section of a shopping website?
Answers: 1
image
Computers and Technology, 22.06.2019 15:10, reycaden
David is in week 3 of his current ashford course and has a paper due by monday night at midnight. he has finished everything but the concluding paragraph. as he boots up his computer to work on it, he sees a flash across the screen and then the screen goes black. he begins to panic as he tries desperately to turn the laptop back on. david should have saved his work on what kind of portable device?
Answers: 2
image
Computers and Technology, 22.06.2019 19:30, Jbutler15
When creating a presentation in libre office impress, where does the editing of slides take place?
Answers: 1
image
Computers and Technology, 24.06.2019 00:30, rustjallison9928
Asecurity policy is a a. set of guidlines b. set of transmission protocols c. written document d. set of rules based on standards and guidelines
Answers: 2
Do you know the correct answer?
Create a project named JavaReview. Use a package name of edu. seminolestate. review. You can substit...

Questions in other subjects:

Konu
Biology, 28.07.2019 04:33
Konu
Biology, 28.07.2019 04:33