# Visual Basic (Logic and Design) - Geeks to Go Forums

## Visual Basic (Logic and Design) I need help with a few programs could some one point me in the right d

### #1Brian_Watson

• Group: Member
• Posts: 6
• Joined: 19-April 06

Posted 19 April 2006 - 05:50 PM

I have been asked to design a program, although I am having problems with certain inputs and the for loops commands. These are the instructions.

J. Lab Purpose (desired learning outcome):
1. Use WHILE loops
2. Use FOR loops
3. Calculate averages (drop lowest number)
4. Use Nested IF structure
5. Perform data validation one user input
6. Calculate totals

K. Narrative/Case Study: Lab Assignment 6

Professor Higgins has asked you to design the logic that will be used to calculate final averages and grades for his students. His grading algorithm is as follows:

Exam average  50%
Quiz average . 30%
Lab average ... 20%

Before calculating the quiz average, Professor Higgins drops the lowest quiz grade. When calculating the three individual averages, use FOR loops to help you. You will need to track the following information for the Final Output:
 Count the number of students input,
 each individual student average,
 a counter for each letter grade (accumulate the counter depending on the letter grade received).
Calculate the following for the Final Output:
 total class average (total of all individual student averages / number in class)
 percent of overall class for each letter grade (letter grade counter / number in class, etc)
After processing one student, ask the Professor if he wishes to process another student. If the response is positive (N or n), display the final output shown below.

Input:
From the instructor:
 Student name
 11 quiz grades
 2 exam grades
 4 lab grades
Make sure the prompts and console input are user-friendly. Do not allow the instructor to input any negative grades or grades over 100.

I understand how to input the students name but not how to make it loop until the user prompts that there are no more students to input. I think I should use a while loops but do not know how to implement it into the pseudocode. I also do not understand how to make the program drop the one quiz grade. I do not expect someone to do this for me, I only need some fresh ideas and pointers as to where I'm going wrong. Any help is greatly appreciated. Thank you for your time.

### #2Brian_Watson

• Group: Member
• Posts: 6
• Joined: 19-April 06

Posted 28 April 2006 - 03:17 PM

well, huge response.....nevermind then

### #3gust0208

• Group: Member
• Posts: 311
• Joined: 04-July 05

Posted 29 April 2006 - 05:36 PM

Sarcasm probably isn't the best tactic to remind us to take a look at this question. But, since the thread is back on top of the queue, do you still want any input on this problem?

Brian_Watson, on Apr 28 2006, 04:17 PM, said:

well, huge response.....nevermind then

### #4Brian_Watson

• Group: Member
• Posts: 6
• Joined: 19-April 06

Posted 29 April 2006 - 11:23 PM

No. Thank you. I have figured it out. I appreciate the response though. Thank you anyways.