当前位置:网站首页>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
边栏推荐
- 基于谱加权的波束方向图分析
- 第三章 数据类型(二)
- lingo12软件下载及lingo语言入门资源
- Salesmartly | add a new channel slack to help you close the customer relationship
- [vulnhub range] janchow: 1.0.1
- 5. golang generics and reflection
- Rewrite clear Bayesian formula with base ratio
- Adobe Premiere基础特效(卡点和转场)(四)
- Classic 6 pain points of data governance? This book teaches you to solve
- Low carbon data center construction ideas and future trends
猜你喜欢

单纯形法代码求解(含超详细代码注释和整个流程图)

Live broadcast preview | a new era of social interaction, exploring new social experiences in the universe

Leecode27977 double finger needling

C knowledge exercise

Use of uiautomator2 automated test tool

c指针(面试经典题目练习)

Adobe Premiere Foundation (animation production - Flexible animation) (VIII)

基于谱加权的波束方向图分析

mysql(17-触发器)

Data URL
随机推荐
Data URL
Request header field xxxx is not allowed by Access-Control-Allow-Headers in preflight response问题
Classic 6 pain points of data governance? This book teaches you to solve
MySQL (17 after class exercises)
Adobe Premiere foundation - tool use (selection tool, razor tool, and other common tools) (III)
c(指针-02)
Wireshark learning notes (II) detailed explanation of forensics analysis cases
Nodejs judge system type get host name execute console command Chinese garbled code
Db2 SQL PL的数组类型
Db2存储过程的屏幕输出,输出参数,返回结果集
Cross domain error: when allowcredentials is true, allowedorigins cannot contain the special value "*“
数据库防火墙的性能和高可用性分析
Adobe Premiere基础-素材嵌套(制作抖音结尾头像动画)(九)
SQL语句查看基本表结构和表中约束字段 、主码、外码 (简单有效)
Google Earth engine (GEE) -- Copernicus atmosphere monitoring (CAMs) global aerosol AOI near real-time observation data set
Analysis of Muduo source code -- an analysis of the rigor, efficiency and flexibility of Muduo library code design with three slices
【Vulnhub靶场】JANGOW: 1.0.1
C知识练习
北京地铁票务系统
Adobe Premiere基础-介绍,配置,快捷键,创建项目,创建序列(一)