Click here to Skip to main content
15,884,986 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
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.)


What I have tried:

i need some serious help..can u guys help me with that? or at least some clues
Posted
Updated 2-Oct-16 23:20pm
Comments
Richard MacCutchan 3-Oct-16 4:58am    
some clues
1. Read your course notes.
2. Talk to your teacher.
enhzflep 3-Oct-16 8:26am    
I sure hope you aren't the same person that posted this: c++that prepares graduating students from faculty of engineering for a licensing exam to be registered Engineers

If not, then looks like you've both left the assignment till the day before it's due. At least you'll each have company in the same subject next time around, should you keep this kind of work ethic up!

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!
 
Share this answer
 
Comments
[no name] 3-Oct-16 4:48am    
can i have some clues how to do
OriginalGriff 3-Oct-16 5:01am    
Read the question!
It says "do this", then "do that". So start at the top, and work your way down...
You know how to do some of this already, because it's stuff you have used on previous exercises. All you have to do is think about what it asks you for, and review that in the light of what you have been taught so far.
[no name] 3-Oct-16 5:04am    
1.Use random number generator Use 5 (Matric/Identification number of only five digits).


i cant understand no. 1.
OriginalGriff 3-Oct-16 5:19am    
Then go to your tutor and tell him that. It may be that he has worded it badly and you need more clarification.
[no name] 3-Oct-16 5:21am    
cant u kindly tell me? if i can get ans tutor i wont post here.. he is nt that helpful
Quote:
1.Use random number generator Use 5 (Matric/Identification number of only five digits).


i cant understand no. 1.

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]
 
Share this answer
 
v2
Comments
[no name] 3-Oct-16 5:26am    
according to the ques in output have to put 5 digit ?
OriginalGriff 3-Oct-16 5:34am    
I think you are right - but your examples have six digits... :laugh:
CPallini 3-Oct-16 6:21am    
OOOOOOOOOOOOOOOOPS.... :-O
Thank you.
OriginalGriff 3-Oct-16 6:27am    
We've all done it!
[no name] 3-Oct-16 6:56am    
no one like to gv me help about this task? please can u tell me steps wht to do

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900