OBJECT: Write a program to read from the keyboard two integer values with appropriate prompt messages and to do the following: 1. Compute and print their sum with an appropriate message.

OBJECT: Write a program to read from the keyboard two integer values with

appropriate prompt messages and to do the following:

1. Compute and print their sum with an appropriate message.

2. Compute and print their product with an appropriate message.

3. Add their sum to their product and print the result with an appropriate

message.

4. Compute and print their difference (first – second) with an appropriate

message.

5. Compute the quotient of (first / second) and print it with an appropriate

message.

6. Compute the remainder of (first % second) and print it with an appropriate

message.

INPUT: two integer values.

OUTPUT: As specified above.

METHOD: For this program and any other program that you will write in this class you

should do the following:

1. At the top of the program, make a box which includes the lab. assignment number, a

general description of the program, your name (first name and last name), The class and

section number, the date and the due date. For example,

/********************************************************************************************/

/* LAB. ASSIGNMENT #1 */

/* Program to generate a table of powers of an integer n */

/* */

/* Programmer: John Smith */

/* Class: CS 230-99 */

/* Date: February 6, 1995 */

/* Due Date: February 13, 1995 */

/*******************************************************************************************/

2. Before each section of your program, provide a description of what is done in that

section. Make the comments show how the program is subdivided. Make these comments

occupy a whole line, and provide a blank line before each one. Also document all your

variables. For example,

#include <iostream>

using namespace std;

/

*——————————————————————————————————————————–

——*/

int count; /* the number of items */

double value, /* an item value */

average; /* average value of all items */

/*——————————————— Read in the number of items

————————————————–*/

cout << “\nPlease enter the number of items:\t”;

cin >> count;

TOPICS: arithmetic expressions, cout, cin, program documentation and

indentations. Avoiding repeated computations.

You must return the following (in this order):

1. The program source file

2. The program output

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more
error: Content is protected !!