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.
- 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started