Name: __________________________________________ 2. Calculate the following: 5 + 4 * 6 – 3 / 3 + 6 = _______________________________ (4 + 5) * 6 - (3 / 3 + 6) = _______________________________ (5 +...

1 answer below »



Name: __________________________________________







2. Calculate the following:




    1. 5 + 4 * 6 – 3 / 3 + 6 = _______________________________

    2. (4 + 5) * 6 - (3 / 3 + 6) = _______________________________

    3. (5 + 9) / (3 + 2) = _______________________________

    4. 4 * 5 * (3 + 3) = _______________________________

    5. 6 – 2 / 2 + 2 * 2 – 3 = ______________________________











  1. Determine the output for the following:



Assume: int num1 = 25, num2 = 5, num3 = 10;




a. cout





________________________________________________________



b. cout




________________________________________________________





c. cout





_________________________________________________________



d. cout





_________________________________________________________



e. cout




________________________________________________________















Critical Thinking / Problem Solving Exercises:






  1. Draw a flowchart to represent the logic of a program that allows the user to enter a value. The program multiplies the value by 20 then add 5 and prints out the result.


    1. Complete an IPO chart for the above problem.

    2. Draw a flowchart to represent the logic of the program above.



Answered Same DayFeb 08, 2021

Answer To: Name: __________________________________________ 2. Calculate the following: 5 + 4 * 6 – 3 / 3 + 6...

David answered on Feb 08 2021
141 Votes
Name: ___________________________
Programming Logic Using C++
Assignment 2
Name: ______________
____________________________
2. Calculate the following:
a. 5 + 4 * 6 – 3 / 3 + 6
= 34
b. (4 + 5) * 6 - (3 / 3 + 6)
= 47
c. (5 + 9) / (3 + 2)
= 2.8
d. 4 * 5 * (3 + 3)
= 120
e. 6 – 2 / 2 + 2 * 2 – 3
= 6
3. Determine the output for the following:
Assume: int num1 = 25, num2 = 5, num3 = 10;
a. cout<< “ The...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here