COMPUTER PROGRAMMING FUNDAMENTALS
WHAT IS PROGRAMMING
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
What does the example below represent? 1. Obtain two numbers from the user 2. Add the two numbers together 3. Print the two numbers
|
Algorithm
|
|
Coding
|
|
Flowchart
|
|
Pseudocode
|
Explanation:
Detailed explanation-1: -Algorithm: To find the sum and product of two given numbers: Step 1: Read A, B Step 2: Let Sum= A+B Step 3: Let Product=A*B Step 4: Print Sum, Product Step 5: Stop. Flowchart: To find the sum and product of two given numbers: Ex: What are the advantages and limitations of flowcharts when used to solve a problem?
Detailed explanation-2: -When adding, always line up the addends, the two numbers being combined, one on top of each other according to their place values. Add the numbers in the ones column first, then the tens column, and finally the hundreds column, to get the sum, or the total.
There is 1 question to complete.