Student management system-train booking System C language course design

Source: Internet
Author: User

Profile:

C language Curriculum Design a---student management system

Make use of C language to implement student management system. The system realizes the management of students ' basic information and examination results. The terminal command interface is used as the input and output interface of the system. Use the file as the information storage medium.

Function Description:

Student Information:

Basic information:
Study number: int name: Char 128 Password: Char 32 age: int class: INT

Score Information: Math score: IntC language score: int language score: int: int

    1. 1, to achieve the basic information of student information input, which ranked according to the results of automatic calculation (add). The school number cannot be repeated.

    2. 2. Delete Student Information

    3. 3. Modify Student Information

    4. 4. Find Student Information

      A) Search by number
      b) Search by name
      c) According to the class group search, the students belong to this class all show

    5. 5. Display all student Information list
      A) display in the order of the school number
      b) Display by rank
      c) displayed according to the order of a subject (optional), and the average score of the section is shown at the end.

    6. 6, save the Student information modified information saved to the file. When the program starts, it reads information from the file into memory.

      The information is saved to inside only when you make the add delete modification. (Use a linked list or array in memory ...) Save).

      7. Exit System

A) If there is a modification operation to indicate whether to save.

Teacher Information:

Instructor Number: INT teacher name: Char 128 teacher Password: Char 32 class: INT

1, the teacher information to add, delete, modify, display, save. The teacher serial number cannot be duplicated. Login function:

1, the system started after the prompt login interface. Log in using your username and password. Both students and teachers can log in. 2, the user name and password correctly landed successfully. Display Welcome interface: "Welcome XX classmate (or teacher) to log in" Display Operation interface.
3, if enter the user name and password error continuation prompt, more than 3 times the program automatically exits. 4, in addition to teachers and students, the system has a special user Super Administrator user. User name Fixed (admin),

can also be fixed. 5, super Administrators, teachers and students have different operating interface.

Administrative privileges:

      Super Administrator: You can do all the work for teacher students.      teacher    : You can view your own information, and modify your own password.
             You can view the information of all students and revise the student's grade information.      students    : You can view your own information, and modify your own basic information.

Course Requirements:

  Complete in the following steps.      The first step: complete the Student Information Management Section.
      The second step: complete the teacher information management, and landing management.      Step Three: complete rights management.

C Language Programming II: Train booking system

I. Demand design: 1. The information involved in each line is: Start, end, station name, train, fare, time, seat number, the site (multiple). 2. As a schematic system, all data is saved to the file. After the program starts, the read from the file is loaded into memory. 3. The system can realize the functions and operations as follows: 1. Enquiry route: Enter the following information according to the terminal name proposed by the passenger: Train, station name.

2. Undertake the booking business: according to the request of the customer inquires the situation of the train ticket, if there is still more than the ticket, the customer for the booking formalities, the output seat number, if the full or ticket less than ticket, you need to re-check customer requirements, if necessary to register queued standby.

3. Handle the refund business: According to the situation provided by the customer (train, time, seat number) for the customer to refund procedures, and then inquire whether the train is queued for waiting, first ask the first row in the customer, if the return ticket can meet his requirements, then for his booking formalities, otherwise asked other queuing waiting for customers.

4 registered passengers: including name, gender, age, home address, contact information, etc. 5 statistical function: The booking of each car, the results of the refund statistics.

6 Management features: Train administrators can call the function to see the ticket and its user status. You can add and remove line information.

7. Query function: Users can inquire about the vehicle information they need. Two. Overall design

1. Overall Design Description:
1. Data structure Design: program = data structures + algorithm, a good program must have a good data structure. This design mainly consider the ticket information and the data structure of the user information. The ticket information uses a semi-cross linked list. Each node in the cross-linked list contains the following: Train, starting station, departure time, A pointer to the next node, pointing to the halfway point. Each node in the vertical list contains the following: From the start of the station, the fare, arrival time, whether it has been purchased logo, using Mark logo, when mark for the 1 o'clock ticket has been sold, when mark for 0 o'clock ticket has not been sold. And a pointer to the next node. The longitudinal list uses a circular chain list, The tail pointer points to the first pointer.

2. The non-purchase of the user information using the queue to save, because the user will be booking tickets, so that the user to book the time of day and night in the team. First come first buy, later buy. Each element in the queue contains the following: User name, SFZ number, the train to buy the ticket, the starting station, to the station, Time. The user information has been purchased using a single linked list to save, each node in the list contains the following: User name, SFZ number, purchased train, departure time, arrival time.

Ticket Information link list:
Train, starting station, terminal, departure time, arrival time, fare, seat number

Subscriber Information queue: User name

The station to arrive at the starting station of the purchase ticket to reach the time

Note: The seat number is included in the train number

Purchased User Information link list: User name

SFZ number of purchased tickets train number departure time arrival time

Note: The seat number is included in the train number 2, the interface design instructions

1, the program started running prompt: Please select User action: 1, Login 2, new user registration

2, after the user login interface: 1, the user basic information Maintenance 2, query operation

The sub-menu is as follows:
A, according to the train, check the train information. b, according to the train, date, check seat information. A, according to the departure, the terminal, the date to inquire seat information.

3, booking operation 4, refund Operation 5, cancellation

3. Admin user interface: 1, manage passenger user information

The sub-menu is as follows: A, passenger user inquiries

B, passenger user information list display C, passenger user increase D, passenger user Delete E, passenger user modification

2, manage the train information sub-menu as follows:

A, train query B, train list information display C, train increase D, trips delete E, train modification

3. Statistics

4. User Information Management

5. Logout

My github: [Email protected]:kevin-dfg/data-structures-and-algorithm-analysis-in-c.git

Student management system-train booking System C language course design

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.