Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Find the maximum of a group of values.

Status
Not open for further replies.

kh1103

Technical User
Aug 22, 2010
1
US
I am very new to vb2008 and trying to solve a problem. Please show me what I am to do.
The problem is as follows:

The process of finding the largest value is used frequently in computer applications. For example, a program that determines the winner of a sales contest would input the number of units sold by each salespeson. The salesperson who sells the most units would win the contest. Write a Visual Basic application that inputs a series of 10 integers and determines and displays the largest. Your program should use at least the following three variables:
Counter: A counter to count to 10 (i.e., to keep track of how many numbers were entered)
Number: The current integer input to the program
Largest: The largest number found so far.

Thanks for your help.
 

Please notice as posted below...
[blue]
Promoting, selling, recruiting and student posting
are not allowed in the forums.
[/blue]​
This is obviously a homework assignment, copied verbatim.

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 

Totally agree with Skip, but to help you a little: what do you have so far? And where are you stuck?

People are here to help others, but ‘help’ does not mean ‘do their (home) work for them’. :)


Have fun.

---- Andy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top