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
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.
3. Format the total cost to look like money.
Study the following code:
X = 123.45
X = FormatCurrency(x)
No comments:
Post a Comment