Computer Science Canada finding highest and lowest marks out of the inputed marks |
| Author: | new [ Tue Dec 21, 2004 4:07 am ] |
| Post subject: | finding highest and lowest marks out of the inputed marks |
this programs gets imput (teacher name, sudent name and thier marks then save it, then finds highest and lowest) |
|
| Author: | Cervantes [ Tue Dec 21, 2004 7:30 am ] |
| Post subject: | |
Not bad, but you should do some error trapping to make sure the input (for the marks) is between 0 and 100. Also, there's really now need to make a procedure with no parameters called into and then call it immediately after making the procedure. If you want to title that group of code as the introduction, just use comments |
|
| Author: | Artimes [ Tue Dec 21, 2004 11:28 pm ] | ||
| Post subject: | |||
Pritty good, simple I may add though. You should've make it sorted itself, then shown them all.
|
|||
| Author: | Cervantes [ Wed Dec 22, 2004 8:16 am ] | ||
| Post subject: | |||
Artemis wrote: % The more parametres you have (i.e. name, mark, class) % You to repeat these three lines of code Not necessarily. You can use records:
|
|||
| Author: | Artimes [ Wed Dec 22, 2004 10:27 am ] |
| Post subject: | |
You learn somthing new every day |
|