item 2 Task The Managing Director of a car rental company called Aussie Car Rental (ACR) invites you to build a computer system for them in Python. Aussie Car Rental (ACR) rents out three different types of cars; small cars (such as Hyundai Getz), medium cars (such as Holden Commodore) and large cars (such as Toyota Land Cruiser). For each type of car, ACR charges a basic rent per day and an additional rent per kilometer. The basic rents per day for the small, medium and large cars are $150, $200 and $350, respectively. The additional rents per kilometer for the small, medium and large cars are calculated based on the following table. Additional Rent per kilometer for different types of cars Car Type Number of kilometers travelled Additional rent (in dollar) per kilometer Small Less than 500 From 500 up to less than 1000 1000 and above 1.0 0.9 0.8 Medium Less than 500 From 500 up to less than 1000 1000 and above 0.75 0.65 0.55 Large Less than 500 From 500 up to less than 1000 1000 and above 0.3 0.2 0.1 That is, if a small car travels 700 kilometers then for the first 500 kilometers the additional rent will be 500 km x 1.0 dollar/km = 500 dollars. For the remaining 200 kilometers the additional rent will be 200 km x 0.9 dollar/km = 180 dollars. So the total additional rent will be 500 dollars + 180 dollars = 680 dollars.    ACR requests you to write a program in Python that will ask them to input, for a customer, the car type (small, medium or large), the number of days for which a car is rented out and the number of kilometres it has travelled during the rental period. Based on the inputs the program will compute and display the total basic rental amount, additional rental amount and the total rental amount. It will then ask ACR “Do you want to compute the rental amount for another customer?” If ACR wants to compute the rental amount for another customer (i.e. enters “Y” to the question) then the program will ask for all these...

  • 10 years ago
build a computer system A+ Tutorial use as Guide
NOT RATED

Purchase the answer to view it

  • build_a_computer_system.docx