Question
C++ project need help stuck We will make a simple, menu-driven conversion software package, call it English-Metric Junior. Our software package will present the user
C++ project need help stuck
We will make a simple, menu-driven conversion software package, call it English-Metric Junior. Our software package will present the user with a menu of choices and execute the operation specified. The menu must look exactly like this:
English-Metric Junior
1) Convert from meters to feet
2) Convert from feet to meters
3) Compute the area of a rectangle in square feet given length and width in meters
4) Compute the area of a rectangle in square meters given the length and width in feet
5) Quit the Program
Please enter a number (1-5) ->
Implementation Notes:
1. You will create a function named menu() that will be called repeatedly from a loop in main().
2. Function int menu() will show the alternatives as above and take user input (1 - 5), until a number on that range is entered. It will then return the legal user choice.
3. Inside a loop in main(), program will repeatedly call menu(). When menu() returns a legal selection, code in main() will get all necessary inputs from the user, call the function that computes the result, and displays output.
4. Note that there are 0.3048 meters in a foot and 2.2046 pounds in a kilogram.
5. For the area problem, you are to get the length and width of the rectangle in the original units, convert length and width to the new units using the functions that do that, and ouptut the length, width, and area in both units, properly labeled. For example, if you are converting from feet to meters, you will get the length and width of the sides in feet, convert the length and width to meters, and then output the length, width and area in feet and in meters.
6. We will NOT know how many times the user will want to execute a function from the menu.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
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