Monday, April 19, 2010

Operators - April 19

Watch the following presentation:

Operands




Do the following lab:

Gasoline Usage Calculator

1. Create (Paint) a form of your own design, including the following elements:
  • Appropriate Form Name
  • Four Text Boxes to who the following items
a. Miles to the next destination
b. Miles per gallon (what the vehicle gets MPG)
c. Price per gallon of gasoline
d. Total cost of gasoline required.

  • Four labels to identify each text box.
  • A labeled command button to initiate the calculation.
2. After the user fo the prgram enters the distance, MPG, and price...calculate the total cost to reach the next destination city.

3. Format the total cost to look like money.

Study the following code:
X = 123.45
X = FormatCurrency(x)

No comments:

Post a Comment