Designing the calculator program

Assignment Help Computer Engineering
Reference no: EM1315279

1) Develop a calculator program which will subtract, add, multiply, or divide two numbers input given by a user.

Your program design must consist of the following:

a) The main menu of your program is to continue to prompt user for an arithmetic choice till the user enters a sentinel value in order to quit the calculator program.

b) When the user selects an arithmetic operation (i.e. addition) the operation is to continue to be performed (that is, prompting the user for each number, displaying the result, prompting the user to add two more different numbers) until the user enters a sentinel value to end the chosen arithmetic operation.

c) If user selects division, do not permit the user to divide by 0. Show an error message to the user and ask the user to select another denominator.

Reference no: EM1315279

Questions Cloud

Determining mean and standard deviation ofdistribution : Determine the mean and standard deviation of this distribution?
Assessing the probability values : Students are the University of New Harmony received 10, 000 course grades last semester. The table below breaks down these grades by which school of the university taught the course.
Find the acceleration of mass : A toy airplane is tied to the ceiling with a string. When the airplane's motor is started, it moves with a constant speed of 1.03m/s in a horizontal circle. If the angle the string makes with the vertical is 27°, and the tension of the string is 1N.
Water cooler the demand also cost estimate : Overhead at the water cooler the demand also cost estimate which were provided at the meeting are very useful.
Designing the calculator program : Develop a calculator program which will subtract, add, multiply, or divide two numbers input given by a user. If user selects division, do not permit the user to divide by 0
Does it exert a nonzero torque about the pivot : A horizontal bar of negligible weight has a 55.10 lb weight hanging from the left end and a 72.0 lb weight hanging from the right end. The bar is seen to balance 97.50 in from the left end. Find the length of bar.
Short run effect of government imposition of a lump sum tax : Illustrate what will be the short run effect of government imposition of a lump sum tax per firm equal to 170? If this tax remains
Concept of supply and demand with graphical analysis : Using a supply and demand graph, make one shift of wither the supply or demand curve to illustrate the likely result of this action.
Explain weighted average cost of capital that is appropriate : Explain Weighted average cost of capital that is appropriate to use in evaluation of expansion program

Reviews

Write a Review

Computer Engineering Questions & Answers

  Display the miles per gallon obtained for each tankful

Display the miles per gallon obtained for each tankful

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  What are the trends of data warehousing and data mining

What are the trends of data warehousing and data mining

  A function to see if one list is a shallow copy of other

A function to see if one list is a shallow copy of other

  Write pseudo code - program and draw flow chart

Write pseudo code, program and draw flow chart for programs

  What is best-case complexity of the algorithm

What is best-case complexity of the algorithm?

  How to define the Escape Problem

How to  define the Escape Problem

  Point-to-point communication links

Suppose there is the wide-area network with N nodes, where N ≥ 2. Find out the smallest number of the point-to-point communication links such that each node within the network is able to talk to one another node?

  Generate an er model

Generate an ER model

  Classify and discuss compensation potentially

Classify and discuss compensation potentially.

  Implementation of type data structures

How can string and word variable type data structures be implemented?

  Local v/s network printers

Write down a paper explaining the Windows Printer Model for Server 2008. Explain the local v/s network printers and how to decide which printers to deploy.

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