c++ assignment need help with

Computer Science
Price: $5 USD

Question description

assignent need it to be done asap 

Write computer programs to solve the following problems. Make sure you follow all instructions.

1- Write a program to display the following output using a single output statement.

Subject                   Grade

Mathematics           90

Computer Pgrm       75

Chemistry               80

2- Write a program that adds 2 predefined numbers and outputs the result (including the operation).

Then collect input (numbers) from the user and perform the same operation and output the corresponding result.

3- Write a program that uses 3 variables only. Collects 2 inputs (numbers) from the user into 2 variables, then swaps the value of the two variables.

Display the operation in the console output window in the following manner:

The values entered are: Variable1 = 48     Variable2 = 5

The swapped values are: Variable1 = 5     Variable2 = 48

(Bonus) zWhen you are done, see if you can swap the values without using the third variable (Optional). 

4- Write a program that collects the radius of a circle from the user, then calculate and displays periimeter and area of the circle.

5- Write a program that perfoms the followin operations. Make sure to replace the variable x and y with more meaniful variable identifiers line var1 and var 2, or xvar and y var, or variableX and variableY.

Display the operations on the screen along with an output statement for each statement of code explaining what happened and the resulting values of each variable after each statement. Also add comments to your code as you write it for each statement (points will be substracted if no comment is provided for each line or statement in your code).

int x = 10, y;

y = x   +   7%2;

cout << y;

y = 5   +   x++;

cout << y;

y = ++x   +   10;

cout << y;

x = 10;

cout << ++x;

cout << x++;

x = 10;

y = x   +   x++;

cout << y;

cout << x;

y = ++x   +   x++   +   x;

cout << y;

cout << x;

y = x++   +   x;

cout << y;

cout << x;

y = x   +   ++x;

cout << y;

cout << x;

Tutor Answer

(Top Tutor) Daniel C.
School: Cornell University
Studypool has helped 1,244,100 students
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1819 tutors are online

Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors