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
- Add five Numbers
- Find the Area of a triangle
- Find the Slope of a line
- Find the average of three numbers
- Find the largest number of Four numbers
- Find the median of 5 numbers
- 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
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started