Saturday, February 28, 2009

Here is the code!

Click here to see one way of parsing data:

Apple .99
Pie 2.50
Cookie .99
Tea 1.25

Today's first exercise!

If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.
Find the sum of all the multiples of 3 or 5 below 1000.

Saturday, February 21, 2009

Last class

  1. Make a Console application that asks for a user's name and gives them a happy message in return while using their name. "&"
  2. Depending on the first letter of their name give two different messages. subString and if statements.
  3. Ask for an age. If the age is greater than 70 and their first name starts with "E" give them a separate funny message.
  4. Students will make an application to figure out the Horroscope. Users will pick their signs and get a message based on their future.
    Use quotation marks in their output.
    Add NumericUpDown.
    Read in Name and output it.
  5. Ask for a number 1 to 100. Tell the user if it's in the 1st quarter, 2nd quarter, 3rd quarter, or 4th quarter.
  6. Create a BankAccount class. Here are some possible attributes (fields):
    Balance, owner, day, status, social security number.
    View the information that was entered in!

Saturday, February 7, 2009

February 7th, 2009

  • Add 2+5
  • Take in two numbers and add them. Multiply them and give both results.
  • Use a subroutine to determine if a number is Prime. Post the code to your blog!
  • Think of a project that you would be interested in creating with VB.NET. Write on your blog possible users, input, output.