Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works

Visual Basic (Logic and Design)

#1 Brian_Watson Posted 19 April 2006 - 05:50 PM

Brian_Watson

New Member

• Member
• 6 posts
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,
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
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.
• 0

#2 Brian_Watson Posted 28 April 2006 - 03:17 PM

Brian_Watson

New Member

• Topic Starter
• Member
• 6 posts
well, huge response.....nevermind then
• 0

#3 gust0208 Posted 29 April 2006 - 05:36 PM

gust0208

Member

• Member
• 311 posts
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?

well, huge response.....nevermind then

• 0

#4 Brian_Watson Posted 29 April 2006 - 11:23 PM

Brian_Watson

New Member

• Topic Starter
• Member
• 6 posts
No. Thank you. I have figured it out. I appreciate the response though. Thank you anyways.
• 0

Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users