Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need help with c++ Create a main() Inside main: 1. Declare two integer variables and two double variables. 2. Using cout, display a line that

Need help with c++

Create a main()

Inside main:

1. Declare two integer variables and two double variables.

2. Using cout, display a line that allows the user to enter in the first integer values on the same line

as the prompt. Then do the same for the second integer variable.

3. Using cout, display a line that allows the user to enter in the first double values on the same line

as the prompt. Then do the same for the second double variable.

4. Display the name of the project and the copyright statement as shown in the screen shot.

5. Using multiple cout statements, display the result of adding, subtracting, multiplying, dividing

and moding the two integer values. You MUST repeat the entered values on each line.

6. Using multiple cout statements, display the result of adding, subtracting, multiplying, and

dividing the two double values. You MUST repeat the entered values on each line.

7. Make sure that there is a title before each of the two outputs and there are blank lines between

the input section and the two output sections.

8. Comment your code.

Extra Credit:

When the code displays the double output, make sure that all values display exactly two decimal places,

regardless of what is entered.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Combinatorial Testing In Cloud Computing

Authors: Wei-Tek Tsai ,Guanqiu Qi

1st Edition

9811044805, 978-9811044809

Students also viewed these Programming questions