Chat with us, powered by LiveChat Create a Visual Basic solution to perform customer billing | Writedemy

Create a Visual Basic solution to perform customer billing

Create a Visual Basic solution to perform customer billing

Question

Create a Visual Basic solution to perform customer billing at the Cyberian Internet Cafe. You will create the project and then design a form using the image provided in the downloaded data files. Then, add the necessary code to do the billing calculation and display the amount due.

The Cyberian Internet Café

Figure 1

Instructions

In this case, you will create a Visual Basic solution that performs customer billing for the Cyberian Internet Café. The Cyberian Internet Café provides Internet access to its customers on an hourly basis. One hour of Internet access costs $12.00. You will create a solution with a splash screen, which is an application that calculates the total cost for a customer, using the image file included in the downloaded files.

Step 1: Create the Project:

Create a Visual Basic Project using the project name “InternetCafe”.

Step 2 – Design the Form:

Design the form shown in Figure 1. You will need three button controls, three text boxes, one picture box control, and five label controls. Name your controls as shown in Table 1, and set the properties as indicated.

Type of Control Property Property value
Form Name MainForm
Text Customer Billing
StartPosition CenterScreen
Label Name Label1
Text Cyberian Internet Café
Font.Size 20
Button Name calculateButton
Text Calculate
Button Name clearButton
Text Clear
Button Name exitButton
Text Exit
Label Name Label2
Text Last Name
Label Name Label3
Text First Name
Label Name Label4
Text Number of hours
Label Name Label5
Text Amount due
Label Name amountDueLabel
BorderStyle FixedSingle
BackColor White (web color)
PictureBox Name PictureBox1
Size.Width 174
Size.Height 174
BorderStyle FixedSingle
Image (use the downloaded image file
TextBox Name lastNameTextBox
TextBox Name firstNameTextBox
TextBox Name hoursTextBox

Table 1 – MainForm Controls and Their Property Values

Step 3 – Add the image to the project’s Debug folder:

Copy the image files (J0195384.jpg) that you downloaded as part of this Case’s files into the following folder of your project:

C:InternetCafe InternetCafebinDebug

(If your drive letter is different than C:, use your drive letter.)

Step 4 – Add code to perform the calculation and display the amount due:

In the form’s Declarations section, declare a constant named HOURLY_RATE and set its value to be 12.00.

In the clearButton’s Click event, add code to clear all of the text box controls and the amountDueLabel control.

In the calculateButton’s Click event, declare two Single variables named hours and amount, and a Boolean variable name isConverted. Use the TryParse method to assign the value in the hoursTextBox control to the hours variable, storing the result from the TryParse method in the isConverted variable. Do the calculation using the hours and the hourly rate, and store the result in the amount variable. Display the amount value, formatted as currency, in the amountDueLabel control.

In the exitButton’s Click event, add code to end the program.

Step 5 – Create a splash screen

Create a splash screen using the Project menu – Add Windows Form. Select the Splash Screen form template.

Also change the splash window title to “Internet Cafe”. reference : textbook page 114.

Set project properties:

Set the project’s startup form to be MainForm. Set the project’s splash screen to be SplashScreen.

Step 6: Save and run

Save all files, then start the application. Try entering data and using the Calculate button. Is the result formatted as currency?

Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.

Do you need an answer to this or any other questions?

About Writedemy

We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.

How It Works

To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Are there Discounts?

All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.

Hire a tutor today CLICK HERE to make your first order