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

  Potential impact of the google glass on personal computing

The Potential Impact of the Google Glass on Personal Computing

  How to expand class linkedlisttype

Expand class linkedListType. Write down a function that returns the info of the kth element of the linked list. If no such factor exists, output an appropriate message.

  Using a while structure for designing pseudocode

By using a WHILE structure for designing the pseudocode in order to prepare a monthly report for the legal clinic.

  How to solve following problems on functions

How to solve following problems on functions

  What is advantage of payroll scheme approach for the project

What is advantage of payroll scheme approach for the project? What do you think is the most suitable Life Cycle Approach?

  What will be the exercise ratio of men and women

What will be the exercise ratio of men and women? Results indicated that women averaged 2 hours per week and men averaged 1.25 hour per week.

  Private base class function declared public in derived class

Private base class function declared public in derived class

  Sdlcs and other sites explaining some of the tools

Visit web sites for the few leading information systems consulting the firms. Try to determine the information regarding the approach they utilize in order to develop systems. Specify whether SDLCs are described there? Also state do their sites ex..

  Economic life of technology product

Explain what do you understand by the economic life of a technology product. Discuss how does economic life of the technology product is compared with the technology life and product life?

  Convert csv file into html file

Convert CSV file into HTML file

  Process of formulating an entry strategy

Describe the process of formulating an entry strategy. The answer requires to be at least 300 words. Also include any of the references.

  What factors in computer design would affect the decision

What factors in computer design would affect the decision.

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