FACULTY OF COMPUTER AND MATHEMATICAL SCIENCES CSC 248 – Object Oriented Programming
Group : JCS1105A
Title : ANA Travel Agency Booking System Group Members: Name SITI NUR ASYIQIN BINTI AZHAM NOORNADIA BINTI MOHD GHANI MUHAMAD ATIF BIN AZIZI
Matrix number 2014657254 2014269352 2014816642
Lecturer’s Name : Madam Mazlyda Binti Abd Rahman
Table of Contents
Num.
Details
Page Number
1
Introduction
3
2
Object Class
4
3
Objective
5
2
Introduction ANA Resort which is situated at Banting , Selangor is one of the best resort in Selangor. There’s nothing like being surrounded by tranquil turquoise spring water, enchanted by the view of the limestone hills, and being treated like a long lost friend. It is located 12 minutes away from Kuala Lumpur International Airport, and 45 minutes away from Kuala Lumpur, euphoria conveniently awaits. We provide many option to the customer whenever they want to stay at chalet, camp or Hammock. All of these are at the same price. Customer can bring friends, family or relatives as many as they want. Price per person is determined by package the customer choose to book. The bookings can be done on weekdays, weekend and peak season. Rates for the package are at the figure 1 below including discount received by payment method chosen. In order to manage booking system, this system is developed by us to help our staff to keep track of our sales and customer information. Staff will need to input customer data and the system system itself will able to generate report that are needs for ANA resort company such as, total payment, sorting, average sales and others.
Package Weekdays [A] Weekend [B] Peak Season [C]
Price/day(RM)
Payment Method Adults Children 22 17 Visa/Debit = Get 10% discount 25 22 Others = Retail price 28 25 Figure 1 show rates for adults and children according to package A,B and C
3
Object Class
public class Customer { private int cust_id, num_days. noOfAdult, noOfChild; private String cust_name; private char resortPackage ; // A - weekdays, B - weekend, C - Peak Season private String payment_method; //visa, credit card, others //normal constructor public Customer(int cust_id, String cust_name, char resortPackage, int num_days, int noOfAdult, int noOfChild, String payment_method) //accessor method public int getCustId() { ... } public String getCustName(){ ... } public int getNumDays(){ ... } public int getNumOfAdult(){ ... } public int getNumOfChild(){ ... } public char getResortPackage(){ ... } public String getPaymentMethod (){ ... }
//mutator method public void setCustomerId(){ ... } public void setCustomerName() { ... } public void setNumerDays (){ ... } public void setNumberAdult (){ ... } public void setNumberChild(){ ... } public void setResortPackage (){ ... } public void setPaymentMethod (){ ... } public String String info(){ … }
//toString method public String toString (){ ... } }
4
Objectives 1.
To insert customer details.
2.
To remove customer that make cancellation booking.
3.
To calculate total payment for each customer based on number adult and child.
4.
To find highest number of day booking of customer.
5.
To count number of booking for resort package.
6.
To search customer details by customer id.
7.
To sort customer in ascending order by insert data and arrange in descending order after the cancellation cancellati on booking.
8.
To calculate average sale per entry.
9. 10.
To calculate discount of their total payment by their payment method(visa, credit & others) To update customer details and display the updated list
5