Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

Develop an algorithmWhen you need to write a program,you should start off by reviewing the program requirementsprovided by the customer. Once you have an idea aboutwhatthe customer wants, you then get...

1 answer below »
Develop an algorithmWhen you need to write a program,you should start off by reviewing the program requirementsprovided by the customer. Once you have an idea aboutwhatthe customer wants, you then get to thehow. This is a very important aspect of programming and one that can be very difficult to master.Your assignment in this Discussion Board is to propose a simple program and then develop the algorithm for that program.An example would go like this (do not copy this ... create your own proposal):Write a program that accepts two whole numbers from the customer, adds them together, and then prints the result on the screen.Algorithm:
  1. Display "Enter a whole number: " on the screen.
  2. When the customer hits enter, store it in number1.
  3. Display "Enter another whole number: " on the screen.
  4. When the customer hitsenter, store it in number2.
  5. Add number1 to number2 and store the result in answer.
  6. Display "The result is " + answer on the screen.


Answered Same Day Oct 17, 2021

Solution

Nithin answered on Oct 17 2021
136 Votes
#include using namespace std;
int main() {
int number1, number2, answer;
    cout
"Enter a whole number: ";
    cin
number1;
    cout
"Enter another whole number: ";
    cin
number2;
    answer = number1 + number2;
    cout
"The result is "
answer;
    return 0;
}
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here