create a Visual Basic solution that performs customer billing for the Cyberian Internet Café.

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.

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?


 

PLACE THIS ORDER OR A SIMILAR ORDER WITH STUDENT HOMEWORKS TODAY AND GET AN AMAZING DISCOUNT

get-your-custom-paper

The post create a Visual Basic solution that performs customer billing for the Cyberian Internet Café. appeared first on STUDENT HOMEWORKS .

 
Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A+ quality paper that is free from plagiarism. Order now for an Amazing Discount!
Use Discount Code "Newclient" for a 15% Discount!

NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.

Buy Custom Nursing Papers