Hello Visual Basic.Net

Learn Visual Basic.Net in 15 step-by-step lessons.

hello-world.com
Privacy
Policy

Site map

Hello-World

Using what you learned in lesson 10, create the application described below:

The zodiac sign is an interesting use for arrays.
Load the search array as shown below. Multiply the month by 100 and add the day.
Loop through the search array while the number is less than the value in the array.
Do a little bit to take care of the end-of-year problem.

Sign Dates Search array
Aquarius 1/20-2/18 120
Pisces 2/19-3/20 219
Aries 3/21-4/19 321
Taurus 4/20-5/20 420
Gemini 5/21-6/20 521
Cancer 6/21-7/22 621
Leo 7/23-8/22 723
Virgo 8/23-9/22 823
Libra 9/23-10/22 923
Scorpio 10/23-11/21 1023
Sagittarius 11/22-12/21 1122
Capricorn 12/22-1/19 1222

Copyright © Hello World Publications. All rights reserved worldwide.

hello-world.com
Privacy
Policy

Site map

Hello-World