Frequently Asked Questions

This page will be updated as questions are raised.

Q) Will assignments be distributed in class?

A) No. All assignments will be available at the website and must be retrieved from there.

Q) What is the assignments submission policy?

A) All assignments must be submitted on or before the deadline. You are required to submit a hardcopy of your program, as well as a softcopy on diskette. All assignments must be typed and printed on 8.5" x 11" paper, and placed along with the diskette in a standard 8.5" x 11" (A4) envelop. On top of the envelope as well as on you hardcopy and the diskette, the following four piece of information must be written: 1) Your Name, 2) Your ID, 3) Your Comp 201 Section Number, and 4) The Assignment Number. Failing to follow these rules may result in rejecting your assignment.

All assignments must be placed at the course's mailbox at room EV_3-414, unless other instructions are given by your instructor.

 

Q) I ran into this problem;
dim value1 as integer
dim value 2, value3 as integer
dim result as integer

value1 = txtval1.text.
value2 =txtval2.text
value3 =txtval3.text
total= ( value1 / ( value2 + value3) )
txtres.text = total

using divide, (only) answers show up as decimal points
... val1 = 3, val2 = 2, val 3= 4 , division result = 0.5

A) You created a variable called result, but you assigned the division value to something else (called total). You should use Option Explicit as per last class discussion to avoid this kind of problems.
Although, val1, val2 & val3 are all integers, when you divide you may get a decimal value, so the variable that you create to hold the result should be created as single or as double and not as integer.