Develop and execute at least 12 sets of your own well-designed and thorough testcases. In order...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Develop and execute at least 12 sets of your own well-designed and thorough testcases. In order to sell as much of their paint as possible, Acme Paints is advertising some special sale prices. Their paints are available in gallon-size, quart-size, and pint-size containers, and the more you buy, the more you save. Each pint-size container of paint (regardless of the color) costs $5. However, if a customer buys at least a quart of paint (in any combination of quart-size or pint-size containers, and in any combination of colors), he or she would pay only $9 for each quart. Similarly, if a customer buys at least a gallon of paint (in any combination of gallon-size, quart-size, or pint-size containers, and in any combination of colors), he or she would pay only $17 for each gallon. For example, suppose a customer buys the following colors and containers of paints: 1 gallon, 2 quarts, and 1 pint Green: 2 gallons, 1quart, and 1 pint Yellow: 1 gallon, 2 quarts, and 0 pints O gallons, 1 quart, and 1 pint Red: Blue: At first glance it might seem that the customer has bought a total of 4 gallons, 6 quarts, and 3 pints of paint altogether. However, note that since 2 pints make a quart, a better way to write the total would be as 4 gallons, 7 quarts, and 1 pint. Also, note that since 4 quarts make a gallon, the final total would best be written as 5 gallons, 3 quarts, and 1 pint. Therefore the final cost would be: 5 gallons * $17 per gallon + 3 quarts * $9 per quart + 1 pints * $5 per pint or $117. Obviously, this is way beyond the ability of the checkout person at Acme Paints, who never did like higher math. So the manager of Acme Paints has hired you, a famous local computer programmer, to write a computer program to help out the store and make the sale a success. Design, write, and execute a Python language program that uses the above rules to assist in a paint sale. Your program should first ask the user how many containers of each size and each color of paint are being sold. It should then display a summary of the sale, first listing the number of containers being sold of each size and of each color of paint, and then listing the total adjusted amount being sold of each size for all colors of paint together. Finally, it should display the total cost of the sale. Develop and execute at least 12 sets of your own well-designed and thorough testcases. In order to sell as much of their paint as possible, Acme Paints is advertising some special sale prices. Their paints are available in gallon-size, quart-size, and pint-size containers, and the more you buy, the more you save. Each pint-size container of paint (regardless of the color) costs $5. However, if a customer buys at least a quart of paint (in any combination of quart-size or pint-size containers, and in any combination of colors), he or she would pay only $9 for each quart. Similarly, if a customer buys at least a gallon of paint (in any combination of gallon-size, quart-size, or pint-size containers, and in any combination of colors), he or she would pay only $17 for each gallon. For example, suppose a customer buys the following colors and containers of paints: 1 gallon, 2 quarts, and 1 pint Green: 2 gallons, 1quart, and 1 pint Yellow: 1 gallon, 2 quarts, and 0 pints O gallons, 1 quart, and 1 pint Red: Blue: At first glance it might seem that the customer has bought a total of 4 gallons, 6 quarts, and 3 pints of paint altogether. However, note that since 2 pints make a quart, a better way to write the total would be as 4 gallons, 7 quarts, and 1 pint. Also, note that since 4 quarts make a gallon, the final total would best be written as 5 gallons, 3 quarts, and 1 pint. Therefore the final cost would be: 5 gallons * $17 per gallon + 3 quarts * $9 per quart + 1 pints * $5 per pint or $117. Obviously, this is way beyond the ability of the checkout person at Acme Paints, who never did like higher math. So the manager of Acme Paints has hired you, a famous local computer programmer, to write a computer program to help out the store and make the sale a success. Design, write, and execute a Python language program that uses the above rules to assist in a paint sale. Your program should first ask the user how many containers of each size and each color of paint are being sold. It should then display a summary of the sale, first listing the number of containers being sold of each size and of each color of paint, and then listing the total adjusted amount being sold of each size for all colors of paint together. Finally, it should display the total cost of the sale.
Expert Answer:
Answer rating: 100% (QA)
Code printAcme Pain Pricing Program version 10 printc your name 2021 conttypegallonquartpint redpain... View the full answer
Posted Date:
Students also viewed these accounting questions
-
In order to sell a product at a profit the product must be priced higher than the total of what it costs you to build the unit, plus period expenses, and plus overhead. At the end of last year the...
-
In the 1980s, paint was sold by color and size in paint retail stores. Today paint is mixed at the paint store according to the color desired. Discuss what, if any, impact this change has on safety...
-
Acme Corporation has received a contractual order to build a new tooling machine for Alpha Corporation. The project started several months ago. Table 1514 is the Monthly Cost Summary for June, 2002....
-
Reading material Raymond Frost, Alexa K. Fox & Judy Strauss (2019). Product: The Online Offer. E-Marketing , 9, 206 - 228. Raymond Frost, Alexa K. Fox & Judy Strauss (2019). Price: The Online Value....
-
A study investigated the relationship between audit delay (Delay), the length of time from a company's fiscal year-end to the date of the auditor's report, and variables that describe the client and...
-
Online versus Offline Privacy As more firms practice relationship marketing and develop customer databases, privacy issues are emerging as an important topic. Consumers and public interest groups are...
-
As the brick in Example 9.8 moves downward, why is the magnitude of the force it exerts on the spring given by Eq. 1 in Example 9.8 and not by simply the magnitude \(m g\) of the gravitational force...
-
Suppose dividend payments were made tax deductible in calculating corporate taxable income in the United States. Assume that if dividends are received from foreign subsidiaries and the U. S. parent...
-
i. As at 30th June 2013, the following information was available from the records of SGR Limited. ii. Acheque of sh 2,720,000 drawn on 30th June was presented to the bank for payment on 16th July,...
-
In auditing Train Company, you obtain directly from the bank Trains bank statement, canceled checks, and other memoranda which relate to the companys bank account for December 2016. In reconciling...
-
The Southern Division of Knucklehead Company has a rate of return on investment of 15% and an investment turnover of 1.2. What is the profit margin? a.12.5% b. 6.67% c. 0.67% d. 1.5%
-
Imagine being at all-company meetings where trays of hors doeuvres and drinks are being served, but you and the others who arent wearing white badges are asked to return to your desks. That has been...
-
Discuss whether a leader can get power from multiple sources.
-
Evaluate Starbuckss training efforts. What other type(s) of training might be necessary?
-
Despite being a world-renowned business, BAE Systems Naval Ships has hardly changed its working arrangement over the past years at its Glasgow sites on the River Clyde, explains Chris Westcott, who...
-
What are the ten traits of effective leaders?
-
2. The transducer specified in Table 1.1 (below) is chosen to measure a nominal pressure of 700 cm HO. The ambient temperature is expected to vary between 20C and 25C during tests. Determine each...
-
Factor and simplify, if possible. Check your result using a graphing calculator. 3 cot 2 + 6 cot + 3
-
In Appendix 16A.1, we illustrate the calculation of a standard error for the marginal effect in a probit model of transportation, Example 16.4. In the appendix, the calculation is for the marginal...
-
In Examples 16.2 and 16.4, we presented the linear probability and probit model estimates using an example of transportation choice. The logit model for the same example is \(P(A U T...
-
In Example 16.3, we illustrate the calculation of the likelihood function for the probit model in a small example. a. Calculate the probability that \(y=1\) if \(x=1.5\), given the values of the...
Study smarter with the SolutionInn App