Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Example Program Run for my previous question in link: https://www.chegg.com/homework-help/questions-and-answers/c-first-part-question-u-find-https-wwwcheggcom-homework-help-questions-answers-c-project-s-q66877360?trackid=69RYQAW9 SIMPLIFIED SIMULATION OF A RENTAL AGENCY ======================================== ________________________________________ MENUE A end of simulation B set

Example Program Run

for my previous question in link:

https://www.chegg.com/homework-help/questions-and-answers/c-first-part-question-u-find-https-wwwcheggcom-homework-help-questions-answers-c-project-s-q66877360?trackid=69RYQAW9

SIMPLIFIED SIMULATION OF A RENTAL AGENCY ======================================== ________________________________________ MENUE A end of simulation B set new simulation date C new rental manually D print rental of today 2021-01-01 E print rental of tomorrow 2021-01-02 F print all rentals G print agency profit H set agency profit percent I add bikes J add E-bikes K add E-scooters L new rental simulation your choice: b input date of today: 2021-01-08 ________________________________________ MENUE A end of simulation B set new simulation date C new rental manually D print rental of today 2021-01-08 E print rental of tomorrow 2021-01-09 F print all rentals G print agency profit H set agency profit percent I add bikes J add E-bikes K add E-scooters L new rental simulation your choice: d SCHEDULE FOR 2021-01-08 ________________________________________ MENUE A end of simulation B set new simulation date C new rental manually D print rental of today 2021-01-08 E print rental of tomorrow 2021-01-09 F print all rentals G print agency profit H set agency profit percent I add bikes J add E-bikes K add E-scooters L new rental simulation your choice: e SCHEDULE FOR 2021-01-09 ________________________________________ MENUE A end of simulation B set new simulation date C new rental manually D print rental of today 2021-01-08 E print rental of tomorrow 2021-01-09 F print all rentals G print agency profit H set agency profit percent I add bikes J add E-bikes K add E-scooters L new rental simulation your choice: f profit: 0.00 EUR ________________________________________ MENUE A end of simulation B set new simulation date C new rental manually D print rental of today 2021-01-08 E print rental of tomorrow 2021-01-09 F print all rentals G print agency profit H set agency profit percent I add bikes J add E-bikes K add E-scooters L new rental simulation your choice: g agency profit: 0.00 EUR ________________________________________ MENUE A end of simulation B set new simulation date C new rental manually D print rental of today 2021-01-08 E print rental of tomorrow 2021-01-09 F print all rentals G print agency profit H set agency profit percent I add bikes J add E-bikes K add E-scooters L new rental simulation your choice: h agency profit percent: 35 ________________________________________ MENUE A end of simulation B set new simulation date C new rental manually D print rental of today 2021-01-08 E print rental of tomorrow 2021-01-09 F print all rentals G print agency profit H set agency profit percent I add bikes J add E-bikes K add E-scooters L new rental simulation your choice: i how many Bikes in this simulation? 3 ________________________________________ MENUE A end of simulation B set new simulation date C new rental manually D print rental of today 2021-01-08 E print rental of tomorrow 2021-01-09 F print all rentals G print agency profit H set agency profit percent I add bikes J add E-bikes K add E-scooters L new rental simulation your choice: f SCHEDULE FOR 1: City1 (Bike) SCHEDULE FOR 2: City2 (Bike) SCHEDULE FOR 3: City3 (Bike) profit: 0.00 EUR ________________________________________ MENUE A end of simulation B set new simulation date C new rental manually D print rental of today 2021-01-08 E print rental of tomorrow 2021-01-09 F print all rentals G print agency profit H set agency profit percent I add bikes J add E-bikes K add E-scooters L new rental simulation your choice: j how many EBikes in this simulation? 4 ________________________________________ MENUE A end of simulation B set new simulation date C new rental manually D print rental of today 2021-01-08 E print rental of tomorrow 2021-01-09 F print all rentals G print agency profit H set agency profit percent I add bikes J add E-bikes K add E-scooters L new rental simulation your choice: f SCHEDULE FOR 1: City1 (Bike) SCHEDULE FOR 2: City2 (Bike) SCHEDULE FOR 3: City3 (Bike) SCHEDULE FOR 4: Trekky1 (EBike) SCHEDULE FOR 5: Trekky2 (EBike) SCHEDULE FOR 6: Trekky3 (EBike) SCHEDULE FOR 7: Trekky4 (EBike) profit: 0.00 EUR ________________________________________ MENUE A end of simulation B set new simulation date C new rental manually D print rental of today 2021-01-08 E print rental of tomorrow 2021-01-09 F print all rentals G print agency profit H set agency profit percent I add bikes J add E-bikes K add E-scooters L new rental simulation your choice: i how many Bikes in this simulation? 1 ________________________________________ MENUE A end of simulation B set new simulation date C new rental manually D print rental of today 2021-01-08 E print rental of tomorrow 2021-01-09 F print all rentals G print agency profit H set agency profit percent I add bikes J add E-bikes K add E-scooters L new rental simulation your choice: f SCHEDULE FOR 1: City1 (Bike) SCHEDULE FOR 2: City2 (Bike) SCHEDULE FOR 3: City3 (Bike) SCHEDULE FOR 4: Trekky1 (EBike) SCHEDULE FOR 5: Trekky2 (EBike) SCHEDULE FOR 6: Trekky3 (EBike) SCHEDULE FOR 7: Trekky4 (EBike) SCHEDULE FOR 8: City4 (Bike) profit: 0.00 EUR ________________________________________ MENUE A end of simulation B set new simulation date C new rental manually D print rental of today 2021-01-08 E print rental of tomorrow 2021-01-09 F print all rentals G print agency profit H set agency profit percent I add bikes J add E-bikes K add E-scooters L new rental simulation your choice: k how many EScooters in this simulation? 3 ________________________________________ MENUE A end of simulation B set new simulation date C new rental manually D print rental of today 2021-01-08 E print rental of tomorrow 2021-01-09 F print all rentals G print agency profit H set agency profit percent I add bikes J add E-bikes K add E-scooters L new rental simulation your choice: f SCHEDULE FOR 1: City1 (Bike) SCHEDULE FOR 2: City2 (Bike) SCHEDULE FOR 3: City3 (Bike) SCHEDULE FOR 4: Trekky1 (EBike) SCHEDULE FOR 5: Trekky2 (EBike) SCHEDULE FOR 6: Trekky3 (EBike) SCHEDULE FOR 7: Trekky4 (EBike) SCHEDULE FOR 8: City4 (Bike) SCHEDULE FOR 9: Scooty1 (not street legal) (EScooter) SCHEDULE FOR 10: Scooty2 (not street legal) (EScooter) SCHEDULE FOR 11: Scooty3 (not street legal) (EScooter) profit: 0.00 EUR ________________________________________ MENUE A end of simulation B set new simulation date C new rental manually D print rental of today 2021-01-08 E print rental of tomorrow 2021-01-09 F print all rentals G print agency profit H set agency profit percent I add bikes J add E-bikes K add E-scooters L new rental simulation your choice: c 1: City1 (Bike) 2: City2 (Bike) 3: City3 (Bike) 4: Trekky1 (EBike) 5: Trekky2 (EBike) 6: Trekky3 (EBike) 7: Trekky4 (EBike) 8: City4 (Bike) 9: Scooty1 (not street legal) (EScooter) 10: Scooty2 (not street legal) (EScooter) 11: Scooty3 (not street legal) (EScooter) choose vehicle no: 3 day of rental: 2021-02-12 number of days: 3 input data vehicle renter name: Dilbert booked, price for this rental: 29.97 EUR ________________________________________ MENUE A end of simulation B set new simulation date C new rental manually D print rental of today 2021-01-08 E print rental of tomorrow 2021-01-09 F print all rentals G print agency profit H set agency profit percent I add bikes J add E-bikes K add E-scooters L new rental simulation your choice: d SCHEDULE FOR 2021-01-08 1: City1 (Bike) 2: City2 (Bike) 3: City3 (Bike) 4: Trekky1 (EBike) 5: Trekky2 (EBike) 6: Trekky3 (EBike) 7: Trekky4 (EBike) 8: City4 (Bike) 9: Scooty1 (not street legal) (EScooter) 10: Scooty2 (not street legal) (EScooter) 11: Scooty3 (not street legal) (EScooter) ________________________________________ MENUE A end of simulation B set new simulation date C new rental manually D print rental of today 2021-01-08 E print rental of tomorrow 2021-01-09 F print all rentals G print agency profit H set agency profit percent I add bikes J add E-bikes K add E-scooters L new rental simulation your choice: f SCHEDULE FOR 1: City1 (Bike) SCHEDULE FOR 2: City2 (Bike) SCHEDULE FOR 3: City3 (Bike) 2021-02-12 to 2021-02-15, rental no. 1 for Dilbert , total: 29.97 EUR SCHEDULE FOR 4: Trekky1 (EBike) SCHEDULE FOR 5: Trekky2 (EBike) SCHEDULE FOR 6: Trekky3 (EBike) SCHEDULE FOR 7: Trekky4 (EBike) SCHEDULE FOR 8: City4 (Bike) SCHEDULE FOR 9: Scooty1 (not street legal) (EScooter) SCHEDULE FOR 10: Scooty2 (not street legal) (EScooter) SCHEDULE FOR 11: Scooty3 (not street legal) (EScooter) profit: 10.49 EUR ________________________________________ MENUE A end of simulation B set new simulation date C new rental manually D print rental of today 2021-01-08 E print rental of tomorrow 2021-01-09 F print all rentals G print agency profit H set agency profit percent I add bikes J add E-bikes K add E-scooters L new rental simulation your choice: c 1: City1 (Bike) 2: City2 (Bike) 3: City3 (Bike) 4: Trekky1 (EBike) 5: Trekky2 (EBike) 6: Trekky3 (EBike) 7: Trekky4 (EBike) 8: City4 (Bike) 9: Scooty1 (not street legal) (EScooter) 10: Scooty2 (not street legal) (EScooter) 11: Scooty3 (not street legal) (EScooter) choose vehicle no: 5 day of rental: 2021-01-22 number of days: 1 input data vehicle renter name: Wally booked, price for this rental: 29.99 EUR ________________________________________ MENUE A end of simulation B set new simulation date C new rental manually D print rental of today 2021-01-08 E print rental of tomorrow 2021-01-09 F print all rentals G print agency profit H set agency profit percent I add bikes J add E-bikes K add E-scooters L new rental simulation your choice: f SCHEDULE FOR 1: City1 (Bike) SCHEDULE FOR 2: City2 (Bike) SCHEDULE FOR 3: City3 (Bike) 2021-02-12 to 2021-02-15, rental no. 1 for Dilbert , total: 29.97 EUR SCHEDULE FOR 4: Trekky1 (EBike) SCHEDULE FOR 5: Trekky2 (EBike) 2021-01-22 to 2021-01-23, rental no. 2 for Wally , total: 29.99 EUR SCHEDULE FOR 6: Trekky3 (EBike) SCHEDULE FOR 7: Trekky4 (EBike) SCHEDULE FOR 8: City4 (Bike) SCHEDULE FOR 9: Scooty1 (not street legal) (EScooter) SCHEDULE FOR 10: Scooty2 (not street legal) (EScooter) SCHEDULE FOR 11: Scooty3 (not street legal) (EScooter) profit: 20.99 EUR ________________________________________ MENUE A end of simulation B set new simulation date C new rental manually D print rental of today 2021-01-08 E print rental of tomorrow 2021-01-09 F print all rentals G print agency profit H set agency profit percent I add bikes J add E-bikes K add E-scooters L new rental simulation your choice: c 1: City1 (Bike) 2: City2 (Bike) 3: City3 (Bike) 4: Trekky1 (EBike) 5: Trekky2 (EBike) 6: Trekky3 (EBike) 7: Trekky4 (EBike) 8: City4 (Bike) 9: Scooty1 (not street legal) (EScooter) 10: Scooty2 (not street legal) (EScooter) 11: Scooty3 (not street legal) (EScooter) choose vehicle no: 3 day of rental: 2021-02-14 number of days: 2 sorry vehicle already booked ________________________________________ MENUE A end of simulation B set new simulation date C new rental manually D print rental of today 2021-01-08 E print rental of tomorrow 2021-01-09 F print all rentals G print agency profit H set agency profit percent I add bikes J add E-bikes K add E-scooters L new rental simulation your choice: l how many reservations to simulate? 10 rental vehicle 5 from 2021-09-19 for 6 days rental vehicle 6 from 2021-04-07 for 2 days rental vehicle 4 from 2021-05-24 for 2 days rental vehicle 3 from 2021-10-27 for 3 days rental vehicle 11 from 2021-12-29 for 5 days rental vehicle 2 from 2021-05-19 for 3 days rental vehicle 9 from 2021-01-09 for 6 days rental vehicle 6 from 2021-03-11 for 1 days rental vehicle 8 from 2021-09-29 for 7 days rental vehicle 2 from 2021-01-02 for 3 days ________________________________________ MENUE A end of simulation B set new simulation date C new rental manually D print rental of today 2021-01-08 E print rental of tomorrow 2021-01-09 F print all rentals G print agency profit H set agency profit percent I add bikes J add E-bikes K add E-scooters L new rental simulation your choice: f SCHEDULE FOR 1: City1 (Bike) SCHEDULE FOR 2: City2 (Bike) 2021-01-02 to 2021-01-05, rental no. 12 for customer10 , total: 29.97 EUR 2021-05-19 to 2021-05-22, rental no. 8 for customer6 , total: 29.97 EUR SCHEDULE FOR 3: City3 (Bike) 2021-02-12 to 2021-02-15, rental no. 1 for Dilbert , total: 29.97 EUR 2021-10-27 to 2021-10-30, rental no. 6 for customer4 , total: 29.97 EUR SCHEDULE FOR 4: Trekky1 (EBike) 2021-05-24 to 2021-05-26, rental no. 5 for customer3 , total: 59.98 EUR SCHEDULE FOR 5: Trekky2 (EBike) 2021-01-22 to 2021-01-23, rental no. 2 for Wally , total: 29.99 EUR 2021-09-19 to 2021-09-25, rental no. 3 for customer1 , total: 179.94 EUR SCHEDULE FOR 6: Trekky3 (EBike) 2021-03-11 to 2021-03-12, rental no. 10 for customer8 , total: 29.99 EUR 2021-04-07 to 2021-04-09, rental no. 4 for customer2 , total: 59.98 EUR SCHEDULE FOR 7: Trekky4 (EBike) SCHEDULE FOR 8: City4 (Bike) 2021-09-29 to 2021-10-06, rental no. 11 for customer9 , total: 69.93 EUR SCHEDULE FOR 9: Scooty1 (not street legal) (EScooter) 2021-01-09 to 2021-01-15, rental no. 9 for customer7 , total: 89.94 EUR SCHEDULE FOR 10: Scooty2 (not street legal) (EScooter) SCHEDULE FOR 11: Scooty3 (not street legal) (EScooter) 2021-12-29 to 2022-01-03, rental no. 7 for customer5 , total: 74.95 EUR profit: 250.10 EUR 

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Example Program Run for my previous question in link:...

Answered: 1 week ago