Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i want class diagram with attributes , operations and relationships Overview You are required to design and implement a software system that handles the required

i want class diagram with attributes , operations and relationships
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Overview You are required to design and implement a software system that handles the required services and transactions relative to tourist agent for hotel booking. Such system is usually installed as an application on smart phones to provide more accessibility and convenience for users However, in this course we will implement the same system as C# console application to adopt object-oriented design. The proposed system involves: booking of hotels in advance, payment and canceling booking The system maintains a database for all involved entities (customers, hotels, and bookings). Hence, your system must include an I/O file for each entity, so we will have three files in total. These files must be permanent (remain after program halt) and accessed by users to achieve their desired functionalities and be updated continuously throughout the running time of the system. Every customer has the following information: name (unique), password, and credit. Whereas every hotel has the following information: name (unique), classification, location, daily cost for one room (breakfast), daily cost for one room (all meals), number of available rooms, discount and total hotel's income. For every booking the system records the following information: ID (unique), customer name, hotel name, status (completed or not completed), number of rooms (rooms that customer already booked), type of meals (B for breakfast /A for all meals), number of days and booking's cost. + As a prerequisite, your implementation program must initially load the database with a set of customers and hotels automatically at the beginning of execution just before doing anything else. The following data must be loaded as is upon running your program: CUSTOMERS name Ali sami Nuha Ola password 123 456 789 credit 5000 8000 2000 15000 246 Hotels name Total income discount classification location Daily cost/one room (B] breakfast Four stars Irbid 25 Five stars Amman 30 Five stars Irbid 32 Three stars Aqaba 10 Daily Number cost/ one of room IAL available all meals rooms 40 97 60 35 70 13 22 200 0 2500 8000 1200 1000 0.1 0.3 0 Dreams Moon VIP Down town Days Inn Rose Red Sea Ramada Five stars 30 75 140 18520 0.2 Four stars Five stars Five stars Wadi rum Petra Aqaba Aqaba 36 42 50 76 98 110 86 177 222 1560 9000 0.15 0.25 15000 0.3 Requirement Specification: The hotels in our system are divided into three classes (three stars, four stars, and five stars). The booking has two status values:" Completed" and "not Completed". [status of the booking will be set to the "not Completed" at the point of booking rooms in a hotel and before paying money, and the status will be set to completed once the customer pays the money] Booking cost calculations: Booking cost = (number of booked rooms) (number of days) * (Daily cost/one room) Final booking cost (if there is no discount) - Booking cost Final booking cost (if there is a discount) - Booking cost - (Booking cost *discount) The system has five users: four customers and one administrator. They all must log in using their cardinality (names and passwords]. The administrator logs in using the following credentials username: admin password: 111 The system is required to satisfy the main functional requirements for all users (customers and administrator). Our system has the following high-level use cases for the administrator 1. Add a Hotel to the system. 2. Add customer to the system 3. View all Hotels. 4. View all customers. 5. View all bookings. 6. View bookings that are related to a specific hotel 7. Update hotel information 8. Delete a hotel from the system. and the following high-level use cases for the customer 1. make a hotel booking 3. View my booking(s). 4. Cancel booking before paying money (not completed bookings). 5. Pay for a booking YOUR PROGRAM MUST show only the functions that related to the currently logged user, therefore, upon running your program, the system must show two login options (screens): one for Administrator and the other for customer, then based on the selected user type, system will display the options that are related to the logged- in user only THE OPTIONS MENU FOR BOTH CUSTOMER AND ADMINISTOR MUST PROVIDE LOGOUT OPTION TO RETURN TO THE LOGIN SCREEN TO ENABLE YOU TO LOG IN WITH DIFFERENT USER TYPE Use Cases: Use case 1: Add a hotel to the system The system asks the administrator to enter all information of the hotel to be added. The system adds the hotel to the system and updates the database accordingly. Use case 2: Add new customer to the system The system asks the administrator to enter all information of the customer to be added. The system adds the new customer to the system and updates the database accordingly. Use case 3: View all Hotels The system displays full information of all hotels saved in the database. Use case 4: View all customers The system displays full information of all customers saved in the database. Use case 5: View all bookings The system displays full information of all bookings (with all status values) that are saved in the database. [displays all bookings for all saved customers) Use case 6: View bookings that are related to a specific hotel. The system asks the administrator to enter the name of the hotel, then views all bookings for all customers that are related to that hotel. Use case 7: update hotel information number of available rooms, cost per day, discount] The system asks the administrator to enter the name of the hotel that he/she wants to update, then ask him/her to enter the new number of available rooms, new per-day cost [breakfast and all meals), and discount. The system updates the related hotel and save these changes in the database. Use case 8: Delete a hotel from the system. The system will delete any hotel from the system with total income

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

Database Design And Relational Theory Normal Forms And All That Jazz

Authors: Chris Date

1st Edition

1449328016, 978-1449328016

More Books

Students also viewed these Databases questions