<b>剑桥大学IT-JAVA编程期末考试题。---十分难得,有兴趣的讨论一下</b>

03-10-31 andylee
Java Programming.

Write a simple Java program. This program is to record marks for a maximum of 10 people. Your program is to prompt the user for a person’s name and the mark that they got. After this it should ask if the user wants to enter another mark and if they do ask for and store another. It should continue to do this till the user answers no to entering another mark.

Once this happens it should print out all the names and marks. It should also specify the min and max marks and who achieved them. It should also print out the average mark.

Finish in1 hour and half.

编辑一个简单的程序,本程序用于记录最多10个人的成绩。要求列出每个人的名子和成绩,之后系统提示是否继续纪录:Continue Yes/No. Yes:填写下一个人的名子和成绩, No: 列出已出入的全部名子和成绩。

当输入十人之后,程序结束,列出已出入十人的名子与成绩,最大值,最小值,平均值。

限时:90分钟

charlie
2003-10-31 13:07
> Java Programming.

>

> Write a simple Java program. This program is to

> record marks for a maximum of 10 people. Your program

> is to prompt the user for a person’s name and the

> mark that they got. After this it should ask if the

> user wants to enter another mark and if they do ask

> for and store another. It should continue to do this

> till the user answers no to entering another mark.

>

> Once this happens it should print out all the names

> and marks. It should also specify the min and max

> marks and who achieved them. It should also print out

> the average mark.

>

> Finish in1 hour and half.

>

> 编辑一个简单的程序,本程序用于记录最多10个人的成绩。要

> 罅谐雒扛鋈说拿雍统杉ǎ笙低程崾臼欠窦绦吐?Cont

> nue Yes/No. Yes:填写下一个人的名子和成绩, No:

> 列出已出入的全部名子和成绩。

>

> 当输入十人之后,程序结束,列出已出入十人的名子与成绩,

> 畲笾担钚≈担骄怠?>

> 限时:90分钟

翻译的意思好像不太对

After this it should ask if the

> user wants to enter another mark and if they do ask

> for and store another. It should continue to do this

> till the user answers no to entering another mark.

要求用户可以不停输入(可以大于10 个,但只保存最后的十条),结束是根据用户的输入结束。关键是队列的处理 ,可以用linklist处理,每次输入前判断队列大小,等于10 就移出最后一条,再插入,搞不懂干吗考90分钟

yuxing
2003-11-01 17:32
你先想想最大值,最小值和平均值怎么解决吧!

猜你喜欢