VB.NET

Moderators: seancampbell
Number of threads: 4022
Number of posts: 10035

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Please assist: Array application Posted by abeljdavila on 17 Apr 2005 at 8:24 PM
Write a VB application that reads the data in an array.

It will prompt the user for the beginning and end points of a range.

It will then count how many elements were inside and outside the range. It will display the two counts to the user. To make this a little less tedious to test, put this line before the first function and you won't have to type in the data. Don't change the elements in the array, I might test your code by running it.

Private data() As Integer = {19, 22, 34, 10, 78, 2, 25, 50, 42, 21, 21, 19, 10, 4, 100}


Report
Re: Please assist: Array application Posted by Baldusarius on 19 Apr 2005 at 4:01 PM
Private data() As Integer = {19, 22, 34, 10, 78, 2, 25, 50, 42, 21, 21, 19, 10, 4, 100}

Dim beginRange() as Integer = GetUserInput("Please enter range")

For Each i as Integer in data
   FirgureOutIfNumberIsInRange(i)
Next

If (YouAreStillPayingAttention) Then
   DoYourOwnHomeWork()
Else
   PrintThisOutAndTurnItIn(canYouSaySummerSchool)
End If


: Write a VB application that reads the data in an array.
:
: It will prompt the user for the beginning and end points of a range.
:
: It will then count how many elements were inside and outside the range. It will display the two counts to the user. To make this a little less tedious to test, put this line before the first function and you won't have to type in the data. Don't change the elements in the array, I might test your code by running it.
:
: Private data() As Integer = {19, 22, 34, 10, 78, 2, 25, 50, 42, 21, 21, 19, 10, 4, 100}
:
:
:




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.