Please adjust this code and make it workable. Requirement is to…

  

Please adjust this code and make it workable. Requirement is to… Please adjust this code and make it workable. Requirement is to develop ‘Class Main’ below.  Bus Booking.py, Bus Book-procedural, Text files and description of already developed classes(.doc file) are is in google drive(link attached seperately)  Text files are bottom of this. Question: Develop bus booking system using object-oriented approach. This bus booking system is for a travel agency which delivers bus services from Melbourne to other destinations in Australia. The agents from the travel agency are the ones that use this system to book trips for customers. You are required to implement the program following the below requirements.  The only external Python libraries allowed in this assignment are sys, datetime, copy, os.   ++++++++++++++++++++++++++This is the part to be developed. This is the main Class to be developed. OperationsThis can be considered as a main class of your program. It supports a menu with the following options: i. Book a new trip: this option allows user to book a trip for a customer. Detailed requirements for this option are in the paragraph below. ii. Display the current customer list: this option can display the information of all the existing customers with the format as in the file customers.txt(as specified in Records). iii. Display the current destination list: this option can display the information of all the existing destinations with the format as in the file destinations.txt(as specified in Records). iv. Exit the program: this option allows users to exit the program.  Other requirements of the menu program are as follows: v. When the program starts, it looks for the files customers.txt and destinations.txtin the local directory (the directory that stores the .py file). If found, the data will be read into the program accordingly, the program will then display a menu with the 4 options described above. If any file is missing, the program will quit gracefully with an error message indicating the files are missing.  vi. Your menu program will allow the user to manually enter a booking as specified in PART 1 of Assignment 1. Note that in this case, the customer can choose to get a normal membership or a VIP membership (a VIP membership will cost 100$ more). More detailed information regarding the membership choice is in section vii below. Also, note that you do not need to handle errors in input in this part. For example, similar to PART 1 of Assignment 1, you can assume user always enter valid destination, valid ticket price, valid “y” or “n” answer. You can also assume the user enter the membership type correctly, for example, “M” for a normal membership, and “V” for a VIP membership.  vii. When a customer finishes a booking, a. If the customer is a new customer, you need to add the information of that customer into your data collection (think/analyse carefully which information you need to add to your data collection). If the customer answers “n” for the question of becoming a member, then the customer is just a normal customer. If the customer answers “y”, then the program will ask what type of member the customer wants. If the answer is “M”, then the customer will become a member (a customer with a normal membership). If the answer is “V”, then the customer will become a VIP member (a customer with a VIP membership). Note, the customer will need to pay extra 100$ for becoming a VIP member. Discount is NOT applied on this 100$ membership fee. Again, you can assume the user enter the membership type correctly (“M” or “V”).  b. If the customer is an existing customer, you need to update the information of that customer into your data collection (think/analyse carefully which information you need to update). Note, for existing customers, you DO NOT need to ask if they want a membership (normal or VIP membership). This is slightly different compared to the requirements in Assignment 1, so please be careful.  c. Note that, be careful when you add a new customer to your data collection. The ID of a customer must be unique. You can assume the customer names are also unique. d. After each booking, the number of seats available for the chosen destination will be reduced by the number of tickets in the booking. Note in this part, you do not need to handle error when the number of tickets in the booking is larger than the number of available seats for the destination.   viii. The total cost of a booking can be displayed as a formatted message as below (for existing customers, or, new customers who are normal customers or customers with normal membership):   books tickets to gets a discount of %. Unit price: (AUD) Total price: (AUD) The formatted message is as below for new customers who register to be a VIP member:  books tickets to gets a discount of %. Unit price: (AUD) Membership price: (AUD) Total price: (AUD)  ix. When a task is accomplished, the menu will appear again for the next task. The program always exits gracefully from the menu. x. In this assignment, you can assume any customer names do not include any digits. And you DO NOT need to handle issues for this requirement.     +++++++++++++++++++++++++++++End of Main Class.Further instructionhttps://drive.google.com/drive/folders/1Ho9neYq7o41YEg33kJ1rXuoGVcl2m4DC?usp=sharing     Computer Science Engineering & Technology Python Programming COSC 2666

Don't use plagiarized sources. Get Your Custom Essay on
Please adjust this code and make it workable. Requirement is to…
Just from $13/Page
Order Essay
  

Leave a Reply

Your email address will not be published.

Related Post

Open chat
💬 Need help?
Hello 👋
Can we help you?