Re: Loop help
- From: "Yuriy_Ivanov" <phantom_enigma@xxxxxxxxxxxxxxxxx>
- Date: Wed, 28 Dec 2005 11:23:13 -0500
>You need to define variables to hold your >counts of distinctions, merits
>etc. & for your total marks & number of loops, >and increment or add to
>them on each repetition of your main loop. >Programming won't help you
>until you've worked out the logic of what >you're trying to do.
I have defined variables shown below, I don't know how to get them to work
in a loop in that code, if it's a counting loop I need.
int mark1;
int mark2;
int mark3;
int score;
String grade;
int distinction;
int merit;
int pass;
int fail;
int meritTotal;
int passTotal;
int failTotal;
int examMark;
char Yes_No;
int total;
int highestMark;
If someone could give me an example of one I would appreciate it so I can
work the logic of the rest.
.
- References:
- Loop help
- From: Yuriy_Ivanov
- Re: Loop help
- From: Mark Thomas
- Loop help
- Prev by Date: Re: frustrating arithmetic
- Next by Date: Re: Suduko solver demo
- Previous by thread: Re: Loop help
- Next by thread: eclipse project duplication help
- Index(es):
Relevant Pages
|