Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python: Programming Show (1) the analysis, (2) the specifications, (3) the flowchart, (4) the code, and (5) the test for all the following problems: 1.

image text in transcribed
Python: Programming Show (1) the analysis, (2) the specifications, (3) the flowchart, (4) the code, and (5) the test for all the following problems: 1. (12 points) Total Purchase A customer in a store is purchasing five items. Write a program that asks for the price of each item, then displays (1) the subtotal of the sale, (2) the amount of sales tax, and (3) the total. Assume the sales tax is 7 percent 2. (12 points) Miles Per Gallon A car's miles per gallon (MPG) can be calculated with the following formula: MPG = miles driven gallons of gas used Write a program that asks the user for the number of miles driven and the gallons of gas used. It should calculate the car's MPG and display the result. 3. (12 points) Sphere Volume and Surface Write a program to calculate the volume and the sphere surface area of a sphere from its radius, given as input. Here are the formulas you need: 4 Var A r2 4. (12 points) Slope of a line Two points in a plane are specified using the coordinates (x1.71), and (x2,52). Write a program that calculates the slope of a line through two points entered by the user Slope y2-y1 2- x1 5. (12 points) Arithmetic, Smallest, and Largest

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Students also viewed these Databases questions