Lab 7

Grader

Testing Video Lab 7

For this project you may create your own interface or use the one provided in the Shell folder on the Content tab in Angel. If you use the shell "make it your own" by changing colors, fonts, and/or rearrange the layout.

Image of Lab 7 Form

Your task is to code Case statements behind the command buttons. There are four parts you are to choose THREE parts to complete. (If you use the shell provided be sure to delete all controls and code related to the part you choose not to do)

The Grade Level and Counselor buttons are similar to the previous lab except for the following differences.

Grade Level

The completed credits value must be a whole number and greater than zero. Display an appropriate error message if the input value is invalid.

Counselor

Display an appropriate message if the name entered does not begin with a letter.

Hint: Use the SubString( ) method to extract the first character of the input value.

Note: An IsNumeric( )  test is not an appropriate validation tool for the input.

Estimate Tax (for singles)

Use the following chart to estimate the amount of tax owed.

If your rounded taxable income  is at least . . .         But not more than . . .  Your tax is:
$0  $7,825                                10% of the amount over $0
$7,826  $31,850            $782.50 plus 15% of the amount over $7,825
$31,851  $77,100         $4,386.25 plus 25% of the amount over $31,850
$77,101  $160,850       $15,698.75 plus 28% of the amount over $77,100
$160,851  $349,700       $39,148.75 plus 33% of the amount over $160,850
$349,701  No limit       $101,469.25 plus 35% of the amount over $349,700

Display an appropriate message if the input value is not numeric or is <= 0.

Chinese Animal Sign

The Chinese lunar calendar is the longest chronological record in history, dating from 2637 B.C. when the first cycle of the zodiac was introduced. One complete cycle takes 60 years and is made up of five simple cycles of 12 years each. The 78th cycle started on February 1984, and will end on February 2044. Twelve animals were assigned to each of the 12 years when, according to legend, the Lord Buddha summoned all the animals to come to him before he departed from Earth. Only twelve animals came to bid him farewell. As a reward he named a year after each one in the order that it arrived. First came the Rat, then the Ox, the Tiger, Rabbit, Dragon, Snake, Horse, Sheep, Monkey, Rooster, Dog and Boar. Thus, we have the twelve animal signs of today. The animal ruling the year in which you were born exercises a profound influence on your life. "This is the animal that hides in your heart".  (quoted from horoskoper.no)

Each animal has a different personality and different characteristics. The animal is believed to be the main factor in each person's life that gives them their traits, success, and happiness in their lifetime.  (quoted from wikipedia.org)

The first year in the cycle is

Rat (1924) followed by
Ox (1925)
Tiger (1926)
Rabbit (1927)
Dragon (1928)
Snake (1929)
Horse (1930)
Sheep (1931)
Monkey (1932)
Rooster (1933)
dog (1934)  (The site is case sensitive this one must be lower case)
Pig (1935)

Note: Since the Chinese New Year in the beginning of February people this will not be accurate for people born in January and early February.

The user will enter the year of their birth and the program will display a message box indicating their sign and launch a web site describing a person with that sign. You may locate your own web site if you choose but the following web site will work

http://www.usbridalguide.com/special/chinesehoroscopes/Rooster.htm

For each different sign simple replace the animal name.

To launch a web page from a Visual Basic program

System.Diagnostics.Process.Start("The URL")

Hint: Find a calculation that you can use on any year to determine which year in the 12 year cycle the year is.

Display an appropriate message if the input value is not a whole number or is < 1924

Remember to:

your name
a brief description of what the program does
A record of how much time you spent on the lab

Hints:

When you are confident the program works

Submit a zipped folder(s) containing the entire project(s) as an attachment in the appropriate drop box.