当前位置:网站首页>C language course design topic
C language course design topic
2022-07-01 13:46:00 【_ Programming_】
C Language course design topic
Preface
This experimental instruction is based on the completion of the prerequisite course 《 Programming basics (C)》 Based on the use of the curriculum design guide . Programming basics (C) Course design is one of the important practical links of computer technology , It is a comprehensive exercise after students finish the basic course of program design . Through curriculum design , Consolidate and deepen students' understanding of the basic ideas of programming , Guide students to master the basic process and technology of complex program design , utilize C Language for software design , Solve practical problems , And master the basic method of writing program design instruction documents .
The design topics selected in this book have different application types for students to choose . The complete solution to some of the problems is not covered in the prerequisite course , Need students to consult 、 Only after self-study of relevant reference books and materials can we complete , It is helpful to improve students' ability of consulting materials and self-study .
This book is intended for non computer major undergraduates , The course design time is 2 Zhou .
The design environment is the school computer center , One question for each person , One computer per person .
Software environment requirements :windows operating system ,C Language development tool software ( It is recommended to use C Free, dev-c,visual studio).
Catalog
Chapter one Programming language (C) Course design description - 3 -
Second articles Course design topic - 5 -
Topic 1 Grade book - 5 -
Topic two Guess the number game - 6 -
Topic three Mathematical oral arithmetic competition system - 7 -
Topic four Small commodity management system - 8 -
Third articles reference - 9 -
Chapter one Programming language (C) Course design description
One . The purpose of the course design is
This course design is one of the important practical links of computer technology , It's after the students finish their study 《 Programming basics (C)》 A comprehensive exercise after the course . The purpose and task of this course design :
- Consolidate and deepen students' understanding of the basic ideas of programming ;
- Master the basic process and technology of complex program design ;
- utilize C Language for software design , Solve practical problems ;
- Master the ability to write program design instructions
Two . Curriculum design requirements - Analyze the requirements of the course design topic ;
- Write a detailed design description ;
- Write program code , Debug the program to make it work correctly ;
- The designed software shall be easy to operate and use , There is tidiness 、 Beautiful interface ;
- Submit the course design report after the design is completed ( The electronic , The cover and assignment need to be printed ) And source code files .
3、 ... and . Content of course design - Choose one of the course design topics provided in the guide , Each person completes independently , The selected topic cannot be changed ;
- The main operation interface provided by the user shall be in the form of menu .
- The final submitted course design results include :
a) A printed copy of the cover and assignment ;
b) Electronic version of course design report ;
c) Source program files ;
Four . Contents of the course design report : - Course design title 、 Class number 、 Student number 、 Student name and course design start and end date ;
- Purpose and requirements of course design ;
- Course design task content ;
- Detailed design description ;
5. Software instructions ; - Experience of course design ;
- appendix :1 reference 2 Program listing .
5、 ... and . Standard for evaluation :
Students' Course Design scores are mainly from the design link ( workload 、 Design ability ) 、 Oral defense ( Operation demo 、 Design explanation 、 Question answering )、 Reporting link ( Curriculum design report , Documentation for each phase )、 Performance evaluation at ordinary times .
1、 Design link 40%:
1) Check the workload of students to complete the design , From the difficulty 、 Inspection of completion status, etc ( Occupy 20%);
2) Check whether there is independent analysis 、 Ability to solve problems , It mainly examines the completion of tasks within the specified time , How about the quality of completion , How to realize the function , How about the interface effect ( Occupy 20%);
2、 Reporting link 20%:
Curriculum design report : Whether to write the curriculum design report carefully , Whether the content is objective and realistic (20%);
3、 Oral defense 20%:
1) Operation demonstration and design explanation : It mainly tests students' operation ability 、 Proficiency, etc ( Occupy 10%);
2) Question answering : Whether they can correctly answer the questions raised by the instructor ( Occupy 10%);
4、 Usual performance 20%
1) Attendance (10%)
2) Class status (10%)
6、 ... and . Schedule :
First of all ~ Two days Choose a course design topic , Requirements of the analysis subject , Prepare detailed design description ;
On the third day Access to information
Fourth ~ Six days Programming ; Programming and debugging ;
The seventh ~ Eight days The test program ; Perfect the system function ;
Ninth days Write a course design report
Tenth days interview , Submit the course design report .
Second articles Course design topic
Topic 1 Grade book
The design requirements
Make a record book , Each student information includes : Student number 、 full name 、 Course number 、 Course name 、 achievement 、 credits . Save information as a file , To enter information 、 Read out and display information 、 Delete the information , Query information and other functions .Basic function
1) Record the following data in the score book : Student number 、 full name 、 Course number 、 Course name 、 achievement 、 credits , All grades are scored on a 100 point scale .
2) Check the student number when entering information 、 Course number 、 achievement 、 The legitimacy of credits .
Student number :8 Digit number ; Course number :5 Digit number ; achievement :0 ~ 100 Integer between , credits :1~ 5 The real number between .
3) Add grades
4) Delete grades
5) Query personal scores 、 Individual total credits .
6) Take the course number as the key word , Statistics of courses , Include :
Count the total number of people in each score segment , Proportion of people . The score section is divided into excellent (>=90), good (80-89), qualified (60-79), unqualified (<60).
Count the average score of a course , The highest , Failure rate, etc
7) Information is stored as a file .
- Expand functions :
Display by keyword 、 Other user-defined extended functions such as permission verification for modifying grades .
Source download
link :https://pan.baidu.com/s/1JJs9vbZahUCB6cQvXLgAVg?pwd=1111
Extraction code :1111
Topic two Guess the number game
The design requirements :
The game can be randomly generated by a program N Digit number , Input by a user N Digit number , As a number to be guessed ( The numbers don't repeat ). After the player begins to guess , There can be M Enter a number to match the number to be guessed above at one time . Every time the user enters , The system gives the guess result :A Indicates that the position is correct and the number is correct ,B Indicates that the number is correct and the position is incorrect . such as :2A1B, Express 2 The bit position is correct and the number is correct ,1 The digit number is correct but the position is incorrect .
After a guess , Game over . if M I'll run out of opportunities , The game is over . The menu format is shown in the figure .Basic function
1) Generate data to be guessed , Random generation , Or entered by the user . Need to judge legitimacy :N Digit numbers do not appear repeatedly .
2) Provide the most M One chance to guess , Each feedback guess result . The guess ends immediately after success and returns to the main menu .
3) Enter the user name before the game starts , First use for user registration . Whether the game is successful or not can return to the main menu .
4) View results : View the historical guess results of a user , Minimum number of guesses , The success rate ;
5) Parameters M,N You can set it up freelyExpand functions :
Record the guess results of different game users , Set guess leaderboard , Set game difficulty and other custom expansion functions .The test sample
Data to be guessed : 3792
First guess : 1234
result : 0A2B
Second guess : 5678
result : 0A1B
Third guess : 3967
result : 1A2B
Fourth input : 3792
result : 4A0B
Game success !!!
Source download
link :https://pan.baidu.com/s/1JJs9vbZahUCB6cQvXLgAVg?pwd=1111
Extraction code :1111
Topic three Mathematical oral arithmetic competition system
The design requirements :
The system is applicable to the primary school students' mathematical oral arithmetic competition . There are two types of competition questions :“ Four simple operations ” and “ Four mixed operations ”, The computer makes random questions , The contestant timed his answer .
When you are asked to enter each type of competition , The computer prompts , The scores of each person are updated at any time . The menu format is shown in the figure .Basic function
1) Before the game , You need to enter the name of the competitor . New users can be registered after initial use : user name , grade , Schools and so on .
2) After the start of the game , The bottom is divided into 100 branch . There are two types of competition questions :“ Four simple operations ”(N Problem ) and “ Four mixed operations ”(M Problem ),N、M You can set it up freely , The computer makes random questions , First out “ Four simple operations ” topic , Every time you go out , Contestants rush to answer , Do the right thing and add 5 branch , Make a mistake and subtract 5 branch . Later “ Four mixed operations ”, Do the right thing and add 10 branch , Make a mistake and subtract 10 branch . When you are asked to enter each type of competition , The computer prompts , The scores of each person are updated at any time .
3) Finish all the questions , Show total score .
4) You can view the competition , Including scores , The answers to each question, etc .
5) View results : View personal history game results , The highest ;
6) In a single game , Take the school as a unit , View the school's total score , ranking .
7) According to the grade of the contestant , Set different difficulty levels , Make a question selectively .Expand functions :
1) Set the answer time for each question , Overtime shall be treated as error .
2) Add timing function , Show the time taken to answer the question , The same score will be ranked according to the shorter time .
Source download
link :https://pan.baidu.com/s/1JJs9vbZahUCB6cQvXLgAVg?pwd=1111
Extraction code :1111
Topic four Small commodity management system
The design requirements :
Store the commodity information in the form of file in the computer , Use the program to find commodities 、 Addition 、 Delete 、 Modification and maintenance work .
Manage the permissions of different users .Basic function
1) Before using the system , Log in first .
Users are divided into 2 class :a. Administrators ( You can use all permissions , You can create ordinary users , And assign permissions to ordinary users ).b. Ordinary users ( Before use , The administrator is required to register the user information , And open corresponding permissions )
2) User management . Only administrators can use this function . Include :
Open a new user , Delete user , User permission Settings .
User rights include :a. You can only query 、 Browse product information ; b. You can edit product information ( increase 、 modify 、 Delete )
3) Commodity information management . increase 、 modify 、 Delete product information .
Each product information shall at least include : Product id 、 name 、 Various price elements ( Purchase price 、 The sale price 、 discount price )
4) Commodity information query . According to different keywords , Query and display product information .Expand functions :
1) The items are displayed by some sort of keyword
2) Increase inventory of goods 、 Monthly sales volume and other information for the first half of the year , Value of existing goods 、 Statistical analysis of sales and other information
3) Other custom extension functions .
Source download
link :https://pan.baidu.com/s/1JJs9vbZahUCB6cQvXLgAVg?pwd=1111
Extraction code :1111
Third articles reference
- Lihongyu et al ,C Programming tutorial (5 edition )( Selected textbooks for computer basic education in Colleges and universities ), tsinghua university press ,2018
- By Tan Haoqiang ,《C Programming 》(5 edition ), tsinghua university press ,2019
- Stephen · Prada ,C Primer Plus The first 6 edition Chinese version , People's post and Telecommunications Press ,2019
边栏推荐
- 孔松(信通院)-数字化时代云安全能力建设及趋势
- 【剑指Offer】54. 二叉搜索树的第k大节点
- 8 popular recommended style layout
- 微机原理与接口技术知识点整理复习–纯手打
- Build a vc2010 development environment and create a tutorial of "realizing Tetris game in C language"
- JVM有哪些类加载机制?
- 【241. 为运算表达式设计优先级】
- leetcode 322. Coin Change 零钱兑换(中等)
- 面试题目总结(1) https中间人攻击,ConcurrentHashMap的原理 ,serialVersionUID常量,redis单线程,
- [241. Design priority for operation expression]
猜你喜欢

Application of 5g industrial gateway in scientific and technological overload control; off-site joint law enforcement for over limit, overweight and overspeed

Fiori 应用通过 Adaptation Project 的增强方式分享
![[241. Design priority for operation expression]](/img/72/29d27204d5213a8efdb2c5be925dec.png)
[241. Design priority for operation expression]

清华章毓晋老师新书:2D视觉系统和图像技术(文末送5本)

龙蜥社区开源 coolbpf,BPF 程序开发效率提升百倍

A new book by teacher Zhang Yujin of Tsinghua University: 2D vision system and image technology (five copies will be sent at the end of the article)

学会使用LiveData和ViewModel,我相信会让你在写业务时变得轻松

Station B was scolded on the hot search..

孔松(信通院)-数字化时代云安全能力建设及趋势

AnimeSR:可学习的降质算子与新的真实世界动漫VSR数据集
随机推荐
Analysis report on production and marketing demand and investment forecast of global and Chinese diamond powder industry Ⓤ 2022 ~ 2027
Analysis report on the development trend and Prospect of new ceramic materials in the world and China Ⓐ 2022 ~ 2027
详细讲解面试的 IO多路复用,select,poll,epoll
Understand the window query function of tdengine in one article
清华章毓晋老师新书:2D视觉系统和图像技术(文末送5本)
8 popular recommended style layout
Fiori applications are shared through the enhancement of adaptation project
关于佛萨奇2.0“Meta Force原力元宇宙系统开发逻辑方案(详情)
一文读懂TDengine的窗口查询功能
焱融看 | 混合云时代下,如何制定多云策略
6年技术迭代,阿里全球化出海&合规的挑战和探索
6. Wiper part
Yarn restart applications record recovery
Global and Chinese polypropylene industry prospect analysis and market demand forecast report Ⓝ 2022 ~ 2027
MySQL 66 questions, 20000 words + 50 pictures in detail! Necessary for review
2022年PMP项目管理考试敏捷知识点(6)
开源实习经验分享:openEuler软件包加固测试
【Flask】Flask启程与实现一个基于Flask的最小应用程序
ArrayList扩容机制以及线程安全性
QT学习管理系统