subject

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.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 14:30
Complete the sentence based on your knowledge of the professional difficulties faced by music artists. digital technology allows audiences to see free live telecasts of music or dance performances through
Answers: 1
question
Computers and Technology, 22.06.2019 17:30
Rachel completed typing an official document with a word processing program. she wants to make sure that her document has no typographical errors. she also wants all headings to have the same font. which features in a word processing program should she use? rachel should use the feature in a word processing program to find typographical errors. she should apply to have uniform headings.
Answers: 1
question
Computers and Technology, 24.06.2019 00:10
Read each statement below. if the statement describes a peer-to-peer network, put a p next to it. if the statement describes a server-based network, put an s next to it. p - peer-to-peer s - server-based
Answers: 1
question
Computers and Technology, 24.06.2019 07:30
John recently worked on a project about various programming languages. he learned that though procedural language programs are useful, they have disadvantages too. what is a disadvantage of programs written in procedural languages? a. programs do not represent data complexity. b. programs take more time to execute. c. programs are prone to security threats. d. programs do not interface with multiple platforms.
Answers: 3
You know the right answer?
Create a project named JavaReview. Use a package name of edu. seminolestate. review. You can substit...
Questions
question
Mathematics, 14.11.2020 06:30
question
Chemistry, 14.11.2020 06:30
question
Mathematics, 14.11.2020 06:30
Questions on the website: 13722363