Docsity

about the basic knowledge of java programming using netbeans to code , Slides of Java Programming

Partial preview of the text

Download about the basic knowledge of java programming using netbeans to code and more Slides Java Programming in PDF only on Docsity!

Basic Programming

Principles using

Visual Basic. Net

CHAPTER 1

Understanding problems and how to solve them using a computer

Problem solving  (^) In order to solve a problem, its important to understand what the problem is.  (^) You have to read a problem a number of times in order to understand it. Steps to problem solving  (^) Read the problem carefully  (^) Understand what the problem entails  (^) Only then write down the steps to solve the problem. Solve example 1 pg

Data processing continued……..  (^) The diagram above shows that the algorithm must receive data (input) that must be processed to render meaningful results (output/information) It is possible to formulate the following:  (^) Unprocessed data is meaningless  (^) Information is processed data  (^) Output is processed data See example 4 and 5 pg4-

Problem solving approach The following steps must be followed in order to find an excellent, efficient and working solution.

  1. Analyze the problem  (^) It is extremely important to understand the problem completely  (^) Sometimes its necessary for you as the programmer to ask additional questions because the end user at times does not provide enough details.
  2. Identify alternative ways to solve the problem  (^) Its important to look at the problem from different angles and consider different ways to try to solve it.
  3. Select the most effective way to solve the problem  (^) Out of the alternative solutions, select one that is most effective.
  4. List all the steps to solve the problem  (^) Present all the steps of solving the problem unambiguous way not yet in a programming language syntax
  5. Evaluate the algorithm for accuracy  (^) The last thing is to check your logic and algorithm for accuracy. This is called desk checking.