Program # 1
Execute a Visual Basic .NET Application
For this first Critical Thinking assignment you will be locate and execute a Visual Basic .NET application. You will need to download the data files for the course text. The data files can be downloaded from CengageBrain.com.
Each chapter in this book has its own set of data files, which are stored in a separate folder within the VB2015 folder. The files for Chapter 1 are stored in the VB2015\Chap01 folder. Similarly, the files for Chapter 2 are stored in the VB2015\Chap02 folder. Throughout the course textbook, you will be instructed to open files from or save files to these folders.
Below are the steps for completing this assignment:
First you will need to install Visual Studio on your computer if you don't have it already installed. Follow the instructions on Page xxii: Read This Before You Begin in the course text.
Launch Visual Studio 2015. When the application is opened, take a screen shot, showing your computer desktop on the background to ensure that you completed this activity in your computer.
Use Windows to locate and then open the VB2015\Overview folder on your computer's hard disk or on the device designated by your instructor. Right-click Monthly Payment Calculator (Monthly Payment Calculator.exe) in the list of filenames and then click the Open button (Zak, 2016, p. 4). Take a screen shot of the application, showing your computer desktop on the background to ensure that you completed this activity in your computer.
Assignment Deliverables (all in a single Word or PDF file, with steps numbered, and steps in order):
A Screenshot of Visual Studio showing it was successfully installed on your computer.
A Screenshot of the Monthly Payment Calculator program.
Program # 2
Create a Visual Basic .NET Application – User Interface Design Diagram (Lesson A Exercise 1, Zak, 2016, p. 70)
The annual property tax in Richardson County is $1.50 for each $100 of a property's assessed value. The county clerk wants you to create an application that will display the property tax after he enters the property's assessed value. Prepare a TOE chart ordered by task, and then rearrange the TOE chart so that it is ordered by object. Be sure to include buttons that allow the user to both clear and print the screen. Draw a sketch of the user interface. (Note: If you select this option, you must complete Option 1 for the Critical Thinking assignment in Modules 3 when you will create the interface.)
Assignment Deliverables (all in a single Word or PDF file, with steps numbered, and steps in order):
TOE chart ordered by task and TOE chart ordered by object.
The diagram of the User Interface design.
The annual property tax in Richardson County is $1.50 for each $100 of a property's assessed value. The county clerk wants you to create an application that will display the property tax after he enters the property's assessed value. Prepare a TOE chart ordered by task, and then rearrange the TOE chart so that it is ordered by object. Be sure to include buttons that allow the user to both clear and print the screen. Draw a sketch of the user interface. (Note: If you select this option, you must complete Option 1 for the Critical Thinking assignment in Modules 3 when you will create the interface.)
Assignment Deliverables (all in a single Word or PDF file, with steps numbered, and steps in order):
TOE chart ordered by task and TOE chart ordered by object.
The diagram of the User Interface design.
Program # 3
Create a Visual Basic .NET Application – User Interface Elements (Lesson B Exercise 1, Zak, 2016, p. 83)
In this exercise, you will continue creating the Richardson County application from Module 2 Critical Thinking assignment Option 1. Open the VB2015\Chap02\Richardson Solution\Richardson Solution (Richardson Solution.sln) file. If necessary, open the designer window. Figure 2-18 (Zak, 2016) shows the completed interface.
Add the missing txtAssessed and lblTax controls to the form.
Set the lblTax control's TextAlign property to MiddleCenter. Lock the controls on the form. Assign the access keys (shown in the figure) to the text box and buttons.
Set the TabIndex values appropriately. Save the solution and then start the application. Verify that the tab order is correct. Also verify that the access keys work appropriately. Use the Exit button to end the application.
Assignment Deliverables:
The zip file containing the Visual Studio solution and project file
Program # 4
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 named intEven to display the even integers from 2 through 20 in the lblEven control.
Use the For...Next statement.
Display each number on a separate line in the control.
Then create an application to test your code using the following names for the solution and project, respectively: Even Solution and Even Project.
Save the application in the VB2015\ Chap06 folder.
Add a button and a label to the interface. Enter your code in the button's Click event procedure, and then test the application appropriately.
Assignment Deliverables;
The zip file containing the Visual Studio solution and project files.
Program # 5
Visual Basic .NET Application – Coding Exercise 2 (Exercise 6, Zak, 2016, p. 575)
An application contains the Structure statement shown here.
Structure MyFriend
Public strName As String
Public strBirthday As String
End Structure
Create a VB.Net Windows Form application named MyFriend_YourName. Change the name property of your form to frmMain.
Add the MyFriend Structure to the public class frmMain.
Create 2 text boxes txtName and txtBirthday, and a button with the name property changed to btnExecute and the text property changed to Execute.
In the button click event, write a Dim statement that declares a five-element one-dimensional array of MyFriend variables. Name the array home.
Then write an assignment statement that assigns the value in the txtName control to the strName member contained in the last array element.
Write an assignment statement that assigns the value in the txtBirthday control to the strBirthday member contained in the last array element.
Output the values from the last array element to a message box in the format “Your name is Name and your birthday is Birthday.” Name and Birthday are replaced with actual values from your array.
Set a breakpoint next to you’re the Dim statement of your home array. See page 829 in your text for how to set breakpoints in VB.Net or search online.
Run your form, add a name and date to the respective text boxes and click the Execute button. Execution should stop at the breakpoint. Use the Debug menu or shortcut keys to step through the code. All code should execute without error.
Assignment Deliverables:
The zip file containing the Visual Studio solution and project files.
Program # 7
Complete the assignment below. Ensure that all of your assignment deliverables are attached before submitting your assignment.
Visual Basic .NET Application – Coding Exercise 4 (Exercise 2, Zak, 2016, p. 692)
In this exercise,
Create an empty website application named Carnival and save it in the VB2015\ Chap12 folder.
Add a new webpage named Default.aspx to the application. Change the DOCUMENT object's Title property to Brookfield.
Create a webpage similar to the one shown in Figure 12-25. The image on the webpage is stored in the VB2015\ Chap12\Carnival.png file. (Hint: To position the image as shown in the figure, click the image, click Format on the menu bar, click Position, and then click the Left button in the Wrapping style section of the Position dialog box.)
Save and then start the application. Close the browser window and then close the application.
Assignment Deliverables (The solution folder and project files should be in included in a zip [archive] file):
The zip file containing the Visual Studio solution and project files.