Question: Chapter 2 Lab Use Variables, and Arithmetic Operators Instructions: 1 . Write your programs in Python. 2 . Include comments in each program; start with
Chapter Lab Use Variables, and Arithmetic Operators Instructions: Write your programs in Python. Include comments in each program; start with your name as the first comment. Display all your answers to each problem such as flowcharts, pseudocode, and screenshot of your output in a word document. Make sure each problem and part of the problem is correctly labelled, ie Problem Part a Part b and Problem Part a Part b Upload this Word file. Also, if you wish to write the code, upload the file containing the programs code saved as a text file or py file and accompanying video that demonstrates your code being ran in the Python editor. Problem pts: Given the expression a What is the output of the above expression? Check your answer by writing and running a program in the WSchools, Python code editor. Place a screenshot in your Word document with the correct label Problem Part a b Based on precedence and associativity of the arithmetic operators. Correctly parenthesize the expression such that you get the same output as in part a Check your answer by writing and running a program in the Python editor. Type your response in the Word document and label correctly. Problem : pts: Predict the output and check your answer by writing and running a program in the Python editor. Type your prediction and include a screenshot of your response for a b and c a b c Problem : pts: a Create a flowchart and pseudocode that shows the logic for the following. You do not have to write the code, just show the logic of the following with a flowchart and pseudocode. A program that prompts the user to input an integer that represents an amount in cents less than You can call it pocketChange. The program will then calculate the smallest combination of coins that the user has. For example, cents is quarter, nickel, and pennies, so: pocketChange is Is then quarter and subtract from pocketChange Is pocketChange now Is pocketChange then nickel, and subtract from pocketChange Is pocketChange now then penny and subtract from pocketChange. Is pocketChange more than or less than b Optional: Write the programs code in the Python editor, include the video that demonstrate your code and running of code. pts
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
