Presentation is loading. Please wait.

Presentation is loading. Please wait.

Steps for Developing a Visual C# 2010 Application MIT 31043 By: S. Sabraz Nawaz.

Similar presentations


Presentation on theme: "Steps for Developing a Visual C# 2010 Application MIT 31043 By: S. Sabraz Nawaz."— Presentation transcript:

1 Steps for Developing a Visual C# 2010 Application MIT 31043 By: S. Sabraz Nawaz

2 1.Clearly define what the application is to do 2.Visualize the application running on the computer and design its user interface 3.Make a list of the controls needed 4.Define the values of each control’s relevant properties 5.Make a list of methods needed for each control 6.Create a flowchart or pseudocode version of each method 7.Check the flowchart or pseudocode for errors 8.Start Visual Studio and create the forms and other controls identified in step 3 9.Write the code for the event procedures and other methods created in step 6 10.Attempt to run the application. Correct any syntax errors found and repeat this step as many times as necessary 11.Once all syntax errors are corrected, run the program with test data for input 12.Correct any run time errors. Repeat this step as many times as necessary Steps for Developing a Visual C# 2010 Application MIT 31043, By: S. Sabraz Nawaz

3  Create a Visual C# program that takes input of Number of Hours an employee worked and Hourly Pay Rate, and display the output Gross Pay Earned Example MIT 31043, By: S. Sabraz Nawaz

4  This step requires you to identify the purpose of the program  Information to be input  Processing to take place  Desired output Clearly define what the application is to do MIT 31043, By: S. Sabraz Nawaz

5  Before creating an application on the computer, you should create it in your mind; try to imagine what the computer screen will look like while the application is running Visualize the application running on the computer and design its user interface Calculate Close No. of Hours Worked: Hourly Pay Rate: Gross Pay Earned: MIT 31043, By: S. Sabraz Nawaz

6 Control TypeControl NameDescription FormDefault A small form that will serve as the window onto which the other controls will be placed LabelDefault Displays the message “No. of Hours Worked:” LabelDefault Displays the message “Hourly Pay Rate:” LabelDefault Displays the message “Gross Pay Earned:” TextboxHoursWorkedTextbox Allows the user to enter the number of hours worked TextboxPayRateTextbox Allows the user to enter the hourly pay rate TextboxGrosspayTextbox Displays the gross pay, after the CalculateButton has been clicked ButtonCalculateButton When clicked, multiplies the number of hours worked by the hourly pay rate ButtonCloseButton When clicked, terminates the application Make a list of the controls needed MIT 31043, By: S. Sabraz Nawaz

7 Define the values of each control’s relevant properties Control TypeControl NameText FormDefault “Wage Calculator” LabelDefault “No. of Hours Worked:” LabelDefault “Hourly Pay Rate:” LabelDefault “Gross Pay Earned” TextboxHoursWorkedTextbox N/A TextboxPayRateTextbox N/A TextboxGrosspayTextbox N/A ButtonCalculateButton “Calculate” ButtonCloseButton “Close” MIT 31043, By: S. Sabraz Nawaz

8  Make a list of event procedures and methods you will write Make a list of methods needed for each control MethodDescription CalculateButton_ClickMultiplies the number of hours worked by the hourly pay rate. These values are entered into the HoursWorkedTextBox and PayRateTextBox. The result is displayed in GrossPayTextBox CloseButton_ClickTerminates the application MIT 31043, By: S. Sabraz Nawaz

9 Create a flowchart or pseudocode version of each method Multiply the number of hours worked by hourly pay rate. Store the result in GrossPay Start Copy the value in GrossPay into the GrosspayTextbox End MIT 31043, By: S. Sabraz Nawaz

10  Programmer starts reading the flowchart / pseudocode at the beginning  Steps through each operation pretending he/she is the computer  In a sheet of paper, jot down the current contents of variables and properties that change, and sketch what the screen looks like after each output operation Check the flowchart or pseudocode for errors MIT 31043, By: S. Sabraz Nawaz

11  The first actual work done on the computer is this  Programmer creates application’s user interface and arranges the controls on each form Start Visual Studio and create the forms and other controls identified in step 3 MIT 31043, By: S. Sabraz Nawaz

12  The second step performed on the computer  Codes are entered for events and procedures Write the code for the event procedures and other methods created in step 6 MIT 31043, By: S. Sabraz Nawaz

13  If codes are entered with syntax errors or typing mistakes, this step will uncover them Attempt to run the application. Correct any syntax errors found and repeat this step as many times as necessary MIT 31043, By: S. Sabraz Nawaz

14  Runtime errors are mistakes that do not prevent an application from executing but cause it to produce incorrect results Once all syntax errors are corrected, run the program with test data for input MIT 31043, By: S. Sabraz Nawaz

15 Correct any run time errors. Repeat the previous step as many times as necessary MIT 31043, By: S. Sabraz Nawaz

16 Done!!! MIT 31043, By: S. Sabraz Nawaz


Download ppt "Steps for Developing a Visual C# 2010 Application MIT 31043 By: S. Sabraz Nawaz."

Similar presentations


Ads by Google