Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a program that displays to users a menu that allows them to select from six different mathematical calculations. Example of Menu Add five Numbers

Create a program that displays to users a menu that allows them to select from six different mathematical calculations.


Example of Menu

  1. Add five Numbers
  2. Find the Area of a triangle
  3. Find the Slope of a line
  4. Find the average of three numbers
  5. Find the largest number of Four numbers
  6. Find the median of 5 numbers
  7. To exit program




 

 Note: The menu should only be displayed once. The user can choose each option once before the program ends. 

The user will make a selection and the program will ask the user for the required data, it performs the calculation, and outputs the result in a user-friendly format. The menu should also have an option that allows the user to exit the program.


 

Your program should be written using at least six subroutines(methods), one for each mathematical calculation that you have chosen. 


 

The following are some suggested mathematical calculations. See if you can program some of the more complex ones:

  • Finding perimeter and area of specific shapes
  • Determining circumference and area of circles
  • Finding averages of numbers
  • Find the min and max of a set of numbers
  • Finding missing angles/sides for triangles
  • Finding speed or acceleration
  • Determining the slope of a line
  • Surfaces area and volumes of solids: cube, pyramid, parallelepiped, sphere, cone, cylinder

 

Think about what data the subroutines need to accomplish each task. Some of the data will come from the user. Other data might involve using constants, literal or predefined variables. All types of methods should be used throughout  your code. ( Procedures, method with parameters, methods with return value and methods with both return value and parameter)

 

 This assignment will be evaluated using the rubric below.

 Remember to use comments, proper spacing,  breaking line before the page break line, proper indentation, proper use of naming conventions and other concept taught up to this assignment. 

 

Note:

- The rubric below assumes you have met all of the assignment specifications.

- You should solve your problem in Java: You will be required to resubmit your answers in Java if they are solved in any other programming language.


 

 File Submission

  • In Brightspace you submit a pdf google doc/ word doc containing the following:
  • Explanation of the mathematical formulas you have coded. Include your sources here.
  • Link to file (Sandbox file)
  • Code (copy and paste)
  • A screenshot of your output.

Step by Step Solution

3.45 Rating (158 Votes )

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Management Accounting Information for Decision-Making and Strategy Execution

Authors: Anthony A. Atkinson, Robert S. Kaplan, Ella Mae Matsumura, S. Mark Young

6th Edition

137024975, 978-0137024971

More Books

Students also viewed these Programming questions

Question

Why monetary policy is transmitted through the banking system? LO.1

Answered: 1 week ago

Question

Define Decision making

Answered: 1 week ago

Question

What are the major social responsibilities of business managers ?

Answered: 1 week ago

Question

What are the skills of management ?

Answered: 1 week ago

Question

=+a. Draw a diagram of this RAID system.

Answered: 1 week ago

Question

=+b. Calculate the reliability at t 5 800,000 cycles.

Answered: 1 week ago