Question: 1. Create P-code and a flowchart that show the following: In single operation steps, add the numbers 12, 17, 11, and 24, then subtract the

1. Create P-code and a flowchart that show the following: In single operation steps, add the numbers 12, 17, 11, and 24, then subtract the numbers 13 and 7. Print the final result.

2. Create P-code and a flowchart that show the following: Read a temperature value. If the temperature exceeds 100 degrees, set HOT = TRUE. Otherwise, set HOT = FALSE.

3. Create P-code and a flowchart that show the following: Set an index to 0. Within a loop, set all 10 elements of an array named POINTS to the value 99.

4. Create P-code that shows the following: Set an index to 0. Set a counter to 0. Within a loop, read each of the 20 elements in array called LIST and increment the counter each time a match for the value 47 is located.

5. Create P-code that shows the following: Set an index to 0. Within a loop, determine if one of 20 elements in array called PARTS is equal to the value 73. If a match is found, exit the loop immediately and set FOUND = TRUE. If a match is not found in all 20 points, exit the loop and set FOUND = FALSE.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!