What is the purpose of inserting comments in a program


Assignment

Part 1

1. Briefly describe what an event-driven program is.

2. From what you have read in this chapter, describe the difference between a Label control and a TextBox control. When is it appropriate to use one or the other?

3. When creating a Visual Basic application, you will spend much of your time doing what three things?

4. Summarize the mandatory rules that you must follow when naming a control.

5. What is the purpose of inserting comments in a program?

6. What is language syntax?

7. What is a syntax error?

8. What is pseudocode?

Part 2: Programming Challenges

1. Carpet Size

You have been asked to create an application for a carpet sales and installation busi-ness. The application should allow the user to enter the length and width of a room and calculate the room's area in square feet. The formula for this calculation is

Area = Length x Width

In this exercise, you will gain practice using Steps 1 through 6 of the programming process described in Section 1.4:

1. Clearly define what the application is to do.

2. Visualize the application running on the computer and design its user interface.

3. Determine the controls needed.

4. Define the values of each control's relevant properties.

S. Determine the event handlers and other code needed for each control. 6. Create a flowchart or pseudocode version of the code.

Step 1: Describe the following characteristics of this application:

Purpose Input
Process
Output

Step 2: Draw a sketch of the application's form and place all the controls that are needed.

Step 3: Make a list of the controls you included in your sketch. List the control type and the name of each control.

Step 4: List the value of the Text property for each control, as needed. (Remember, some controls do not have a Text property.)

Step 5: List each method needed. Give the name of each method and describe what each method does.

Step 6: For each method you listed in Step 5, draw a flowchart or write pseudocode.

2. Sales Tax

Perform Steps 1 through 6 of the programming process to design an application that gets from the user the amount of a retail sale and the sales tax rate. The application should calculate the amount of the sales tax and the total of the sale.

Format your assignment according to the following formatting requirements:

1. The answer should be typed, double spaced, using Times New Roman font (size 12), with one-inch margins on all sides.

2. The response also include a cover page containing the title of the assignment, the student's name, the course title, and the date. The cover page is not included in the required page length.

3. Also Include a reference page. The Citations and references should follow APA format. The reference page is not included in the required page length.

Solution Preview :

Prepared by a verified Expert
Programming Languages: What is the purpose of inserting comments in a program
Reference No:- TGS02965504

Now Priced at $35 (50% Discount)

Recommended (92%)

Rated (4.4/5)