Question: Write your programs in Python or C++ (programminglanguages) 2. Include comments in each program 3. Display your solutions such as graphs, pseudocode, in a worddocument.

  1. Write your programs in Python or C++ (programminglanguages)
    2. Include comments in each program
    3. Display your solutions such as graphs, pseudocode, in a worddocument. Upload this Word file
    4. Upload the file containing the program’s code

5. Present the output of your programin a Word document. Upload this Word file

Problem 1 (2 pts): Given the expression 40 – 3**2 +8/3**2*10
a) What is the output of the expression? Check your answer bywriting and running a program in Python or C++

b) Based on precedence and associativity of the arithmeticoperators. Correctly parenthesize the expression such that you getthe same output as in part (a) Check your answer by writing andrunning a program in Python or C++

Problem 2: (3 pts): Predict the output and check your answer bywriting and running a program in Python or C++

a) 2**2**3

b) 2**(2**3)

c) (2**2) **3

Problem 3:
a) Create a flowchart or pseudocode that shows the logic for aprogram that prompts the user to input an integer that representscents. The program will then calculate the smallest combination ofcoins that the user has. For example, 32 cents is 1 quarter, 1nickel, and 2 pennies (3 pts)

b) Write the program for the problem described in part (a). Youmay write the program’s code in Python Python or C++ (2 pts)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!