资源描述:
《c语言代码-学生信息排序(c language code - student information sorting)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、c语言代码-学生信息排序(Clanguagecode-studentinformationsorting)DescriptionoftheproblemStudentinformationbystudentnumber,name,gender,languagescores,math,English,averagescoreandtotalscoreof.StudentID,namethelengthofnotmorethan20,thenumberofstudentsislessthan100.
2、Writeastudentinformationprocessingprogramrequiresthefollowingfunction1)studentinformationintothecommandformatisasfollows:INSERTIDNameSexS1S2S3Representstheinsertionofastudentinformation.Insertthestudentinformationdisplay,theformatisasfollows:IDNameSe
3、xChinesemathEnglishscoresaveragescoretotalscoreThereisaseparatespace,allthescoresof2decimalplaces.2)displayallthestudentinformation,thecommandformatisasfollows:LISTAccordingtothedisplayinformationofallstudentnumbersequence.Eachstudentinformationline,
4、theformatisasfollowsIDNameSexChinesemathEnglishscoresaveragescoretotalscoreThereisaseparatespace,allthescoresof2decimalplaces.3)exitprocedures,commandformatisasfollows:QUITOutput"Goodbye!"aftertheendoftheprogram.Writeaprogramtocompletethefunction.The
5、lastcommandinputisQUITThedesignofastructurethatthestudentinformation.Wedesigntwofunction,insertandoutputtodealwithstudentinformation.Designafunctionofallthestudentinformationsortedbystudentnumber.Andthendesignafunctionoftheoutputinformationforallstud
6、ents.Themainfunctionofthecallanddisplaystudentinformationintothefunctioninformationofallstudents.inputInputmultiplelines,eachlineofacommand,commandformat:INSERTIDNameSexS1S2S3Insertastudentinformationandstudentinformationdisplay.LISTAccordingtothedis
7、playinformationofallstudentnumbersequence.Eachstudentinformationline,QUITExittheprogramoutputTheoutputofmultiplelines,eachinputcommandhasacorrespondingoutputformatareasfollows:INSERTIDNameSexS1S2S3Insertthestudentinformationdisplay,theformatisasfollo
8、ws:IDNameSexChinesemathEnglishscoresaveragescoretotalscoreThereisaseparatespace,allthescoresof2decimalplaces.LISTAccordingtotheinformationofallthestudentslearntheorderfromsmalltolarge,eachstudentinformationline.Eachrowformatisasfollows:IDNameSexChine