Hello,
I hope that is not your social security number as a username. If so, please have it changed. One thing I did wrong in college was let my number float out on checks, and well, that was just dumb!
Anyway, your program is going to need a few things:
1) functions to draw out the menus and deal with the input.
2) A storage unit (called a structure) to handle the student numbers and marks for both exams
struct studata
{
int student_number;
int test1_mark;
int test2_mark;
}
3) Need to error check your input fields. What if a user types in a letter, when there should have been a number? Something along the lines of 1 < X < 4 so that the program does not go nuts on bad data.
Break up the program, so that each "phase" is done in a function. Then, in your main() part of the program, setup a loop until the program is told to "exit".
Write this thing up. Do some psuedo code if you would like, and we would be happy to look at it from there. If you do post it, keep any personal information, such as your social or phone number, off of the text. We have seen a few people placing their social numbers on the website, and that is dangerous.
Christian
kc0arf
Posting Virtuoso
1,937 posts since Mar 2004
Reputation Points: 121
Solved Threads: 57
Don't bump a five month old thread!
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401