Software Engineering Exercises 3 (Questions 5 and 6)

Software Engineering Exercises 3

5. Develop a real estate management system, which requires functions such as inquiry, sales, rental, and statistics. The system stores the location, name of the building, total number of floors of the building, number of floors, orientation, and specifications of the operating company's existing properties (one room). One living room, two bedrooms and one living room or three bedrooms and one living room), area, etc. Rooms can be sold or rented, with unit price per square meter and total price determined respectively. Customers can inquire about the above basic conditions of unsold or unrented rooms at any time. Real estate operators can check the capital recovery status of properties that have been sold or rented and the capital occupation status of properties that have not been sold or rented at any time. Try to write the data dictionary of the system and draw the data flow diagram and IPO diagram.
6. Develop a ticketing system for sleeper train tickets.
The train operation directory stores train numbers, originating stations, terminal stations, and passing stations. The station sends out several trains every day according to the operating catalog, and the departure time and terminal station of each train are different. Each train has a number of soft sleeper carriages and hard sleeper carriages. Soft sleepers are divided into upper berths and lower berths, while hard sleepers are divided into upper berths, middle berths and lower berths. The ticket prices are different. The format of the bunk number is "car number and bunk number", for example, upper bunk No. 5 in Car 8. Passengers can book sleeper tickets for trains within 5 days according to the train operation catalog. The data flow diagram of the examiner's department, the data flow diagram and the IPO diagram of Xichu

1. Data dictionary

Develop real estate management system

Specifications = [three bedrooms and one living room | two bedrooms and one living room | one bedroom and one living room]

Unit price = [monthly rent | price per square meter]

Room = room number + number of floors + orientation + specifications + area + unit price + total price + [rent | sale] + [already | not yet] + remarks

Real estate = {property location + {building name + total number of floors + {rooms}}}

Customer = {customer number + name + gender + address + phone number}

Customer demand = {customer number + date + {property number}}

Transaction status = {date + customer number + property number + amount + remarks + person handling the transaction}

Train sleeper ticket sales system

List type = [Express | Express | Express] + [Air conditioning | Non-air conditioning]

Stop = stop name + (arrival time, departure time)

Train number = train number + train type + (stop)

Train operation status={train number}

Soft sleeper = [upper bunk|lower bunk]

Hard sleeper = [upper berth | middle berth | lower berth]

Bunk type = [soft sleeper | hard sleeper]

Ticket number = carriage number + {berth number}

Ticket sales status=1{date+{train number+{ticket number+[sold|unsold]}}}

Fare = starting station + {destination station + {train type + {berth type + price + [full|half]}}}

Train ticket = date + train number + starting station + arrival station + train type + berth type + price + ticket number + [full|half]

2. Data flow diagram

Develop real estate management system

img

Train sleeper ticket sales system

img

  1. IPO chart

Develop real estate management system

img

Train sleeper ticket sales system

img

Train sleeper ticket sales system

Insert image description here

Guess you like

Origin blog.csdn.net/m0_63451989/article/details/131166704