Lab 1

Due 1:30PM January 29, 2007

  1. Write a program to display the following:
    *
    **
    ***
    ****
    *****
  2. Write a program to dislpay the following:
    *****
     ****
      ***
       **
        *
  3. Write a program that takes as input the number of miles a car has traveled and the number of gallons of gas the car has consumed and calculates the number of miles the car can travel on one gallon of gas. Use the tax program as a template.
  4. Write a program that prompts the user for two integers and displays the sum, difference, product, and quotient of the numbers.
  5. Write a program that stores your name, age, street number, street name, city, state, and zip code in separate variables and the displays the data in the following format:
    My name is : Mickey Mouse
    My age is: 75
    My address is: 1234 Main Street, San Francisco, CA 94121


Sami Rollins