Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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_2

Step: 3

blur-text-image_3

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

Database Administrator Limited Edition

Authors: Martif Way

1st Edition

B0CGG89N8Z

More Books

Students also viewed these Databases questions

Question

4. Make recommendations on steps to take to melt the glass ceiling.

Answered: 1 week ago

Question

1. Discuss the potential legal issues that relate to training.

Answered: 1 week ago

Question

3. Design a program for preparing for cross-cultural assignments.

Answered: 1 week ago