Design a calculator program that will add subtract multiply

Assignment Help Programming Languages
Reference no: EM13463682

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

Your program 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 to quit the 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.

Comment the code and indicate what the line or function performs.

Reference no: EM13463682

Questions Cloud

How can managers please stakeholders in remaining ethical : write a double-spaced essaynbspregarding nbsphow can managers please stakeholders while remaining ethical?nbspcompare
Your english instructor realizing you are a programmer asks : your english instructor realizing you are a programmer asks you to write a grade book program for his class to help
Analyze the information outlined below on facebook case : facebook case studynbspanalyze the information outlined below on the facebook case study. please perform additional
Summarize how information systems represent a key source of : project deliverable 3 database and data warehousing design due week 5 and worth 110 points this assignment consists of
Design a calculator program that will add subtract multiply : design a calculator program that will add subtract multiply or divide two numbers input by a user.your program
Describe audience analysis why is it significant in : 1.describe how we can phrase a negative message so that is does not offend the recipient. why do we want to take your
Explain psychological factors which influence whether : choosenbspone of the following topicssmoking tobaccoalcohol abusedrug abusewritenbspa 500- to 750-word paper that
Conduct an internet search to locate an example of a : discussion question 1. conduct an internet search to locate an example of a private network and a public network. how
Discuss the possibility of using fiber optic cable instead : assignment 1 the benefits of twisted pair cable due week and worth 100 points you are a recently hired consultant for a

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a class to accepts no parameters and returns no value

Write class named ParkingMeter containing:A method named tick that accepts no parameters and returns no value. tick decreases value of timeLeft by 1, but only if value of timeLeft is greater than 0.

  Write down a program that will predict the size of a

write a program that will predict the size of a population of organisms. the program should ask for the starting number

  Develop the payroll program to enter two double values

Develop the payroll program named CalcPay which permits the user to enter two double values namely hours worked and hourly rate.

  Write simple program to prompt user for gross salary

Write simple program which will prompt user for his or her gross salary. Your program than will display net salary whereby 11.00% of the gross salary is deducted for EPF

  Write pseudocode that takes number entered by user

Write a piece of pseudocode that takes a number entered by the user and prints out every number from that number up to 100 and then prints END.

  Display total amount owed in fixed-point notation

Enter your C++ instructions into a source file named Introductory11.cpp. Also enter appropriate comments and any additional instructions required by the compiler. Display the total amount owed in fixed-point notation with two decimal places.

  Statement to read variables of type double

Suppose two variables p1 and p2 of type POINT, with two fields, x and y, both of type double, have been declared. Write a statement that reads values for p1 and p2 in that order.

  Write lisp function to reverse order of the elements in list

Write a Lisp function that: given a two-element list, reverse the order of the elements in the list (cannot use the LISP reverse function).

  General layout for a web-based source document

Suggest the general layout for web-based source document that prospective sellers could use to explain their antiques. Information must include the user ID, password, item, dimensions, origin, condition, and asking price.

  Write function template that accepts array

Write a function template arraySum () whihc accepts an array and number of values stored in it and returns sum of those values.

  Create a work breakdown structure

Create a Work Breakdown Structure (WBS), and assign resources and cost by using a project management tool. As the IT project manager, you have been assigned a project to deploy ten (10) wireless access points in your company's warehouse.

  Program to compute flow of water flowing through a pipe

Write a program to calculate the volume flow rate in cubic feet per second of water flowing through a pipe of diameter d in inches and a velocity of v feet per second.

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