当前位置:网站首页>Assignment of C language programming practice

Assignment of C language programming practice

2022-06-09 01:37:00 _ Programming_

《C Language programming practice 》 Mission statement

《C Language programming practice 》 Mission statement
One 、 Principles for selecting topics for students
1. Students choose topics according to their own situation , Choose one of the training topics , Or in giving the possibility
Choose your own topic besides the one you can choose , But with the consent of the instructor , Finalize the title .
2. Each student chooses a comprehensive topic independently , Do it alone .
Two 、 Assessment method
First, check whether the completed program can run normally and get the desired results , After the procedure is checked and passed
Check the written 《C Language programming practice report 》, According to the quality of the report and the results of the inspection
Students' achievements in course design .
3、 ... and 、 Training topic
1、 Class grade management
Automation 12 There is 4 A class , Each shift is assumed to have 32 Famous students , This semester there are 6 Course examination ,
The grade of each course is a hundred mark system . It is now stipulated that each student's grade record contains the following data : Student number 、 full name
And the scores of each course 8 term , Where the student ID is a string , Every student has a unique student number .
Complete the following operation requirements :
⑴ Write a score generation function , Use the random number method , Using random function to generate students' courses
Cheng's achievements ( The grade of each course is 0∽100 Integer between ), Call this function to generate
The grades of all the students ( Because there are too many students , You do not need to enter grades );
⑵ Write an average score calculation function , Calculate the average grade of each student and save ;
⑶ Yes 4 The grade of each class is arranged in a descending manner from high to low according to the average grade of each student
order ;
⑷ To realize the search function of all or some subject scores of a certain student .
⑸ Realize statistical analysis function : Each grade segment is divided into classes and courses ( Make your own decisions in several paragraphs ) The statistics of ;
⑹ Realize the function of modifying students' scores .
2、 Student achievement management
Suppose that the student information to be managed by a school's performance management includes : class 、 Student number 、 full name 、 semester 、 Every door
The results of the course ( The number of courses per semester is different ) , Manage students' performance information .
The following functions are required :
Realization : Student information input ; modify ; Delete and query , By semester 、 Student number 、 Failed grades and other inquiries .
⑴ Enter the basic information of the student , Including student ID 、 full name 、 Basic information such as gender and achievements in various subjects .
⑵ Display all students' grades in each subject ;
⑶ Make a statistical analysis of the grades of each subject ( Total score 、 average 、 The highest 、 Lowest score 、 Pass rate, etc );
⑷ Count the number of students in each section and class information ;
⑸ Search and display a student's grades in each subject by student number or name ;
⑹ It is displayed in order of course grade or total score from high to low ;
⑺ Update a student's basic information or course grades ;
⑻ Design a menu , Have the operation requirements specified above 、 Exit the system and other basic functions .
3、 Employee integrated information management system
requirement : Design a program to manage the comprehensive data information of employees , With data input 、 lookup 、 Delete
And so on . Specific function details can be added according to your own understanding .
4、 Analog intelligent traffic signal system
Design an intelligent signal lamp system , Control the traffic signals in the four directions of East, West, north, South at the intersection , Certainly
The red light stops and the green light goes , Generally, the green light is on every time in four directions 30 second , Just after the green light goes out
bright 3 Second yellow light turns to red light . Now the system is required to be able to dynamically allocate according to the traffic flow from intersections in all directions
The signal light can be longer in the direction of more traffic 30 Second time , Therefore, traffic flow signals are set at each intersection
Statistical machine , It can dynamically send traffic flow information to the system .
5、ATM Teller machine simulation program
requirement : Design a program , When entering a given card number and password ( The initial card number and password are 123456)
when , The system can log in ATM Teller machine system , Users can follow the following rules :
Check the balance : The initial balance is 10000 element
ATM Withdraw money : The amount of each withdrawal is 100 Multiple , The total amount does not exceed 5000 element , Withdrawal amount is not allowed
overdraft .
ATM deposit : No negative deposits .
Change Password : The length of the new password is not less than 6 position , Not allowed 6 Bit exactly the same situation , Only the old secret
The code is correct , The new password meets the requirements , The password can be successfully modified only when the two inputs are the same .
6、 Calendar Notepad
requirement : Calendar with schedule reminder function .
display information : Users can query the date of the previous month , You can also query the date of the next month backwards .
Timed reminder : Users can add... For a certain day , Delete and edit the schedule reminder information of this day , When
When the system time coincides with the reminder time , Give a dialog box with prompt information .
Query information : Users can query all the prompt information of a certain month .
7、 Library information management system
requirement : Design a program to manage book information , Realize the input of book related information 、 lookup 、 Delete etc.
function . Specific function details can be added according to your own understanding .
8、 Implement a salary management system
The main function of the system is to calculate the salary of employees in the current month and to save files .
The employees of the company have 5 Types , They are technicians , Salesman , Secretary , Technology Manager , sales manager .
The salary varies from position to position , Technicians are paid by the hour , The remuneration is 40 element . The salary of the salesperson is
According to the sales commission , The monthly salary is... Of the total sales 5%. The secretary is 4000 Basic salary , The bonus depends on the current month
Depending on the working conditions . Technical manager and sales manager , Every month 5000 RMB fixed salary . Technical Manager
There are three grades in the work report , Each level has 1000 Yuan bonus , The sales manager manages the sales industry
Performance dependent , Of total menstrual volume 0.3%.
9、 Address book management
Establish a student address book management system , The managed data is determined by itself , Its main functions include : Can build 、
Modify, add and delete student address book , It can query in many ways .
10、 Simulated restaurant order system
Design a program to simulate a la carte system . The business process of the restaurant : The restaurant prepares its own signature dishes and some
A regular dish , There is a place of business , Service personnel, etc ; When the customer comes , The waiter will find one for the guest first
Sit down at the table , Then hand over the menu and wait for the customer to order , Customers can order a dish , You can also return the dishes , End
Check out and leave , This table can be used to entertain the next group of customers .

Source download

link :https://pan.baidu.com/s/1JJs9vbZahUCB6cQvXLgAVg?pwd=1111
Extraction code :1111

原网站

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