Anonymous
account_balance_wallet \$15

Question description

PROBLEM #1: Suppose we wanted to compute the mileage (average mile per gallon) for a trip. We would like the user to input the beginning odometer reading, ending odometer reading, and the number of gallons used. All three of these will be floating point numbers. The program should use this information to compute the distance traveled and then the miles per gallon. Those two values should be output to the screen.

1. (a) Create an algorithm to solve the problem described above. Save your algorithm as a Word document.

(b) Convert your algorithm from part (a) to a flowchart. Be sure to include the textbox with your name, description, cs135, and date. Export this flowchart as a PDF document.

(c) Write a Python program to solve the above problem. Be sure to include at least 4 lines of comments as you did in Activity #9. Once your program has been tested and is working correctly, copy and paste it to a new Word document.

2. Write a Python program that will determine change for a dollar. The input will be amount of the item to be purchased. This will be an integer. Use the Canvas video that provided this algorithm as a guide. Be sure your program includes four lines of comments similar to other programs. Once your program has been tested and is working correctly, copy and paste it to a new Word document.

CS 135 Computer Skills for Problem Solving Summer, 2018 Activity #10 – Introduction to Python – Part II PROBLEM #1: Suppose we wanted to compute the mileage (average mile per gallon) for a trip. We would like the user to input the beginning odometer reading, ending odometer reading, and the number of gallons used. All three of these will be floating point numbers. The program should use this information to compute the distance traveled and then the miles per gallon. Those two values should be output to the screen. 1. (a) Create an algorithm to solve the problem described above. Save your algorithm as a Word document. (b) Convert your algorithm from part (a) to a flowchart. Be sure to include the textbox with your name, description, cs135, and date. Export this flowchart as a PDF document. (c) Write a Python program to solve the above problem. Be sure to include at least 4 lines of comments as you did in Activity #9. Once your program has been tested and is working correctly, copy and paste it to a new Word document. 2. Write a Python program that will determine change for a dollar. The input will be amount of the item to be purchased. This will be an integer. Use the Canvas video that provided this algorithm as a guide. Be sure your program includes four lines of comments similar to other programs. Once your program has been tested and is working correctly, copy and paste it to a new Word document. How to submit: Submit the 4 documents described above to Canvas under Activity #10.

wolfram777
School: UCLA

Hey, since time is running out i'm sending you the solution.There a...

flag Report DMCA
Review

Anonymous
Goes above and beyond expectations !

Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors