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



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.






May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here