Kingdom of Saudi Arabia Ministry of Higher Education King Abdul-Aziz University Faculty of computing and Information technology In Rabigh Summer Semester 1434/1435 Department of Information COIT415 Assignment Technology المملكة العربية السعودية وزارة التعليم العالي جامـــعة الملك عبد العزيز كلية الحاسبات وتقنية المعلومات برابغ قسم تقنية المعلومات Assignment Policy: 1. 2. 3. 4. 5. 6. 7. Late assignments will NOT be accepted. Cheating is forbidden in this course, and will be considered a zero mark. Students are encouraged to collaborate and work into group of two. Please clearly write your name, section number, and student number on the cover page. You should print the cover page with your sheet. Assignments should be stapled or placed in an unsealed envelope. This assignment will worth 20% of your final marks, so clearly answer it; (You should submit your assignment on Thursday, 10 Shawwal) Question 1: Consider the following problem definition of an “Orjwa restaurant”. Each waiter is assigned a group of tables, after taking orders for a table the waiters enter the orders (a list of dishes and drinks ordered by the diner or group of diners) into the system at the PC. The waiter usually knows of any dishes that are unavailable before taking an order but occasionally one of the specials will sell out. The system must confirm the availability of dishes. Should an item not be available the system must allow the waiter to change or even delete a customer’s order. Dishes to be prepared are sent to the kitchen, drinks orders to the drink section. Starters and main course orders are usually taken together. Drinks and desert orders may be taken separately. Kitchen staff sees the dish orders on their screen, prepare them in an appropriate sequence and confirm preparation to the system when complete, similarly with the drink section. When a waiter sees the completion indications on his terminal he collects the items and takes them to the table. The waiter can also check on the status of dish and drink orders. At the end of the meal the waiter will have the system print a bill, and he will enter the details of payment for it. The management can give discounts. The system keeps track of the numbers of customers served by each waiter and the amount of money taken by each waiter. The management can view these statistics. Answer the following questions: 1. Write down the functional and non- functional requirements. 2. We should be very careful when specifying non-functional requirements. Why? Question 2: Design class diagram • • • • • • • • A university offers degrees to students. The university consists of faculties each of which consists of one or more departments. A single department administers each degree. Each student is studying towards a single degree. Each degree requires one to 20 courses. A student enrolls in 1-5 courses (per term.) A course can be either graduate or undergraduate, but not both. Likewise, students are graduates or undergraduates but not both. Question 3: use case diagram Implement a simple movie ticket vending machine. The movie theater that will use the machine has only one movie and one show time each day. Every morning, the theater manager will turn on the ticket machine, and it will ask him for the name of the movie and the ticket price that day. It will also ask how many seats are in the theater (so it won't sell too many tickets). When a customer walks up to the ticket machine, he will see the name of the movie, the time, and the ticket price displayed. There is a slot to insert money, a keypad of buttons to enter a number into the "Number of Tickets" field, and a "Buy" button. Printed tickets come out of a slot at the bottom of the machine. Above the ticket slot is a message display (for error messages like "Please enter more money or request fewer tickets" or "SOLD OUT!"). An additional display shows the customer's balance inside the machine. Finally, there is a "Return Change" button so the customer can get his unspent money back. Who or what are the actors? What are the use cases? Draw the use case diagram. write scenario for two use cases. Question 4: State machine diagram In digital watch the current mode is Display mode. When you press on mode button once the watch changes to change hour. Every time you press the advance button the hour is incremented by unit. When you press the mode button again the watch changes to change minute. Every time you press on the advance button the minutes are incremented by a unit. When you press the mode button a third time the watch goes back to display mode. For the previous scenario draw state machine diagram Question 5: Activity diagram Activity is started by Commuter who needs to buy a ticket. Ticket vending machine will request trip information from Commuter. This information will include number and type of tickets, e.g. whether it is a monthly pass, one way or round ticket, route number, destination or zone number, etc. Based on the provided trip info ticket vending machine will calculate payment due and request payment options. Those options include payment by cash, or by credit or debit card. If Commuter selected payment by card, Bank will participate in the activity by authorizing the payment. After payment is complete, ticket is dispensed to the Commuter. Cash payment might result in some change due, so the change is dispensed to the Commuter in this case. Ticket vending machine will show some "Thank You" screen at the end of the activity. Draw activity diagram.
© Copyright 2026 Paperzz