implement a Python program that will check-in the five cars that are being delivered in this week’s shipment and also calculate potential gross profit (and adjusted based on type of car), as well as totals for cost, MSRP (manufacturer’s suggested retail price), potential gross profit, and potential adjusted gross profit. As your program executes, it should: 1. As part of the check-in, prompt the user to enter the car name (e.g., Red 1969 Triumph TR6), MSRP (manufacturer’s suggested retail price), cost, and code of the type of car (0 = domestic or 1 = import) for each car 2. Once the check-in is complete, your program should then print out a summary of the shipment including: a. For each car … Car name, the MSRP, cost, potential gross profit for the car (you’ll need to calculate this), adjusted potential gross profit (you’ll need to calculate this … for domestic cars, there’s no expected adjustment, but for imports we expect to have to adjust the gross profit downward by 1.75% based on last year’s margins), and whether the car is domestic or import (the code should be converted to the word “domestic” or “import” accordingly). b. After printing out the individual information for each of the cars, you will them print out the totals for the shipment including: i. The total of the MSRPs for the five cars ii. The total cost for the five cars iii. The total potential gross profit of the five cars iv. The total adjusted potential gross profit of the five cars Note: This may best be accomplished by accumulating the various totals as you do the check-in (in 1 above) or perhaps as you print out the individual info for the cars (in 2a above)
Computer Science
Krannert Specialty Motors is a unique auto dealer that sells both brand new and “lovingly driven” high-end automobiles. Shipment check-in is an important part of the business operations as well getting a quick overview as to the profitability of the shipment. Your task will be to design, write, and implement a Python program that will check-in the five cars that are being delivered in this week’s shipment and also calculate potential gross profit (and adjusted based on type of car), as well as totals for cost, MSRP (manufacturer’s suggested retail price), potential gross profit, and potential adjusted gross profit. As your program executes, it should: 1. As part of the check-in, prompt the user to enter the car name (e.g., Red 1969 Triumph TR6), MSRP (manufacturer’s suggested retail price), cost, and code of the type of car (0 = domestic or 1 = import) for each car 2. Once the check-in is complete, your program should then print out a summary of the shipment including: a. For each car … Car name, the MSRP, cost, potential gross profit for the car (you’ll need to calculate this), adjusted potential gross profit (you’ll need to calculate this … for domestic cars, there’s no expected adjustment, but for imports we expect to have to adjust the gross profit downward by 1.75% based on last year’s margins), and whether the car is domestic or import (the code should be converted to the word “domestic” or “import” accordingly). b. After printing out the individual information for each of the cars, you will them print out the totals for the shipment including: i. The total of the MSRPs for the five cars ii. The total cost for the five cars iii. The total potential gross profit of the five cars iv. The total adjusted potential gross profit of the five cars Note: This may best be accomplished by accumulating the various totals as you do the check-in (in 1 above) or perhaps as you print out the individual info for the cars (in 2a above) For this assignment, do not worry about dollar signs for the various costs, prices, or profits. Also, make sure to use comments to explain the various parts of your
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 3 images
Krannert Specialty Motors is a unique auto dealer that sells both brand new and “lovingly driven” high-end automobiles. In addition to car sales, KSM has been experimenting for the year with the idea of leasing cars (using some of the “lovingly driven” high-end automobiles as its inventory) as well and has a subsidiary called Krannert Specialty Motors Leasing (KSML). Understanding and maintaining the fleet of lease vehicles is important to KSML and sometimes the inventory manager needs to look at historic data to make decisions about the future. The inventory manager needs to be able to look at both aggregate and specific data about their cars and make some decisions. Currently there is a small inventory of rough 20-25 cars, but that may grow in the future if this venture proves success. The cars have unique names based on the type of car or its features (e.g., the name of the Fiat 124 Spider is “spider,” the name of the TR7 is “triangle,” the name of the Alfa Romeo Stelvio Quadrifoglio is “shamrock,” the name of the the Delorean DMC-12 is “marty,” etc. The aspects of each car that are tracked include actions like general maintenance (general upkeep), fixes (minor upkeep), upgrades (major improvements), and others. All cars also have other data about them tracked as well including things like number of oil changes, number of bodywork incidents, number of major