Posted by Brenda on Tuesday, August 17, 2010 at 6:10pm.
There are many programming languages. You're using Basic, which exists in many flavours. You may want to specify the name of the compiler (VB?) you're using.
1. An average is generally a floating point number, so it should not be defined as an integer.
2. Inputbox returns a string. You may want to convert it to an integer using CInt (or CDec)
3. There is no variable to accumulate the total marks.
4. Average is obtained by dividing the total by the number of marks (10).
5. next I is better than next by trying to avoid nesting errors.
6. There is no error trapping. For example, if the user types in an invalid number, there should be a check and have the user re-enter the value.
Related Questions
Computer Programming - Can anyone give me a site that contains a C source code. ...
Computer Information - A __________ provides the tools that a programmer uses to...
programming - An instructor wants to build a program to help him keep track of ...
mathematics (percentages) - math problem: pedro wants to calculate his gpa. he ...
Computer Programming - can anyone give me site about programming I need a sample...
programming in c++ - a program in c++ that accepts exam marks for 10 students ...
Computer - Assume that a computer is to decide whether a student passes or fails...
programming logic raptor - 1. a.input names of students from the user, ...
Math - Two students are talking after school: What is the average of your grades...
C++ - You are to use an array of doubles to compute the average of a sequence of...
For Further Reading