Lab Sheet 2

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

MARK:

SUBJECT: FORMAL METHOD CODE: BCS2213

TOPIC: Z Notation

ASSESSMENT: LAB SHEET NO: 01 TIME: 2 Hour

ID NO: __________________________ SECTION: ________________________

Pandora Hotel requires a system to record the customer check in date and check out date to
calculate the price for their stay at the hotel. Suggest a Z specification model of a software
system to record hotel customer check in and check out date system. The specification should
support these requirements:
1. The system able to register a new customer into the system.
2. The system able to check in a customer in the hotel.
3. The system able to check out customer from the hotel and display the number of
days the customer stays in using check in and check out date. Then display the
price by multiply the stay in days with 200.
4. The system able to query whether a particular customer is check-in or check-out
5. The system able to output the customer who are currently checked in.
6. Only registered customer can check in and out.

You must design the specification using Z. All operations should have appropriate pre and post
conditions. Your specification must consist of:
a) The required state schemas of the above system, all required definitions and initial
schema.
b) All required schemas to meet the system’s requirements.
c) Define all the free type definition used in the schemas
d) A simple comments for all the schemas

FSKKP/Zalili
Page 1 of 1

Fakulti Sistem Komputer & Kejuruteraan Perisian

You might also like