Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Write by C

Title: Use simple menu to manage program functions.

Program Specifications

Design the following simple menu:

1- Quadratic equation

2-Bank deposit problem

3-Quit

Select an option:

Option 1: Users input coefficients a,b and c of a quadratic equation. Then, the program calculates and outputs the roots of the inputted equation.

Option 2: Users input:

+ Deposits(a positive number)

+ Deposit interest rates (a positive number <= 0.1)

+ Number of deposit months (a positive number)

Then program calculates and outputs the total amount received.

Option 3: Exit the program

Function details:

1. Function 1: Display a menu and ask users to select an option.

+ Users run the program. The program prompts users to select an option.

+ Users select an option, perform Function2

2. Function 2: Perform function based on the select option.

+ Option 1: Users input coefficients a,b and c of a quadratic equation. Then, the program calculates and outputs the roots of the inputted equation. After completing option 1, go back to menu 

+ Option 2: + Deposits(a positive number)

+ Deposit interest rates (a positive number <= 0.1)

+ Number of deposit months (a positive number)

Then programs calculates and outputs the total amount received.

After completing option 2, go back to menu 

+ Option 3: Exit the program.

Expectation of User interface

MENU

-------------------------------

1- Quadratic equation

2- Bank deposit problem

3- Quit

Enter Your Choice: 

Guidelines

Function 1:

Use "math.h" library for math-related functions

Function 2:

Total amount received =deposit+deposit interest rates

Deposit interest rates =deposit*interest rate* Number of deposit months.

 

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M92681405
  • Price:- $10

Priced at Now at $10, Verified Solution

Have any Question?


Related Questions in Computer Engineering

Select one of the discussion topics and respond begin your

Select one of the discussion topics and respond. Begin your response by indicating which question you chose. Discussion topics: Section 1 Should the government set a maximum wage? Why or why not? Section 2 Most people be ...

A chemistry student needsnbsp700 g of ethanolamine for an

A chemistry student needs 70.0 g of ethanolamine for an experiment. By consulting the  CRC Handbook of Chemistry and Physics , the student discovers that the density of ethanolamine is 1.02 g.cm^-3. Calculate the volume ...

Question suppose direction is an integer angle between 0

Question : Suppose direction is an integer angle between 0 and 359 degrees. You turn by a given angle and update the direction as direction = (direction + turn) % 360; In which situation do you get the wrong result? How ...

Question using a web browser search for any information

Question: Using a Web browser, search for any information security policies used at your academic institution. Compare them to the ones discussed in this chapter. Are there sections missing? If so, which ones? Whitman, M ...

Select three interfaces and consider how the teamwork

Select three interfaces, and consider how the teamwork application could be redesigned for each of these types. Use your imagination. How about using a tangible interface or even a drone to help remote students collabora ...

Explain a situation using the supply and demand for skilled

Explain a situation using the supply and demand for skilled labor in which the increased number of college graduates leads to depressed wages. Given the rising cost of going to college, explain why a college education wi ...

At a seaside resort where the temperature is 25degc a child

At a seaside resort where the temperature is 25°C, a child holds a 1.5 L balloon. Her grip on the balloon loosens and it sails upward for 4.5 miles. If the atmosphere is 340 torr and the temperature is -18°C, what is the ...

Systems analysis project personal trainer inc owns and

Systems analysis project Personal Trainer, Inc. owns and operates fitness centers in a dozen Midwestern cities. The centers have done well, and the company is planning an international expansion by opening a new "superce ...

The standard math library cmath includes a function for

The standard math library cmath includes a function for taking the square root of a number. The heading (prototype) for this function is: double sqrt(double x) Write another function called closer_root that takes two rea ...

Na2co3 caoh2 -------gt 2naoh caco3cao h2o ------gt

Na2CO3 + Ca(OH)2 -------> 2NaOH + CaCO3 CaO + H2O ------> Ca(OH)2 What weight in kg of NaOH will be generated if 26.5kg of soda ash is used? How many kg of lime is needed for the reaction?

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As