please help me to solve the questionProcessing Student Data Base File.Assume that there is a ‘Students.data’ text file that contains 20 students’ records.Each record is a line with the following structure:Student last name,blankStudent first na

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/27 23:50:50
please help me to solve the questionProcessing Student Data Base File.Assume that there is a ‘Students.data’ text file that contains 20 students’ records.Each record is a line with the following structure:Student last name,blankStudent first na

please help me to solve the questionProcessing Student Data Base File.Assume that there is a ‘Students.data’ text file that contains 20 students’ records.Each record is a line with the following structure:Student last name,blankStudent first na
please help me to solve the question
Processing Student Data Base File.
Assume that there is a ‘Students.data’ text file that contains 20 students’ records.Each record is a line with the following structure:
Student last name,blank
Student first name,blank
Year of birth,blank
Home form,blank
Math,blank
Set of marks with a blank after each of it
English,blank
Set of marks with a blank after each of it
Science,blank
Set of marks with a blank after each of it
End of line character
You have to write a program that reads information from the file into two-dimensional String array.Each row of the array contains information about one student.Keep in mind that,since the number of marks for each student is different,different rows might have different number of columns.
Once student array is created,the program should provide the following menu:
1.Find a Student ß displays a student record requested by a user.
2.Display All Recordsß displays in user friendly format information about all students.
3.Home Form ß displays a student list (names only) of a home form requested by a user.
4.Highest Averageß searches for student/students with the highest average mark.Displays their names and average marks.
5.Lowest Averageß searches for student/students with the lowest average mark.Displays their names and average marks.
6.Failing Mathß displays the list of student names who are failing Math with their average Math marks.
7.Failing Englishß displays the list of student names who are failing English with their average English marks.
8.Failing Scienceß displays the list of student names who are failing Science with their average Science marks.
9.Failing Two Subjectsß displays the list of student names who are failing two subjects,subjects’ names,and students’ average marks.
10.Failing Three Subjectsß displays the list of student names who are failing three subjects,subjects’ names,and students’ average marks.
11.Exit.
If a user selects ‘Find a Student’ menu option,the program displays a student record; calculates and provides additional information:total average of all student’s marks,average mark for each subject.
After processing any user request,the program should go to the main menu.
This is your chance to show your skills in breaking down large program into small logically completed methods.If you succeed in this job,you will be able to reuse methods many times,making your program shorter and more manageable.

please help me to solve the questionProcessing Student Data Base File.Assume that there is a ‘Students.data’ text file that contains 20 students’ records.Each record is a line with the following structure:Student last name,blankStudent first na
加工学生数据库文件.
假设有一个' students.data '文本文件,其中载有20名学生的纪录.每个记录是一个符合结构如下:
学生姓,空白
学生名字 空白
出生年月,空白
家乡,空白
表格,空白
数学 空白的痕迹,与空白后的每个
英语,空白的痕迹,与空白后,每年的资讯
科技,空白的痕迹,与空白后,各该行结束字符
你必须写 程序,它可以读取资料,从档案成二维字符串数组.每排的阵列包含有关一位学生.记住,由于所涉及的商标为每个学生的情况不同,各行可能有不同数目的栏目.
一旦学生阵列制造,计划应提供以下菜单:
1 .找一名学生ß展示学生记录请求了用户.
2 .显示所有recordsß显示器在用户友好格式了解全体学生.
3 .主页ß形式展示了学生名单(地名)的家中请了用户.
4 .最高averageß搜查学生/学生提供最高的平均分数.展示自己的姓名及平均分数.
5 .最低averageß搜查学生/学生的最低平均分数.展示自己的姓名及平均分数.
6 .否则mathß显示器名单学生姓名人士未有数学与他们的数学平均分数.
7 .否则englishß显示器名单,学生的名字被拖欠的英语与他们的平均英文商标.
8 .否则scienceß显示器名单学生姓名人士未有科学与她们的平均科学分数.
9 .否则两个subjectsß显示器名单,学生的名字被拖欠两个科目,科目的名称,以及学生的平均分.
10 .否则三个subjectsß显示器名单学生姓名人士未有三个科目,科目的名称,以及学生的平均分.
11 .退出.
如果用户选择'找一个学生'菜单,程序显示一个学生记录; 计算,并提供额外资料:总平均所有学生的分数,平均分数为每一科目.
加工后的任何用户的要求,计画要到主菜单.
这是你的机会显示你的技能在打破大型程序变为小逻辑方法完成.如果你成功地进行这一工作,你就能重用方法很多倍,让你的程序更短,更便于管理.

处理学生数据库文件。
承担有‘ Students.data'包含 20位学生的记录文字档。 每笔记录是有下列各项结构的一条线:
学生姓, 留空白
学生名, 留空白
年的出生, 留空白
回家形式, 留空白
数学, 留空白
在它每一个之后和空格的标志设定
英国人, 留空白
在它每一个之后和空格的标志设定
科学, 留空白...

全部展开

处理学生数据库文件。
承担有‘ Students.data'包含 20位学生的记录文字档。 每笔记录是有下列各项结构的一条线:
学生姓, 留空白
学生名, 留空白
年的出生, 留空白
回家形式, 留空白
数学, 留空白
在它每一个之后和空格的标志设定
英国人, 留空白
在它每一个之后和空格的标志设定
科学, 留空白
在它每一个之后和空格的标志设定
线个性的结束
你必须写一个读数据的计画从文件到二-空间的线排列。 排列的每排包含关于一位学生的资讯。 记住, 自标志的数字以后因为每位学生是不同的, 不同的排可能有专栏的不同数字。
一经学生排列被产生,计画应该提供下列各项菜单:
1. 找一位学生 ? 显示一笔被一个使用者请求的学生记录。
2. 展览全部记录? 简易使用的格式关于的资讯所有的学生展览。
3.家形成 ? 显示被一个使用者请求的家形式的一本学生目录 (只有名字) 。
4.高度地平均? 对有最高的平均标志的学生/ 学生的搜寻。 显示他们的名字和平均标志。
5. 最低的平均? 对有最低的平均标志的学生/ 学生的搜寻。 显示他们的名字和平均标志。
6.失败数学? 显示学生正在用他们的平均数学标志失败数学的名字目录。
7. 失败英国人? 显示学生正在以他们的平均英文的标志抛弃英国人的名字目录。
8.失败科学? 显示学生正在用他们的平均科学标志失败科学的名字目录。
9.失败二个主题? 显示学生正在失败二个主题,主题的名字和学生的平均标志的名字目录。
10.失败三个主题? 显示学生正在失败三个主题,主题的名字和学生的平均标志的名字目录。
11. 退出。
如果一个使用者选择‘找一位学生'菜单选项,计画显示一笔学生记录;计算而且提供附加的数据: 所有的学生标志的总平均,为每个主题平均标志。
在处理任何的使用者请求之后,计画应该去主要的菜单。
这是在打破较下大的计画方面你的技术你机会进入小的之内合乎逻辑地完成了方法。 如果你在这一个工作中成功, 你将会能够许多次重复使用方法,使你的计画更短和更易办。

收起

你真是伟大!