Question: Lab 2: Problem Solving Concepts Diploma in Programming and Computer Science 1. Answer to the following questions: N Question 1 An algorithm is a

Lab 2: Problem Solving Concepts Diploma in Programming and Computer Science 1. Answer to the following

Lab 2: Problem Solving Concepts Diploma in Programming and Computer Science 1. Answer to the following questions: N Question 1 An algorithm is a set of instructions designed to perform a specific task. 2 The Sequence Flowchart is a binary decision block that provides two separated branches of processes. 3 To assign an initial value in pseudocode we use INITIALIZE or SET. 4 In pseudocode, the WHILE loop is a pre-test loop. 5 The logic-time errors occur when the programmer fails to obey one of the grammar rules of the language. 6 The Run-time errors occur whenever the program instructs the computer to do something that it is either incapable or unwilling to do. 2. Trace the following flowchart and tell what it will display. What is the last value of i? How many times the loop will be repeated? False STOP START i =0 True PRINTI ifi-1 T/F 3. Draw a flowchart and write its pseudocode to calculate the product of two numbers A and B entered by user. 4. Draw a flowchart and write its pseudocode to convert temperature from Celsius to Fahrenheit. F = (Cx 2) + 30 5. Draw a flowchart and write its pseudocode to determine if a given integer is even or odd. 6. Draw a flowchart and write its pseudocode to determine for a given number of month [1..12] is in which season {winter, spring, summer or autumn). 7. Draw a flowchart and write its pseudocode to read three integers, determine which has greater value and then print this value if it is even. 8. Draw a flowchart and write its pseudocode to print numbers divisible by 5, for the integers from 1 to 99. 9. Draw a flowchart and write its pseudocode to read a positive integer, then calculate and print its factorial. 10. Draw a flowchart and write its pseudocode to calculate the following serial: 1+3+5+7+9+ ...+159 =?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Solutions Step 1 Question 1 1 True 2 True 3 True 4 False 5 False 6 False Explanation Question 1 A co... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!