Simple menu to manage program functions

Assignment Help Basic Computer Science
Reference no: EM131853048

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.

 

Reference no: EM131853048

Questions Cloud

Write a program that requests the day the month and the year : Write a program that requests the day, the month and the year. Write a program that requests a major and college using the cin command.
Describe the benefits organization : Describe the benefits this organization provides through its mobile computing options.
How the contingency should be reflected : For each situation, discuss how and whether the contingency should be reflected in the company's financial statements. If the contingency should be accrued.
Discuss some of the common threats to database systems : Discuss some of the common threats to database systems, and provide examples of security controls that can be used to mitigate the risks.
Simple menu to manage program functions : Write by C Title: Use simple menu to manage program functions.
Develop a program that prompts the user to enter : Two cars A and B leave an intersection at the same time. Car A travels west at an average speed of x miles per hour and car B travels south at an average
What is the corrected amount for total assets : Risers Inc. reported total assets of $6,400,000 and net income of $510,000 for the current year. Risers determined that inventory was understated by $138,000.
What is the advantage of creating users : What is the advantage of creating users, permissions and groups in Windows? What permissions do Windows allow? Have you ever used permissions in Windows before?
Define an organization of your choosing : Define an organization of your choosing, describing both the organization's primary purpose and its physical infrastructure.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd