i have already read the (read me before posting),and have come to ask an assignment which was given to me yesterday.so, i really need your help on getting the answer to a question that says WRITE A C++ PROGRAM THAT CALCULATES THE GRADE OF A STUDENT AFTER ASKING THE GIVEN QUESTION WITH REGARD TO TIME.
THE PROGRAM MUST DO THE FOLLOWING:
1)IT MUST GIVE A QUESTION FIRST
2)IT MUST RECIEVE AN ANSWER FROM THE STUDENT WITH A TIME RANGE OF 30 SECONDS AND SAY YES IF THE ANSWER IS CORRECT WITH THE GIVEN TIME RANGE OR NO IF THE ANSWER IS FALSE WITH THE GIVEN TIME RANGE.
3)IT SHOULDNT ACCEPT THE ANSWER IF IT HAS BEEN ANSWERED AFTER 30 SECONDS,IT SHOULD RATHER SAY TIMES UP!
4)THE PROGRAM MUST FINALLY OUT PUT THE RESULT OF THE STUDENT AFTER COMPLETING 10 QUESTIONS AND GIVE A GRADE TO THE STUDENT.
THATS ALL, THANKS FOR HELPING TRY TO MAKE IT UP TO ME BY TOMORROW PLEASE.
adonay alex
-3
Newbie Poster
Ezzaral
commented:
Um, no. Thanks for playing.
-2
jonsca
commented:
Clue?
-1
arkoenig
commented:
You may claim that you read "Read this before posting" but apparently you didn't get the part about not asking people to do your homework for you, or the part about using code tags.
+0
Recommended Answers
Jump to PostWe are not here to write your program for you, but we will help you if you show some effort, such as post the code you have already written.
Jump to PostFirst void main is not standard. main should only return an int as per the ISO standard. Secondly all of your header files are deprecated. What compiler are you using? You might also want to change where you compare the user answer to the answer in the file. I would …
All 5 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
s_sridhar
7
Junior Poster
adonay alex
-3
Newbie Poster
adonay alex
-3
Newbie Poster
NathanOliver
429
Veteran Poster
Featured Poster
jonsca
commented:
Yup
+4
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.