问题描述
该项目将为您提供以下实践:
·结构
·字符串
·指针和内存分配
·链接列表
·文件I/O
规格
您需要编写C程序来管理许多课程的学生成绩.
每个学生都具有以下属性:
ID:字符串(最多9个字符)
名称:字符串(最多30个字符)
每个学生都有所有课程的成绩列表.成绩可能是"A","B","C","D"和"F".
您的程序应为每个学生实现两个链接列表(请参见下面的示例).
按代码分类的课程的链接列表"
…
头427400700 428340780 429800923 429904895
Mohamed Arifi Abdelaziz Dousari Fuhd Alzamil苏丹塔米米
CSC111 CSC111 CSC111 CSC111
A A D B
CSC114 CSC114 CSC114 CSC114
B C A A
…………
CSC320 CSC320 CSC320 CSC320
F B A F
您的程序应实现以下菜单:
1.添加学生
2.删除学生
3.展示学生
4.按课程和年级划分的学生人数
5.按年级对学生进行排序
6.主菜单
选项3和4将课程和学生存储在数据文件中.
2
This project will give you practice with:
· Structures
· Strings
· Pointers and memory allocation
· Linked list
· File I/O
Specification
You are required to write a C program to manage student grades for many courses.
Each student has the following properties:
ID: String (maximum 9 character)
Name: String (maximum 30 character)
For each student has a list of grades for all courses. A grade may be ‘A’, ‘B’, ‘C’, ‘D’ and ‘F’.
Your program should implement two linked lists for each students (see example below).
"Linked list of sorted courses by Code"
…
Head 427400700 428340780 429800923 429904895
Mohamed Arifi Abdelaziz Dousari Fuhd Alzamil Sultan Tamimi
CSC111 CSC111 CSC111 CSC111
A A D B
CSC114 CSC114 CSC114 CSC114
B C A A
… … … …
CSC320 CSC320 CSC320 CSC320
F B A F
Your program should implement the following menu:
1. Add student
2. Delete Students
3. Display students
4. Number of students by course and grade
5. Sort students by grades
6. Main menu
Options 3 and 4 store courses and students in a data files.
2
推荐答案
该项目将为您提供
这篇关于请尽快解决文件中的此问题,请>>的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!