当前位置:网站首页>Beijing Metro ticketing system

Beijing Metro ticketing system

2022-06-10 19:14:00 _ xwh

1. Demand analysis
1.1 Problem description
The subway has become the first choice for most people , Beijing subway has many operating lines , By 2019 year 12 month , The operating lines of Beijing rail transit network reach 23 strip 、 Total mileage 699.3 km 、 Station 405 seat .2019 year , The annual passenger volume of Beijing subway has reached 45.3 Million people , The average daily passenger flow is 1241.1 Thousands of people , The maximum daily passenger traffic volume is 1327.46 Thousands of people . Please design a subway fare information table generation software , When any starting station is entered , It can automatically calculate all other subway stations starting from this station ( Metro travel only ) Ticket price information table of .

1.2 Program implementation function
① Users can specify a site ( Input from the human-computer interface ), Generate the ticket price information table from this station as the starting station to other stations
② Users can specify ( Input from the interactive interface ) Starting station and terminal station , Get fare information .
③ When specifying the starting and ending stations , You can display the route 、 Ticket price and transfer station details , And show the route graphically on the map .

1.3 The program processes data
The basic information data of this course is named “BaseSubWayInfo.txt” A text file named “map.txt” Text file read in . stay BaseSubWayInfo.txt In the document , The data to be processed is the route name of the subway 、 Route number 、 Site name 、 The distance between stations, the name of transfer station and the route number where the transfer station is located . stay map.txt In the document , The data to be processed are the site name and the corresponding longitude and latitude coordinates .

1.4 Program development and running environment
Computer name : LAPTOP-VEPR7C1J
System model : VivoBook 15_ASUS Laptop X542UF
BIOS : X542UF.306 (type: UEFI)
processor : Intel Core i7-8550U CPU @ 1.80GHz (8 CPUs), ~2.0GHz
development language :C++(C++11 Above standard )
Development framework :QT
Integrated development environment :Qt Creator 4.11.0 (Community)
compiler :MinGW 64bit
operating system : Windows 10 Family Chinese 64-bit (10.0, Build 18363) (18362.19h1_release.190318-1202)

1.5 User interface design
① Display the function selection window of Beijing Metro fare selection system
② Graphically display the fare information table from the current station as the starting station to other stations
③ Show the route from the starting station to the terminal station 、 Ticket price and transfer station details
④ Graphically display the line from the starting point to the end point and the subway fare information

2. Functional structure design
 Insert picture description here

4. test
4.1 Program running result interface ( No input information )
4.1.1 Main menu interface of ticket query system
 Insert picture description here

4.1.2 The ticket query system queries the fare information interface from the current station to all stations
 Insert picture description here

4.1.3 The ticket query system queries the ticket price and route information interface at the starting and ending points
 Insert picture description here

4.2 Use cases for running programs correctly
BaseSubWayInfo.txt All the site names appearing in the document are all the correct input use cases .
The following is an example of a properly running use case for both interfaces :
 Insert picture description here
 Insert picture description here

4.3 Use cases where the program runs incorrectly
The input name is incomplete 、 Incorrect 、 When the input is null, it is the wrong test case .
4.3.1 The site name entered is incomplete :
 Insert picture description here

4.3.2 Entered a site name that does not exist :

 Insert picture description here

4.3.3 When querying the starting and ending route information , A query error occurs because the name of the starting point or the terminal is empty

 Insert picture description here

For code resources, see :https://download.csdn.net/download/qq_44174803/16080481

原网站

版权声明
本文为[_ xwh]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/161/202206101814526339.html