bjectives: Create a Trip Calculator Windows application that can be used to determine miles per gallon for a given trip. Set the Form object properties of Name, ForeColor, BackColor, Size, Location, Text, and AcceptButton. The form should contain labels and textboxes to allow the user to input trip destination, miles traveled, and gallons of gas consumed. Two buttons should be placed on the form. Name all objects used in program statements. When the user clicks the button that performs the calculations, display in a label the miles per gallon for that trip. The second button should be used to reset or clear
Objectives:
• Create Trip Calculator application.
• To write an application using GUI.
Objectives:
Create a Trip Calculator Windows application that can be used to determine miles per gallon for a given
trip. Set the Form object properties of Name, ForeColor, BackColor, Size, Location, Text, and
AcceptButton. The form should contain labels and textboxes to allow the user to input trip destination,
miles traveled, and gallons of gas consumed. Two buttons should be placed on the form. Name all
objects used in program statements. When the user clicks the button that performs the calculations,
display in a label the miles per gallon for that trip. The second button should be used to reset or clear
textbox entries.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images