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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started