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

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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