akosiraff

Download truckrental

Dec 18th, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.34 KB | None | 0 0
  1.  
  2. Download: https://solutionzip.com/downloads/truckrental/
  3. Final Project (Truck Rental)
  4. Purpose
  5. Compute and display information relating to moving truck rental. For a specified customer, the program will compute and display the amount of money
  6. charged the customer’s truck rental.
  7. Rental Information
  8. Classification Base Charge Daily Mileage Charge (Daily Rentals) Base Charge Weekly Mileage Charge (Weekly
  9. Rentals)
  10. A 19.95 0.59 per mile 125.68 0.59 per mile after first 200 miles per week
  11. B 29.95 0.79 per mile 188.68 0.
  12. 79 per mile after first 200 miles per week
  13. C 39.95 0.85 per mile 251.68 0.85 per mile after first 200 miles per week
  14. Example:
  15. User wants a Class B truck for 2 days and will drive 130 miles. The cost is $162.60 (daily rate $29.95 for 2 days = 59.90 + 130 miles * .79 = 102.70)
  16. User wants a Class C truck for 1 week and will drive 210 miles. The cost is $260.18 (weekly rate $251.68 for 1 week + (210-200) miles * .85 = 8.50)**
  17. ** note: Weekly rentals include mileage. Our example takes total mileage – 200 (allowance) to determine 10 additional miles. Refunds are not given for unused miles.
  18. Requirements
  19. Your application will calculate the rental rate for a customer and display it to screen. From a menu, the user will select truck classification. After truck
  20. classification has been selected, display a menu with the rental options of daily or weekly. The program then needs to gather how many days or weeks
  21. the user wants to rent the truck and then how many miles will be driven.
  22. Programming Requirements
  23. Your program must include the following concepts:
  24. • Functions – you must begin your program with main().
  25. • Lists – consider the Classification/Base Charge Daily/Daily Mileage Charge/Base Charge Weekly/Mileage Charge Weekly/Allowed Mileage Weekly
  26. as parallel lists or a two-dimensional list.
  27. • Variables – data input/output to the user will most likely be stored in variables.
  28. • Loops – after the completion of computing a customer’s total, loop to the beginning of the program making it ready for the next customer.
  29. • Conditions – you will use if/else statements to compare values.
  30. • Menu – your application needs to have a menu of choices (rent truck, exit) with professional formatting.
  31. • Exception handling – input errors should be handled.
  32.  
  33. Download: https://solutionzip.com/downloads/truckrental/
Add Comment
Please, Sign In to add comment