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.