28 AAPP XXXXXXXXXXPWP Group Assignment Page 1 of 6 Level 1 Asia Pacific University of Technology and Innovation 2021 ONLINE CAR RENTAL SYSTEM (OCRS) SUPER CAR RENTAL SERVICES (SCRS) is one of the...

1 answer below »
functionalities of admin only


28 AAPP010-4-2-PWP Group Assignment Page 1 of 6 Level 1 Asia Pacific University of Technology and Innovation 2021 ONLINE CAR RENTAL SYSTEM (OCRS) SUPER CAR RENTAL SERVICES (SCRS) is one of the fast-growing Online Car Rental Service in Malaysia which help customer to save their time by booking rental cars online from their place. SCRS decided to enhance their online Car Rental booking services by allowing customers to book cars for rent, online. SCRS requires you to develop Python program for the OCRS which have 3 type of users and should contains features stated below: Functionalities of Admin i. Login to Access System. ii. Add Cars to be rented out. iii. Modify Car Details iv. Display All records of a. Cars Rented Out b. Cars available for Rent c. Customer Bookings d. Customer Payment for a specific time duration v. Search Specific record of a. Customer Booking b. Customer Payment vi. Return a Rented Car. vii. Exit Functionalities of All Customers (Registered / Not-Registered) i. View all cars available for rent. ii. New customer Register to Access other Details iii. Exit Functionalities of Registered Customer i. Login to Access System ii. Modify Personal Details. iii. View Personal Rental History. iv. View Detail of Cars to be Rented Out. v. Select and Book a car for a specific duration. vi. Do payment to confirm Booking. vii. Exit AAPP010-4-2-PWP Group Assignment Page 2 of 6 Level 1 Asia Pacific University of Technology and Innovation 2021 1.0 REQUIREMENTS i. You are required to carry out extra research for your system and document any logical assumptions you made after the research. ii. Your program should use symbolic constants where appropriate. Validations need to be included to ensure the accuracy of the system. State any assumptions that you make under each function. iii. You are required to store all data in text files. There is no limit on the number of text files that can be used but they should be kept minimum. iv. You are expected to use list and functions in your program. Your program must embrace modular programming technique and should be menu-driven. v. You may include any extra features which you may feel relevant and that add value to the system. vi. There should be no need for graphics in your program, as what is being assessed, is your programming skill not the interface design. The marking scheme for the assignment has been provided so that you clearly know how the assessment for this assignment would be done. vii. You should include the good programming practice such as comments, variable naming conventions and indentation. viii. In a situation where a student: - Failed to attempt the assignment demonstration, overall marks awarded for the assignment will be adjusted to 50% of the overall existing marks. - Found to be involved plagiarism, the offence and will be dealt in accordance to APU regulations on plagiarism. ix. You are required to use Python programming language to implement the solution. Use of any other language like C/C++/Java is not allowed. x. Global variables, build in functions like min, max, sort, and search are not allowed. AAPP010-4-2-PWP Group Assignment Page 3 of 6 Level 1 Asia Pacific University of Technology and Innovation 2021 2.0 DELIVERABLES You are required to submit a softcopy of: i. Program coded in Python – submitted as .py file. - Name the file under your name and TP number (e.g. KATHY_SIERRA_TP123456.py) - Start the first two lines in your program by typing your name and TP number (e.g. as follows): #KATHY SIERRA #TP123456 ii. Text files created through test data – submitted as .txt files. iii. A documentation of the system – submitted as NAME_TPNUMBER.pdf file - that incorporates basic documentation standards such as header and footer, page numbering and includes: - Cover page - Table of contents - Introduction and assumptions - Design of the program – using pseudocode and flowcharts – which adheres to the requirements provided above - Program source code with explanation - Additional features source code with explanation - Screenshots of sample input/output with explanation - Conclusion - References using Harvard Name Referencing AAPP010-4-2-PWP Group Assignment Page 4 of 6 Level 1 Asia Pacific University of Technology and Innovation 2021 3.0 ASSESSMENT CRITERIA i. Design (Pseudocode and Flowchart) 20% Detailed, logical and accurate design of programmable solution. ii. Coding / Implementation (Python code) 20% Application of Python programming techniques (from basic to advance); good programming practices in implementing the solution as per design; and adequate validation meeting all system requirements with all possible additional features. iii. Documentation 20% Adherence to document standard format and structure; screen captures of input/output with explanation; and inclusion of generated text files. iv. Group Work 10% Contribution toward group work (design, coding and documentation). v. Q & A 10% Ability to trace code and answer questions. vi. Demonstration 20% Ability to run and explain work done. Design (%) Coding (%) Documentation (%) Group Work (%) Q&A (%) Demo (%) Group 10 20 20 Individual 10 10 10 20 AAPP010-4-2-PWP Group Assignment Page 5 of 6 Level 1 Asia Pacific University of Technology and Innovation 2021 4.0 PERFORMANCE CRITERIA Distinction (80% and above) This grade will be assigned to work which meets all of the requirements stated in the question. The program runs smoothly when executed. There is clear evidence and application of Python concepts up to advanced level. The program solution is unique with excellent coding styles and validation. The program implemented maps completely against the design (pseudocode and flowchart) as seen in the documentation. The design of the solution varies in styles and has unique logic with hardly any errors / omissions. The documentation does not have any missing components. Sample inputs/outputs documented have clear explanation. Student must be able to provide excellent explanation of the codes and work done, show additional concepts / new ideas used in the solution, able to answer all questions posed with accurate / logical answers / explanation provided with sound arguments and clear discussion. Overall an excellent piece of work submitted. Credit (65%-74%) This grade will be assigned to work which is considered to be of good standard and meets most of the requirements stated in the question. The program runs smoothly when executed. There is clear evidence and application of Python concepts up to at least intermediate level. The program solution is unique with good coding styles and validation. The program implemented maps well against the design (pseudocode and flowchart) as seen in the documentation. The design of the solution varies in styles and has unique logic with minor errors / omissions. The documentation does not have any missing components. Sample inputs/outputs documented with some explanation. Student must be able to provide good explanation of the codes and work done, answer most questions posed with mostly accurate / logical answers / explanation. Overall a good assignment submitted. Pass (50%-64%) This grade will be assigned to work which meets at least half of the basic requirements (approximately 50%) stated in the questions. The program runs smoothly when executed. There is clear evidence and application of Python concepts at basic level. The program solution is common with basic coding styles and validation. The program implemented somewhat maps with the design (pseudocode and flowchart) as seen in the documentation. The design of the solution is average in terms of logic and style with some errors / omissions. The documentation AAPP010-4-2-PWP Group Assignment Page 6 of 6 Level 1 Asia Pacific University of Technology and Innovation 2021 has some missing components. Sample inputs/outputs documented but without any explanation. Student must be able to explain some codes and work done and able to answer some questions posed with some accurate / logical answers / explanation. Overall an average piece of work submitted. Fail (Below 50%) This grade will be assigned to work which achieved less than half of the requirements stated in the question. The program is able to compile but not able to execute or with major errors. The program solution has only basic coding styles with no validation. The program solution has little or no mapping with the design. The design of the solution has major / obvious errors / omissions. The documentation has some missing essential components. Student is barely able to explain the codes / work done and answer given on the questions posed but with mostly inaccurate / illogical answers / explanation. Overall a poor piece of work submitted.
Answered 2 days AfterJun 10, 2021

Answer To: 28 AAPP XXXXXXXXXXPWP Group Assignment Page 1 of 6 Level 1 Asia Pacific University of Technology and...

Uttam answered on Jun 13 2021
142 Votes
CarRental/Car_Main.py
from CarRental import CarRental, Customer
def main():
shop = CarRental(100)
customer = Customer()
while True:
print("""
====== Car Rental Shop =======
1. Display available Cars
2. Request a Car on hourly basis $5
3. Request a Car on daily basis $20
4. Request a Car on weekly basis $60
5. Re
turn a Car
6. Exit
""")
choice = input("Enter choice: ")
try:
choice = int(choice)
except ValueError:
print("That's not an int!")
continue
if choice == 1:
shop.displaystock()
elif choice == 2:
customer.rentalTime = shop.rentCarOnHourlyBasis(customer.requestCar())
customer.rentalBasis = 1
elif choice == 3:
customer.rentalTime = shop.rentCarOnDailyBasis(customer.requestCar())
customer.rentalBasis = 2
elif choice == 4:
customer.rentalTime = shop.rentCarOnWeeklyBasis(customer.requestCar())
customer.rentalBasis = 3
elif choice == 5:
customer.bill = shop.returnCar(customer.returnCar())
customer.rentalBasis, customer.rentalTime, customer.Cars = 0, 0, 0
elif choice == 6:
break
else:
print("Invalid input. Please enter number between 1-6 ")
print("Thank you for using the Car rental system.")
if __name__ == "__main__":
main()
CarRental/test.py
import datetime
class CarRental:
def __init__(self, username, password, basket, stock=0):
self.username = username
self.password = password
self.basket = basket
self.stock = stock
def displaystock(self):
"""
Displays the cars currently available for rent in the shop.
"""
print("We have currently {} cars available to rent.".format(self.stock))
return self.stock
def rentCarnHourlyBasis(self, n):
"""
Rents a car on hourly basis to a customer.
"""
if n <= 0:
print("Number of cars should be positive!")
return None
elif n > self.stock:
print("Sorry! We have currently {} cars available to rent.".format(self.stock))
return None
else:
now = datetime.datetime.now()
print("You have rented a {} car(s) on hourly basis today at {} hours.".format(n, now.hour))
print("You will be charged $5 for each hour per car.")
print("We hope that you enjoy our service.")
self.stock -= n
return now
def rentCarOnDailyBasis(self, n):
"""
Rents a car on daily basis to a customer.
"""
if n <= 0:
print("Number of cars should be positive!")
return None
elif n > self.stock:
print("Sorry! We have currently {} cars available to rent.".format(self.stock))
return None
else:
now = datetime.datetime.now()
print("You have rented {} car(s) on daily basis today at {} hours.".format(n, now.hour))
print("You will be charged $20 for each day per car.")
print("We hope that you enjoy our service.")
self.stock -= n
return now
def rentCarOnWeeklyBasis(self, n):
"""
Rents a car on weekly basis to a customer.
"""
if n <= 0:
print("Number of cars should be positive!")
return None
elif n > self.stock:
print("Sorry! We have currently {} cars available to rent.".format(self.stock))
return None
else:
now = datetime.datetime.now()
print("You have rented {} car(s) on weekly basis today at {} hours.".format(n,...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here