C ++,为来自工程学院的毕业生准备许可考试,使其成为注册工程师 [英] C++that prepares graduating students from faculty of engineering for a licensing exam to be registered engineers

查看:41
本文介绍了C ++,为来自工程学院的毕业生准备许可考试,使其成为注册工程师的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

We have following results of a course with exam:
75 of the students who completed this course took the exam. We want to know how well the students did in the examination and are given the scores of 75 students. We want to write a program that summarizes and analyzes the results the following way:
1.	Use random number generator Use 5 (Matric/Identification number of only five digits).
2.	Input each test result (i.e., raw marks). Display the prompting message "Enter result" each time the program requests another test result. a) You are to enter the raw score and categorize it as follows:
i. 90 and above is A
ii. 89-80 is B
iii. 79-70 is C
iv. 69- 60 is D
v. 59 and below is E
3.	Count the number of test results of each type.
4.	Further categorize the result into Pass or Fail (a P or an F)
i. All As, Bs, Cs and Ds are under the P category while E is under F category.
ii. Next to each matric/identification number is written a P if the student passed the exam or an F if the student failed.
5.	Display a summary of the test results indicating the number of students who passed and the number who failed.
6.	Program should restrict user from entering invalid marks (char, negative number, above 100 etc.)





我的尝试:



i需要一些严肃的帮助。你们可以帮助我吗?或者至少是一些线索



What I have tried:

i need some serious help..can u guys help me with that? or at least some clues

推荐答案

我们不做你的作业:这是有原因的。它就是为了让你思考你被告知的事情,并试着理解它。它也在那里,以便您的导师可以识别您身体虚弱的区域,并将更多的注意力集中在补救措施上。



亲自尝试,你可能会发现它不是和你想的一样困难!

问题的结构是引导你完成你需要做的事情:仔细阅读,然后开始做你知道的事情。完成后,其余部分应该开始落实到位。但是从问题中解决问题是练习的一部分,所以我们告诉你从长远来看一切都不会帮助你!



如果你遇到了具体问题,请询问,我们会尽力帮助。但是我们不会为你做这一切!
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, you may find it is not as difficult as you think!
The question is structured to lead you through what you need to do: so read it carefully, and start doing the bits you do know. When you have that done, the rest should start to fall into place. But working out what to do from the question is part of the exercise, so us telling you everything wouldn't help you in the long term!

If you meet a specific problem, then please ask about that and we will do our best to help. But we aren't going to do it all for you!


Quote:

1.随机使用数字生成器使用5(Matric /标识号只有五位数)。





i不能理解否。 1。

1.Use random number generator Use 5 (Matric/Identification number of only five digits).


i cant understand no. 1.



您应该使用数字生成器 [ ^ ]创建具有五位数的标识号。

例如,您可能会生成 10000..99999 范围内的数字。



[update]

现在修复。感谢格里夫。

[/ update]


You should use the number generator [^] to create identification numbers having exactly five digits.
You might, for instance, generate numbers in the range 10000..99999.

[update]
Fixed now. Thanks to Griff.
[/update]


这篇关于C ++,为来自工程学院的毕业生准备许可考试,使其成为注册工程师的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆