You will create a code that will take user input for amount owed and a cash...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
You will create a code that will take user input for amount owed and a cash amount paid and return the amount of change to be given back. You are only allowed to use material from Unit 1. No loops, conditionals, iteration, etc. For the set number of items just use 3 items no more or no less. 70%: Takes amount owed and amount paid and outputs change given back. Example: Input: Enter the price: 4.33 Enter the amount paid: 5.00 Output: Change owed: 0.67 80%: Same as above but user enters prices of a set number of items. Example: Input: Item 1 Price: 1.00 Item 2 Price: 2.00 Item 3 Price: 1.33 Total: 4.33 Enter the amount paid: 5.00 Output: Change owed: 0.67 Get Started! You will create a code that will take user input for amount owed and a cash amount paid and return the amount of change to be given back. You are only allowed to use material from Unit 1. No loops, conditionals, iteration, etc. For the set number of items just use 3 items no more or no less. 70%: Takes amount owed and amount paid and outputs change given back. Example: Input: Enter the price: 4.33 Enter the amount paid: 5.00 Output: Change owed: 0.67 80%: Same as above but user enters prices of a set number of items. Example: Input: Item 1 Price: 1.00 Item 2 Price: 2.00 Item 3 Price: 1.33 Total: 4.33 Enter the amount paid: 5.00 Output: Change owed: 0.67 Get Started!
Expert Answer:
Answer rating: 100% (QA)
1 Heres a simple Python script that adheres to the specified constraints Function to get user input ... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
Briefly discuss the nature of any company including history, main lines of business, financial performance overview and ratios (revenue growth, profit margins, current ratios), controls, risks, and...
-
You will design and implement your own data class. The class will store data that has been read as user input from the keyboard (see Getting Input below), and provide necessary operations. As the...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
Solve the equation symbolically. Then solve the related inequality. |2.1x0.7| = 2.4, 2.1x -0.7 2.4
-
A light ray initially in water enters a transparent substance at an angle of incidence of 37.0, and the transmitted ray is refracted at an angle of 25.0. Calculate the speed of light in the...
-
Does the Internal Revenue Service prescribe any definite joint product or by-product cost allocation methods for tax purposes? Explain.
-
A brand of bearings has a mean life span of 15,000 cycles, with a standard deviation of 1,250 cycles. Assume the life spans of the bearings have a bell-shaped distribution. (a) The life spans of...
-
The pricing game between two firms, which can each set either a low or a high price, is given by the following normal form. a. Find the Nash equilibrium or equilibria of the game. b. How would you...
-
The table below shows the monthly sales for Sunny Beach Co . 4 0 % of sales are for cash and 6 0 % are on credit. The company collects on its credit sales as follows: 2 / 3 of credit sales are...
-
Assume the risk-free continuously compounded interest rate is \(4 \%\) per annum. For an asset with today's price \(A(0)=\$ 100\), you are told that its expected return is \(10 \%\) per annum and...
-
7. (8 points)For the figure shown below, answer questions: Interrupt request(1) Kernel or task(2) Get the interrupt vector(3) CPU context saving(4) ISR Interrupt latency* Interrupt responding time...
-
A big supplier of used cars is rental car companies, who sell their rental cars after they're too used to rent out but are still good. Rental cars are not a substitute or complement for used cars on...
-
The US government is aware of the economy's sensitivity to supply chain issues and has initiated a response. Using your own independent research, explain the actions the US government has taken to...
-
Review the implied terms in the Sale of Goods Acts and select the two most important implied terms in the sale of goods. Justify your selection according to the commercial or legal protections...
-
Mo takes out insurance for his new house. The outside of his house has been painted. It looks like painted Brick. Mo thought the house was Brick. Based on this belief, he takes out house insurances...
-
A one- or two-sentence summary of the organizational structure issue presented in the case. A discussion with rationales supported by research and organizational theory analysis for at least two...
-
Sketch Then (10) the region bounded by the parabolas x = y = 1 and x = 2y - 2. as an iterated double integral and express the region's area evaluate the integral.
-
On October 1, 2021, Adoll Company acquired 2,600 shares of its $1 par value stock for $38 per share and held these shares in treasury. On March 1, 2023, Adoll resold all the treasury shares for $34...
-
Charlie's Green Lawn Care is a cash basis taxpayer. Charlie Adame, the sole proprietor, is considering delaying some of his December 2012 customer billings for lawn care into the next year. In...
-
Jim is fired from his job as a waiter and decides to take an extended trip to Europe. After touring Europe for 3 months, Jim returns to look for a new job as a waiter. Are his job-hunting expenses...
-
Steve Drake sells a rental house on January 1, 2012, and receives $130,000 cash and a note for $55,000 at 10 percent interest. The purchaser also assumes the mortgage on the property of $45,000....
-
Explain the term Energy. Discuss its various forms.
-
Explain cyclic and quasi static process.
-
Explain the terms : state, phase, process and cyclic process.
Study smarter with the SolutionInn App