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

Slides:



Advertisements
Similar presentations
Designing a Program & the Java Programming Language
Advertisements

Introduction to Programming and Visual Basic 2005
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide 1- 1 STARTING OUT WITH Visual Basic 2008 FOURTH EDITION Tony Gaddis.
Chapter 6: The Repetition Structure
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter Introduction to Programming and Visual Basic
Chapter 11: Classes and Objects
Introduction to Flowcharting
Creating an OOED Application
1.
Starting Out with C++, 3 rd Edition 1 Chapter 1. Introduction to Computers and Programming.
COSC 120 Computer Programming
The IDE (Integrated Development Environment) provides a DEBUGGER for locating and correcting errors in program logic (logic errors not syntax errors) The.
Chapter 2: Input, Processing, and Output
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide 1- 1.
Chapter 7: Sub and Function Procedures
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
Chapter 1 Introduction to Programming and Visual Basic 2005 Lecture Notes Chapter 1 (CSIT 105)
Chapter Introduction to Programming and Visual Basic
Introduction to Programming and Visual Basic
Addison Wesley is an imprint of © 2011 Pearson Addison-Wesley. All rights reserved. Chapter 1 Introduction to Programming and Visual Basic.
Copyright 2003 Scott/Jones Publishing Brief Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
Adapted from slides by Marie desJardins
DCT 1123 PROBLEM SOLVING & ALGORITHMS INTRODUCTION TO PROGRAMMING.
Computer Programming and Basic Software Engineering 4. Basic Software Engineering 1 Writing a Good Program 4. Basic Software Engineering.
Visual Basic Fundamental Concepts. Integrated Development Enviroment Generates startup form for new project on which to place controls. Features toolbox.
Overview-An Overview of Visual Basic.NET1 An Overview of Visual Basic.NET.
Looping While-continue.
Problem Create a Windows-based application that will calculate the Gross Pay earned for a worker, given the number of hours worked and hourly pay rate.
CIS 115 Lecture 4.  Create a Windows-based application that will calculate the Gross Pay earned for a worker, given the number of hours worked and hourly.
Chapter 12: How Long Can This Go On?
Intro to Programming and Visual Basic .NET
1 Introduction to Flowcharting. 2 Writing a program Defining the problem –Write down what the program will do Planning –Write down the steps, draw a flowchart.
1 Introduction to Flowcharting. 2 Writing a program Defining the problem –Write down what the program will do Planning –Write down the steps, draw a flowchart.
Visual Basic Week 2
Starting Out with Visual Basic.NET 2 nd Edition Chapter 1 Introduction to Programming and Visual Basic.NET.
© 2011 Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of Stewart Venit ~ Elizabeth Drake Developing a Program.
Copyright © 2014 Pearson Education, Inc. Chapter 1 Introduction to Programming and Visual Basic.
Developing an Algorithm
Programming with Visual C++: Concepts and Projects Chapter 2B: Reading, Processing and Displaying Data (Tutorial)
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Security Panel Application Introducing the Select Case Multiple-Selection Statement.
Managing Controls Lab 2 2 All Rgihs ReservedIsmail M. Romi – PPu: IT DEpt.
The basics of the programming process The development of programming languages to improve software development Programming languages that the average user.
Practical Programming COMP153-08S Week 5 Lecture 1: Screen Design Subroutines and Functions.
1 Program Planning and Design Important stages before actual program is written.
Copyright © 2011 Pearson Addison-Wesley What is a Program Made Of? Keywords (Reserved Words) – Words with special meaning that make up a high-level programming.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design Second Edition by Tony Gaddis.
Addison Wesley is an imprint of © 2011 Pearson Addison-Wesley. All rights reserved. Chapter 1 Introduction to Programming and Visual Basic.
You will need Dev C++ to help you with this project. If you do not already have this programming tool on your device you can visit
Chapter Topics 2.1 Designing a Program 2.2 Output, Input, and Variables 2.3 Variable Assignment and Calculations 2.4 Variable Declarations and Data Types.
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 13 How Long Can This Go On?
5.01 Understand Different Types of Programming Errors
UFCFY5-30-1Multimedia Studio Scripting for Interactive Media Times Table Quiz This will contribute towards your online portfolio for this module.
Calculator Program Explained by Arafa Hamed. First Designing The Interface Ask yourself how many places are there that will be used to input numbers?
Addison Wesley is an imprint of © 2011 Pearson Addison-Wesley. All rights reserved. Chapter 2 Creating Applications with Visual Basic.
MIT App Inventor Lesson 3 Algorithms Variables Procedures.
Chapter 7 What’s Wrong with It? (Syntax and Logic Errors) Clearly Visual Basic: Programming with Visual Basic nd Edition.
COMPUTER PROGRAMMING I SUMMER Understand Different Types of Programming Errors.
Chapter 1 Introduction to Programming and Visual Basic.
5.01 Understand Different Types of Programming Errors
Introduction to Programming and Visual Basic
Chapter Topics 15.1 Graphical User Interfaces
Chapter 2: Input, Processing, and Output
Chapter 1. Introduction to Computers and Programming
Introduction to Programming and Visual Basic
Introduction to Programming and Visual Basic
5.01 Understand Different Types of Programming Errors
STARTING OUT WITH Visual Basic 2008
Chapter 2: Input, Processing, and Output
Programming Logic and Design Eighth Edition
Presentation transcript:

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

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

 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

 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

 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

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

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

 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

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

 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

 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

 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

 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

 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

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

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