Lab02 - CNIT 175 Lab02 Due: Mon. 09/12/11, 10:00 pm...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CNIT 175 Lab02 Due: Mon. 09/12/11, 10:00 pm 10 Points Objectives: 1. Variables 2. Parse Method 3. ToString Method 4. Arithmetic in VB This assignment is similar to the first problem under “Program Challenges” in the text book. Program: Design a VB project to compute and display some statistics for a road trip. The user should enter the initial and end reading of the odometer, gallons of gas used, price per gallon, and duration of the trip in hours (ex: 4.5 hours) in provided Text boxes. Then the user should click on a Button to compute and display the following statistics for this trip: - Distance driven in miles - Average speed (miles per hour) - Cost of the gas used. - Car’s MPG (miles per gallon) There should also be a Button on the form to clear all the boxes and set the focus to the top Text box; Another Button to end program execution. GUI: Based on problem description design a suitable GUI for this lab. Have a separate Label to display each output. Introductory comments:
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/06/2012 for the course CNIT 175 taught by Professor Na during the Fall '11 term at Purdue.

Page1 / 2

Lab02 - CNIT 175 Lab02 Due: Mon. 09/12/11, 10:00 pm...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online