- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
实验九 综合练习
INTRODUCTION
For this assignment you are to write a program which creates and modifies a collection of data from input and produces appropriate output based on information obtained from the collection. The collection will be referred to as the graduand list.
The graduand list will contain information about students. Each student will have a two-word name (i.e. family name and given name), a unique student number (i.e. ID number) , and an associated GPA in the range 0.0 to 7.0. The information about the students must be read in a format specified below, and the output must also comply with the format requirements. Your program should be able to create a graduand list, add new students into the list, remove students from the list, and update or display the information in the list.
REQUIREMENTS
Data Representation
Each student’s name, ID number, and GPA must be stored in the same structure.
The students must be stored in an array. You will need to set a maximum number of entries in the array.
The students must be sorted in lexical order of student’s family name, with tie-break on given name, so that e.g. Jane Brown will be before John Brown, but after Tony Aho. The students who have the same surname and given name should be sorted by their ID number. For example,John Brown will be beforeJohn Brown, but afterJane Brown.
Operations
There are six operations to be performed in the assignment. The operations are numbered so that the input can specify which operation is to be performed using that number.
The first operation is the simplest:
0 : Finish execution.
The next four operations involve modifying the list:
1: Add a student to the list.
2: Remove (delete) all students who do not satisfy the condition to graduate from the list. While QUT’s exact rules are complicated, here we assume that a GPA = 4.0 is required.
3: Remove (delete) a student from the list.
4: Update or remove a student in the list. The ID number, name, and a
您可能关注的文档
- (课件) 康佳不用除霜不串味也不风干食物的冰箱 BCD-610WD6EGL 上市指引.pptx
- (课件) 康佳十字对开冰箱BCD-405D4GL上市指引.pptx
- (马克思主义基本原理概论教学资料)《共产党宣言》读书笔记.docx
- (马克思主义基本原理概论教学资料)《马克思主义基本原理概论》试卷xtsj01.doc
- (马克思主义基本原理概论教学资料)《马克思主义基本原理概论》试卷xtsj02.doc
- (马克思主义基本原理概论教学资料)《马克思主义基本原理概论》试卷xtsj03.doc
- (马克思主义基本原理概论教学资料)《马克思主义基本原理概论》试卷xtsj04.doc
- (马克思主义基本原理概论教学资料)《马克思主义基本原理概论》试卷xtsj05.doc
- (马克思主义基本原理概论教学资料)《马克思主义基本原理概论》试卷xtsj06.doc
- (马克思主义基本原理概论教学资料)《马克思主义基本原理概论》试卷xtsj07.doc
- 《LINUX操作系统教学课件》No.1概念特点来历应用安装.pptx
- 《LINUX操作系统教学课件》No.2安装Linux方法.ppt
- 《LINUX操作系统教学课件》No.3初次使用Linux.ppt
- 《LINUX操作系统教学课件》No.4使用Linux基本命令.ppt
- 《LINUX操作系统教学课件》No.5zhcon.ppt
- 《LINUX操作系统教学课件》No.6Vi.ppt
- 《LINUX操作系统教学课件》No.7shell.ppt
- 《LINUX操作系统教学课件》No.8常用网络命令.ppt
- 《LINUX操作系统教学课件》No.9文件系统管理.ppt
- 《LINUX操作系统教学课件》No.10用户管理.ppt
最近下载
- xsb-1显示仪表说明书.docx VIP
- 乡村振兴乡村旅游-浙江省乡村旅游设计方案.pdf VIP
- DELTA台达VFD-ME300精巧简易型向量控制变频器使用手册调试说明.pdf
- 眼附属器的解剖ppt参考课件.ppt
- 土壤及地下水采样实施实施方案gp.docx
- 小学科学新教科版三年级上册全册思维导图(共三个单元)(2025秋).doc VIP
- 1415地面流水地质作用.pptx VIP
- Unit1GrowingUpUnderstandingideasTheageofmajority课件高中英语选择性.pptx VIP
- 写文章的软件4篇.docx VIP
- GB 50026-2020 工程测量标准.docx
原创力文档


文档评论(0)