//This program is designed to imitate a information processing system. //I expend a flag controlled loop // written by Robert Cunningham. #include <iostream> victimisation namespace std; int main() { iterate num1; reprise num2; double nitty-gritty; double shinny; double product; double quotient; char excerpt; int keepRunning; bool electronic computer = true; while(Calculator) { cout << Welcome to calculator! << endl; cout << First, declare to vaiables to provide, subtract, multiply or dissociate << endl; cout << endl; cout << The first outcome is: ; cin >> num1; cout << The second number is: ; cin >> num2; cout << endl; cout << instantly select operation you would same to use. << endl; cout << endl; cout << lawsuit + if you would akin to jibe the 2 numbers. << endl; cout << cause - if you would standardized to subtract the two numbers. << endl; cout << eccentric * if you would like to multiply the two numbers. << endl; cout << case / if you would like to cleave the two numbers.
<< endl; cout << endl; cout << input signal: ; cin >> choice; cout << endl; if(choice == +) { nucleus = num1 + num2; cout << Your total is << sum << ! << endl; cout << endl; cout << fibre 1 if you would like to find another answer. << endl; cout << Type 2 to exit the program. << endl; cout << endl; cout << Input: ; cin >> keepRunning; if(keepRunning == 1) { system(CLS); } if(keepRunning == 2) { Calculator = false; } } if(choice == -) { divagation = num1 - num2; cout << Your total is << difference << ! << endl; cout << endl; cout << Type 1 if you would like to...If you extremity to get a wide of the mark essay, order it on our website: Ordercustompaper.com
If you want to get a full essay, wisit our page: write my paper
No comments:
Post a Comment