software design
what Basic steps in software design?
discuss each step
Size: 943.53 KB
Language: en
Added: Feb 10, 2016
Slides: 24 pages
Slide Content
Web Development Basic Steps in the development of the program Web Development PHP Software Design
WordPress Essentials Computer program is the art…! Development of a solution to an identified problem. Series of instructions which when directed through computer hardware will produce the desired results.
Basic Steps Define the problem. Outline the solution. Develop the outline into algorithm. Test the algorithm. Code the algorithm into specific programming language, or merge it with the existing system. Run the program. Document and maintain the program. WordPress Essentials
1- Define the problem WordPress Essentials The input. The output. The processing steps to produce the required outputs.
2- Outline the solution WordPress Essentials Break the problem into smaller tasks or steps and establish an outline solution. May includes: The major processing steps. The major subtasks. The major Control Structures. The major variables and records. Mainline logic. May include structure chart.
3-develop the outline into algorithm. 4- Test the Algorithm for errors. 5-code the algorithm in the specific programming language. WordPress Essentials What is the types of errors….???
6- Run the program WordPress Essentials Search For Logic errors and make enhancements to your program functionalities . Well designed program make this step easy.
7- Document & Maintain WordPress Essentials Ongoing Task From the initial definition of the problem to the final test results . Both external doc , hierarchy charts, Data results & internal doc.
Web Development What is the Types of Errors….??? Different types of errors that can occur when writing a program.
Compilation errors Are errors that prevent your program from running. When you run a program, ( Consider scribing languages ) programming language compiles your code into a binary language that the computer understands. If the compiler comes across code that it does not understand, it issues a compiler error. Most compiler errors are caused by mistakes that you make when typing code. misspell a keyword, leave out some necessary punctuation, or try to use an End If statement without first using an If statement. Web Development
Run Time Error Web Development Are errors that occur while your program runs. These typically occur when your program attempts an operation that is impossible to carry out . The program must run in order for this error to be detected, and run only if it comes with a valid value. When a run-time error does occur, you can use the debugging tools if exists to determine the cause. Division by zero.
Logic Errors Web Development Are errors that prevent your program from doing what you intended it to do. Your code may compile and run without error, but the result of an operation may produce a result that you did not expect . For example, you might have a variable named FirstName that is initially set to a blank string. Later in your program, you might concatenate FirstName with another variable named LastName to display a full name. If you forgot to assign a value to FirstName , only the last name would be displayed, not the full name as you intended.
what is an algorithm…? An algorithm is like a recipe وصفة it lists the steps or orders necessary to get the desired output. I like to call it a Punch of code warp together inside Computer memory. WordPress Essentials Problem-solving operations Formula for solving a problem.
Algorithm Perform calculation . D ata processing . A utomation . Read environmental variables. Convert signal type. WordPress Essentials
Structured Programming Top – down development. Outline the general solution then create steps and break mission in to parts. Modular design. Grouping tasks together because they perform the same function WordPress Essentials Errors free code
Code Efficiency WordPress Essentials Be A Better Coder
Developing and algorithm Define the problem. Designing a solution algorithm. Checking the solution algorithm. ->(master lang ) WordPress Essentials General Considerations
Define the problem. Carefully reading and rereading the problem until you understand completely what is required. Input: a list of the source data provided to the problem. Output: a list of the output required. Processing: a list of actions needed to produce the required output. WordPress Essentials General Considerations
Variables Actors of your Movie WordPress Essentials Meaningful names Carefully select data type Dig …?
Desk checking Create setting points and assign its input variables. Choose simple input which are valid, two or three cases will be sufficient. Establish what the expected results should be for each test. Make table of variables (variable name, data type , stored data) Results match the setting points. WordPress Essentials Six simple steps
Example A program is required to read the length and width of a rectangular house block and the length and width of the rectangular house building. You have to compute the time to cut the grass around the house at the rate of two square meters per minutes. WordPress Essentials Calculate Mowing time
Solution Calculate mowing time. Prompt operator for block length and width. Get block length & width. Prompt the operator to input building length & width. Get All required Inputs. Calculate mowing area. Divide mowing area by 2. Print results in minutes. WordPress Essentials
References [email protected] WordPress Essentials https://msdn.microsoft.com/en-us/library/s9ek7a19(v=vs.90). aspx Simple programming design Thomas nel son edition
Answers…? Be sure that your code in Human readable format. Document everything. Create backups (WP files & Database). Update Your WordPress Website & Keep your WordPress secured . WordPress Essentials