🎧 New: AI-Generated Podcasts Turn your study notes into engaging audio conversations. Learn more

اخر تعديل تالتة لغات.pdf

Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...

Full Transcript

Sohag Governorate Sohag educational administration City Private Schools Contents Problem solving ………………………………….…………………………………….…...3 Flowchart ……………………………………………………………………………4 Introduction to VB.net ……………..………………………………….…..............21 Control tools …………………………...

Sohag Governorate Sohag educational administration City Private Schools Contents Problem solving ………………………………….…………………………………….…...3 Flowchart ……………………………………………………………………………4 Introduction to VB.net ……………..………………………………….…..............21 Control tools ………………………………………………………………………25 Properties window……………………………………………………………..25 Controls ………………..……………………………………………………………………..30 Code window …………………………………………………………………………..…..46 Test1 …………………………………………………….………………..…….………….….53 Test2 ……………………………………………………..………………………………..…. 55 Test3 ……………………………………………………..……………………….……..…….57 Test4 ……………………………………………………..…………………………………….58 Model answer……………………………………………………………………………….59 Student guide ………………………………………………………………………….……60 Problem Solving In your daily life, you may face a lot of problems through various activities that contain many problems. Problem is a situation that requires a solution or an objective you want to achieve through following consecutive steps sequentially. Problem Solving is the steps, activities, and processes to be done to reach an output or objective. The problem is: Baking a cake according to certain specifications, input available are the ingredients (such as eggs, flour, milk …etc.), then followed by activities or procedures that should be done sequentially to get the cake in suitable shape. Problem definition implies the identification of required outputs, available inputs and, arithmetic and logical operations to be executed. Algorithm is one of the methods used to solve a problem through logically arranged procedures. After identifying and analyzing the problem, outputs and inputs; a plan in the form of a series of successive steps is made which is called an (Algorithm), devised by the Mathematician and the founder of Algebra “Muḥammed Ibn Mūsā al-Jwārizmī”. One of the methods to represent algorithm is flowchart. It is a diagram that uses standard graphical symbols to illustrate the sequence of steps required for solving a problem or specific question. Facilitating the reading and understanding of the problem and illustrating to the programmer what must be done. Useful to explain the program to others helping in documenting the program in better manner, especially if the program is complicated Having drawn a “Flowchart” to solve the problem, using a computer; we have to translate this flowchart into one of the programming languages. During writing a program we unintentionally make some mistakes e.g. writing a minus sign (-) instead of (+). We cannot detect errors unless we begin entering data to the program with previously known results; and compare the results of the current program to those of the well-known results and so you can discover the errors and correct them. This step includes writing all steps taken for solving the problem that include: given Input, output, plan for solving the problem, drawn flowchart, programming language used for coding , instructions, date of last modification of the program and, people who contribute to the program development process. This is done to have the program documented to go back for feedback and correction. This documentation is beneficial when more than one person participate in writing or modifying the program. Here are some of the most commonly used symbols as shown in tabl Define the problem : The sum of two numbers The first number is “A “and the second number is “B” C =A+B where the result is C 1- The flowchart should start with the Start symbol and end with the End symbol. 2- A,B,C are variable names.The variable refers to a memory storage that holds a value. 3- The equation: C =A+B, indicates the sum of the value of A, to the value of B, and stores the result in C. 4- Entering values in A and B is done by using the term “Enter”, inside a parallelogram, you can also use another term to get the same meaning like “Read” or “Input”. 5- The sum equation is written inside the rectangle, as it represents an arithmetic operation. 6- The output is expressed with a parallelogram using the term “Output”, we can also use another term like “Print” or "output". 7- Note that flow line shows the order of an Algorithm. Define the problem The value of “Y”. X. Compute the value of “Y” from the equation Y=3x+2. First: Define the problem Output: Input: Solution: Second :Algorithm Third :Flowchart There are many problems that contain a question requires a Yes or No, or requires branching to other processes determined by flowchart. Define the problem print the word “ “. the score X. If the value of X is greater than or equal 50; the word “ ” will be printed. Define the problem print the result of dividing two numbers “R” or print the word “undefined" Numerator is “num1”, denominator is “num2”. if num2=0 then print “undefined”, otherwise print the result of thedivision “R”. : Define the problem print the number type (even or odd). the number “N”. the even number is determined if the entered number is divisible by 2 without remainder, otherwise it will be odd. Second :Algorithm Third :Flowchart Start Start Enter N If N is divisible by 2 Get N withoutremainder then Print “even number”4 Else divisible 4-1 Print “odd by 2 number”5 End EVEN ODD End Define the problem print out “greater than zero” – “less than zero “or “equal zero”. temperature degree Celsius “D”. the temperature degree entered will be compared to zero. Second :Algorithm Third :Flowchart Start Enter D (temperature Start degree) If D=o then Get D Print “Equal zero” 4 Else Print D =0 Equal 0 if D

Use Quizgecko on...
Browser
Browser