A few days ago
Anonymous

C++ Programming help.?

Can someone please give me the code for these:

1) Sum of two numbers

Write a program that stores the integers 62 and 99 in variables, and stores the sum of the these two in a variable named total.

2) Write a program which stores the following numbers in 5 different variables: 28, 32, 37, 24, and 33. The program should calculate the average of the numbers and display it on the screen

3) A division of a company generates 62% of total sales. Based on that percentage, how much will the division make if the entire company made $4.6 million in sales.

Top 2 Answers
A few days ago
Anonymous

Favorite Answer

1)

#include

using namespace::std;

int main(void)

{

short iOne = 62, iTwo = 99, total;

total = iOne + iTwo;

cout << "The sum is " << total << endl; return 0; } You ought to be able to get the rest, given this example. If you don't figure out how to do it yourself, you'll never learn the language.

0

A few days ago
gjmb1960
int x = 62;

int y = 99;

int total = x + y;

————-

0