- Jun 24, 2001
- 24,195
- 857
- 126
Long story short, she says when I display the whole number "3" as "3.00" in my program just to visually match other displayed values which are not whole numbers, that "3.00" is not an integer. If you know programming, an in-depth explanation of the situation and programming technique follows. This is necessary in case someone wants to support my technique in my case against the teacher. If you have a short answer for my short story, please skip what's below and reply. Otherwise, do what you will. Thnx!
Hmm. My Advanced VB teacher is a little anal about certain things. She demanded that output of certain statistics be integers because "You can't seat .3 people." I understood. In my application I used integer variables to create totals and averages from a sequential access file.
The output was:
Total Males: 3.00
Average Age: 34.33
Total Females: 3.00
Average Age: 30.67
Because the number of males and females in the file were all integers, I used integer variables for the calculations and outputted them as integers to label controls.
For the averages, I performed the calculation on intAgeTotal and intGenderTotal and outputted the decimal result directly to the label for accuracy. You may not say you are "Whatever point whatever years old" but that does not mean you can't have an average of ages formatted in decimal notation, but she insists that the average age should be 34. Just because you can't have 3.8 people at your house for poker every Wednesday night doesn't mean you can't average 3.8 people every Wednesday night, but I'll let her have this one.
However, I also lost additional points because of the integer calculations performed earlier, meaning it was not counted as the same error. To format the output to match margins with the non-integer output, I used to format function to add two decimal places to the total ages. The value is still an integer value. She apparantly thinks that 3.00 is not an integer, and seperately counted off for this "error."
Here's a shot of the formatted output
Did I really do something wrong when I formatted the label displays?
This may not seem like a big deal, but TRUST me: This teacher has been nitpicking and attacking me left and right. It's clear that she's trying to fail me, so every little bit of support helps. I just need a little more proof that she's pushing it to get this whole situation turned around. So far, the best student in the class has the worst grade and it's not the first time she's done this...
Thnx!
PS, here's her grading notes for my two exercises for that tutorial (lc1Done, lc2Done):
"lc1Done - The name of the application (as saved on disk) should not display in the title bar (-10)
Note: Neither should your name
lc2Done - 4 labels w/ Book Title cap. (-20)
App. name should not be in title bar
Note: Nor your name (-10)
Avg ages are not rounded -(10)
totals should be integers (-10)"
When I insisted that they were rounded to two decimal places, she said they were not rounded (Obviously, she meant round them to integers which was clear later)
Hmm. My Advanced VB teacher is a little anal about certain things. She demanded that output of certain statistics be integers because "You can't seat .3 people." I understood. In my application I used integer variables to create totals and averages from a sequential access file.
The output was:
Total Males: 3.00
Average Age: 34.33
Total Females: 3.00
Average Age: 30.67
Because the number of males and females in the file were all integers, I used integer variables for the calculations and outputted them as integers to label controls.
For the averages, I performed the calculation on intAgeTotal and intGenderTotal and outputted the decimal result directly to the label for accuracy. You may not say you are "Whatever point whatever years old" but that does not mean you can't have an average of ages formatted in decimal notation, but she insists that the average age should be 34. Just because you can't have 3.8 people at your house for poker every Wednesday night doesn't mean you can't average 3.8 people every Wednesday night, but I'll let her have this one.
However, I also lost additional points because of the integer calculations performed earlier, meaning it was not counted as the same error. To format the output to match margins with the non-integer output, I used to format function to add two decimal places to the total ages. The value is still an integer value. She apparantly thinks that 3.00 is not an integer, and seperately counted off for this "error."
Here's a shot of the formatted output
Did I really do something wrong when I formatted the label displays?

This may not seem like a big deal, but TRUST me: This teacher has been nitpicking and attacking me left and right. It's clear that she's trying to fail me, so every little bit of support helps. I just need a little more proof that she's pushing it to get this whole situation turned around. So far, the best student in the class has the worst grade and it's not the first time she's done this...
Thnx!
PS, here's her grading notes for my two exercises for that tutorial (lc1Done, lc2Done):
"lc1Done - The name of the application (as saved on disk) should not display in the title bar (-10)
Note: Neither should your name
lc2Done - 4 labels w/ Book Title cap. (-20)
App. name should not be in title bar
Note: Nor your name (-10)
Avg ages are not rounded -(10)
totals should be integers (-10)"
When I insisted that they were rounded to two decimal places, she said they were not rounded (Obviously, she meant round them to integers which was clear later)