Ask Visual Basic Expert

Assignment

In this assignment you are to create a Visual Basic application for the VB gas station. The application should be able to calculate the total price for a visit to the station. Visitors to the VB gas station can purchase either unleaded fuel, premium fuel, or both unleaded and premium fuel.

Your program should:

o provide input fields where the amount of each type of fuel to be purchased can be entered

o provide output fields where the subtotal charges for both unleaded and premium fuel purchases can be displayed

o provide an output field where the total price for the visit to the gas station can be displayed

o include appropriate labels for all input and output fields in the interface

o provide a "Calculate" button that when pressed will read input values for the gallons of unleaded fuel to be purchased and the gallons of premium fuel to be purchased and then calculate and display the unleaded subtotal charge, the premium subtotal charge, and the total price for the visit to the gas station

o format each of the output fields using the ToString() method so that a dollar sign is printed in front of the number and two digits of precision are displayed.

o provide a "Clear" button that when pressed will reset the form so the two input fields and three output fields are all blank (just like when the program starts running)

o provide an "Exit" button that when pressed will close the application

o define access keys for the buttons in the user interface

o establish the tab order for interface controls so that the input area for the "Gallons of unleaded" is selected first, followed by the "Gallons of premium" input area, followed by the "Calculate" button, the "Clear" button, and then the "Exit" button

o include a PictureBox to display an image that is appropriate for a gas station application

Two sample user interface screens are shown below, the first illustrates the application when it first starts running, the second shows the result of pressing the "Calculate" button when the corresponding values have been input. The user interface of your application does not have to be exactly the same as the examples below, but should be functionally equivalent.

Make sure to add a heading comment in your source code to specify your name, K number, and a brief description of the code (note: heading comments are placed before the class name in the source code). Also make sure to include additional comments within the source code (at least one comment per procedure to describe its function).

When finished, make a zip file of the folder created for the project and submit the file to the corresponding assignment on the BlackBoard system.

Attachment:- VB-Gas-Station.pdf

Visual Basic, Programming

  • Category:- Visual Basic
  • Reference No.:- M92470703
  • Price:- $30

Priced at Now at $30, Verified Solution

Have any Question?


Related Questions in Visual Basic

Please show how to do the belowvisual basic net application

Please show how to do the below: Visual Basic .NET Application - Coding Exercise 1 (Exercise 13, Zak, 2016, p. 347) For this coding exercise, write the Visual Basic code for a pretest loop that uses an Integer variable n ...

Assignment virtual storeuse the concepts and scenario from

Assignment: Virtual Store Use the concepts and scenario from Assignment 1 to help "Your" Virtual Business to increase the functionality of its online shopping cart. When a customer checks out, the shopping cart must stor ...

Assignment frans virtual fruit standfrans virtual fruit

Assignment: Fran's Virtual Fruit Stand Fran's Virtual Fruit Stand is an online store that sells several types of dried fruit. Based on the needs of Fran's Virtual Fruit stand, you must design a flowchart using Visual Log ...

Pitch amp game design documentthe assignment is about

Pitch & Game Design Document The assignment is about educational driver for teenagers Assignment Brief: In groups you will: - present a pitch and produce a one sheet - provide a demonstration of your game - produce a hig ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As