PROBLEM SOLVING TECHNIQUES USING C & Full basic explanation of c programming language very simple
PROBLEM SOLVING TECHNIQUES USING C
Critical thinking • It is a methodical way to deal with find and actualize the answer for an issue.
Program • It is a lot of directions written in coding languages.
Programming • It is a gathering of PC information and directions. It is in charge of controlling, incorporation and overseeing equipment parts and perform explicit assignments.
Order of programming • System programming It is a lot of at least one projects that oversee and bolster a PC framework equipment and its information preparing exercises. E-x Operating framework, Compilers, Assemblers • Application programming It is a lot of at least one projects, intended to take care of a particular issue or a particular assignment. E-x Ms-word ,Ms-excel,Ms-powerpoint.
Ventures in Problem Solving • Problem Definition • Problem Analysis • Design • Coding • Testing • Maintenance.
Issue Definition • To tackle an issue, the initial step is to distinguish and characterize the issue. • The issue must be expressed unmistakably, precisely and absolutely. E-x Find biggest of three numbers.
Issue Analysis • The issue investigation helps in structuring and coding for that specific issue. 1. Info determinations The quantity of data sources and what structures the information are accessible 2.Output details The quantity of yields and what structures the yield ought to be shown. E-x input – a,b,c yield - c.
Planning a program • 1. Calculations • 2.Flowcharts • Algorithm - well ordered method of tackling an issue • Flowcharts – It is the graphical portrayal of the calculation.
Coding • Writing directions in a specific language to take care of an issue.
Testing a Program • After composition a program, software engineer needs to test the program for culmination, rightness, dependability and viability. • Unit testing • Program Testing • Verification Testing • Validation Testing.
Keeping up the program • It implies intermittent audit of the projects and alterations dependent on client necessities.
Calculation • A calculation is a well ordered system to take care of a given issue in limited number of steps. The attributes of a calculation are (I) Algorithm must have limited number of steps. (ii) No directions ought to be rehashed. (iii) A calculation ought to be basic. (iii) A calculation must take atleast at least one info esteems. (iv) A calculation must give atleast at least one yield esteems.
Points of interest • A calculations are straightforward. • Algorithm is modifying language autonomous. • Algorithm makes the issue basic, clear, right.
Model 1 Problem definition : To discover basic intrigue Problem Analysis : inputs – p, r, t Output – basic intrigue Algorithm Step 1:Start Step 2:input p,r,t Step 3: ascertain si=p*r*t/100 Step 4: yield si Step 5:stop.
Model - 2 Problem definition : To Convert temperature in Celsius to Fahrenheit Problem Analysis : input – c Output – f Algorithm Step 1:Start Step 2:input c Step 3: figure f=9/5*c+32 Step 4: yield f Step 5:stop.
FLOWCHART • A stream graph is a well ordered diagrammatic portrayal of the rationale ways to take care of a given issue. • A flowchart is graphical portrayal of a calculation.
Focal points • The flowchart demonstrates the rationale of an issue showed in pictorial style • It is valuable for troubleshooting and testing of projects. • Program could be coded productively utilizing flowcharts. • The Flowchart is great methods for correspondence to different clients.
Disservices • It isn't valuable to speak to complex program rationale • For any changes, the flowcharts must be redrawn totally.
Standards for composing flowcharts • It ought to be attracted through and through. • A flowchart consistently starts with begin image and finishes with stop image. • Flow lines are utilized to join the images • Decision box ought to have one section point and two leave focuses. • For long flowcharts, connectors are utilized to go along with them.
Compose Algorithm and flowchart for the accompanying issues • Find the biggest of two numbers • Check whether the given number is sure or not • Input a period of individual and check whether he is qualified for casting a ballot or not. • Check whether the given number is odd or even • Check whether the given year is jump year or not.
Coding • Coding is the interpretation of a calculation or flowchart into a reasonable scripting language c,c++,java.
Testing and Debugging • To accomplish the required yield, the program that is sent in coding must be tried ,ordered and executed. • Types of blunders linguistic structure mistake semantic mistake Run-time blunder.
Investigating • It is the way toward recognizing and rectifying the bugs.
Documentation • Documentation is the reference material which clarifies the utilization and support of the program. • Two kinds of documentation Internal Documentation variable names, program code External Documentation User's manual, Administrator manuals, Developers manual.
Support • Periodic audit of the program and changes dependent on their client prerequisites.
Organized Programming • Structured writing computer programs is a system for sorting out and coding PC programs in which a chain of importance of modules is utilized ,each having single passage and single leave point. Three kinds of control structures Sequence Selection Iteration.
Guidelines for organized programming • Every program ought to determine information and yield factors. • The progression of the program ought to be top-down methodology. • Every program and capacity must have a remark toward the start. • Divide the huge projects in to subprograms (capacities or methods). • Documentation ought to be short.
Focal points of organized programming • Easy to compose. • Easy to troubleshoot • Easy to comprehend • Easy to change.
Measured programming • The secluded way to deal with programming includes separating a program into subcomponents called modules. • Each module is made out of some arrangement of guidelines.
Focal points of particular programming • Easy to compose • Easy to troubleshoot • The kinds of methodologies Top-down methodology Bottom-up methodology.
Post a Comment