I'm confused about what you are actually trying to achieve.
If the goal is to experiment with cgi scripts, or to satisfy some computer class homework assignment, this approach is fine. However, I hardly think entering 6 partial scores into a web page is the practical way to maintain grades for a class.
A spreadsheet is the obvious solution to the problem: MS Excel, GNU Gnumeric, Open Office Calc, or some other equivalent. One row for each student, one column for each landmark / assignment / test. Enter data for a column as each assignment / test is graded, and a column at the right will calculate the current total.
On a school-wide basis it would make sense to have a database, in which case you might enter the scores for all the students on assignment X at one time. But after that, no need for the user to enter the marks, the program can look them up from the database.
As Occam said: Entia non sunt multiplicanda praeter necessitatem.
In reply to Re: grade calulator coding problem
by TomDLux
in thread grade calulator coding problem
by friar tux
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |