C++ Programming help.?
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.
Favorite Answer
#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.
int y = 99;
int total = x + y;
————-
- Academic Writing
- Accounting
- Anthropology
- Article
- Blog
- Business
- Career
- Case Study
- Critical Thinking
- Culture
- Dissertation
- Education
- Education Questions
- Essay Tips
- Essay Writing
- Finance
- Free Essay Samples
- Free Essay Templates
- Free Essay Topics
- Health
- History
- Human Resources
- Law
- Literature
- Management
- Marketing
- Nursing
- other
- Politics
- Problem Solving
- Psychology
- Report
- Research Paper
- Review Writing
- Social Issues
- Speech Writing
- Term Paper
- Thesis Writing
- Writing Styles