Design a calculator program

Assignment Help C/C++ Programming
Reference no: EM13807362

Calculator Program

Design a calculator program that will add, subtract, multiply, or divide two numbers input by a user.

Yourprogram designshould contain the following:

  • The main menu of your program is tocontinueto prompt the user for an arithmetic choice until the user enters a sentinel value toquitthe calculator program.
  • When the user chooses an arithmetic operation (i.e. addition) the operation is to continue to be preformed (i.e. 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.
  • If the user chooses division, do not allow the user to divide by 0. Display an error message to user and ask the user to choose another denominator.

You are to submit the following for  the assignment:

  1. RAPTOR  file with the flowchart of  your working  program.  Make sure you run it to make  sure it is error free and does what it is supposed to do.
  2. Use  the generate dropdown to create example C++ code based on your working logical  flow chart.   Also attached the code in a  Microsoft Word file or a text file.
  3. Quickly modify the code to change the variables if needed to the correct data type.

Reference no: EM13807362

Questions Cloud

Write a proposal to solve local or community public problem : Write a proposal of 5-6 pages (1250-1500 words) that suggests a fresh way to help solve a local or community public problem.
What is strategic strategic counterintelligence concept : There is a newly emerging concept: strategic counterintelligence. What is this concept. How might it be flawed? Should the US pursue the real creation of a discipline in strategic counterintelligence
Write a grade book program : Your English instructor, realizing you are a programmer, asks you to write a Grade Book program for his class to help him compute final grades
Inflation rate is expected after year-expected inflation : Due to a recession, expected inflation this year is only 3.25%. However, the inflation rate in Year 2 and thereafter is expected to be constant at some level above 3.25%. Assume that expectations theory holds and the real risk-free rate is r* = 2.75%..
Design a calculator program : Design a calculator program that will add, subtract, multiply, or divide two numbers input by a user
Expected interest rate-real risk-free rate : The real risk-free rate is 3.15%. Inflation is expected to be 2.6% this year, 4.65% next year, and then 2.15% thereafter. The maturity risk premium is estimated to be 0.05(t - 1)%, where t = number of years to maturity. What is the yield on a 7-year ..
India and china : INDIA AND CHINA
Calculate the yield using a geometric average : Interest rates on 4-year Treasury securities are currently 6.6%, while 6-year Treasury securities yield 7.3%. If the pure expectations theory is correct, what does the market believe that 2-year securities will be yielding 4 years from now? Calculate..
Design a grade average program using raptor : Design a grade average program using raptor that will produce the numerical grade average of test scores input by a user

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Elements that must be included in a loop

What are the three elements that must be included in a loop in order for the loop to successfully perform correctly - What will happen if these statements are not included? Provide examples.

  Takes a string containing a full name

Write a program that takes a string containing a full name and outputs each part of the name separately with its length. The name should be in the form of first, middle, and last name, separated from each other by a single space. For example, if the ..

  What is the size of int in a 64 bit compiler

Can you explain the question in detail - What is the size of int in a 64 bit compiler?

  Program to input the length of the side from the keyboard

write a program to input the length of the side from the keyboard ,use the class to obtain the areas of all shapes and display the results on the screen

  Implement the delivery company using the classes given in

implement the delivery company using the classes given in the class diagram above. construct a cpp file named

  Indexed addressing to reverse the elements

Use a loop with indirect or indexed addressing to reverse the elements of the integer array in place - Can you implement a program to indexed addressing to reverse the elements of an array?

  Write a loop to total and average the contents of the array

Given the following code, write a loop to total and average the contents of the array.

  Prepare a c program that has this description

n is an integer, >= 0. x points to the first element of an int array with n position. p points to the first element of another int array array, also with n position.

  Write a function that permanently swaps two floats

Write a function that permanently swaps two floats using references.

  Define a class for file that is derived from document

Similarly, define a class for File that is derived from Document and includes a instance variable for the pathname. The textual contents of the file should be stored in the inherited variable text. Redefine the toString method to concatenate all t..

  Design a phonecall class that holds a phone number

Design a PhoneCall class that holds a phone number to which a call is placed, the length of the call in minutes, and the rate charged per minute. Overload extraction and insertion operators for the class.

  Program that asks the user to enter the number of miles

Write a C - program that asks the user to enter the number of miles traveled and the number of gallons of gasoline consumed. It should then calculate and display the miles-per-gallon value. Confine your output to 1 decimal place.

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