当前位置:网站首页>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 
4. test
4.1 Program running result interface ( No input information )
4.1.1 Main menu interface of ticket query system 
4.1.2 The ticket query system queries the fare information interface from the current station to all stations 
4.1.3 The ticket query system queries the ticket price and route information interface at the starting and ending points 
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 :

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 :
4.3.2 Entered a site name that does not exist :

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

For code resources, see :https://download.csdn.net/download/qq_44174803/16080481
边栏推荐
- SQL function
- Adobe Premiere基础(动画制作)(七)
- 2022.05.28(LC_5_最长回文子串)
- 2022.05.24(LC_674_最长连续递增序列)
- AgI foundation, uncertain reasoning, subjective logic Ppt1
- 【杂谈】恭喜自己获得CSDN专家称号,努力终会换来结果
- Classic 6 pain points of data governance? This book teaches you to solve
- Adobe Premiere Foundation (animation production - Flexible animation) (VIII)
- 直播预告 | 社交新纪元,共探元宇宙社交新体验
- 5. golang generics and reflection
猜你喜欢

Adobe Premiere Basic - tool use (select tools, rasoir tools, and other Common Tools) (III)

How to set up salesmartly for Google Analytics tracking

Ruijie x32pro brush openwrt enable wireless 160MHz

Adobe Premiere foundation - Import and export, merge materials, source file compilation, offline (II)

2022.05.23(LC_300_最长递增子序列)

Adobe Premiere Foundation (track related) (V)
![[Agency] 10 minutes to master the essential difference between forward agency and reverse agency](/img/67/5f30f36aa60cf605cbc32399a9d9a0.png)
[Agency] 10 minutes to master the essential difference between forward agency and reverse agency

Data URL

2022.05.28(LC_5_最长回文子串)

MySQL (17 trigger)
随机推荐
Adobe Premiere foundation - tool use (selection tool, razor tool, and other common tools) (III)
2022.05.29(LC_6078_重排字符形成目标字符串)
[Code] neural symbol generation machine
调试的技巧
Db2 SQL PL简介
腾讯云数据库TDSQL-大咖论道 | 基础软件的过去、现在、未来
Rewrite clear Bayesian formula with base ratio
第三章 数据类型(二)
nodejs-基本架构分析-解析引擎目录-插件安装-核心模块
Enterprise data quality management: how to evaluate data quality?
多通道信号数据压缩存储
Analysis of optical storage direct flexible power distribution system
AEC: analysis of echo generation causes and echo cancellation principle
lingo12软件下载及lingo语言入门资源
Adobe Premiere基础-时间重映射(十)
【代理】10分钟掌握正向代理和反向代理的本质区别
Uncertainty reasoning: let the model know that it doesn't know
端午“沉浸式云旅游”怎么玩?即构助力“直播+”新场景落地
mysql(17-课后练习题)
C (pointer-02)