Question: ACI1.12 A basic computer program ACTIVITY Consider the example above. 1) The program has instructions Check Show answer 2) Suppose a new instruction were inserted
ACI1.12 A basic computer program ACTIVITY Consider the example above. 1) The program has instructions Check Show answer 2) Suppose a new instruction were inserted as follows: Add 1 more to z (new instruction) Put z to output What would the last instruction then output to the screen? Check Show answer 3) Consider the instruction: z # x + y. If x is 10 and y is 20, then z is assigned with Chacl Show answer PARTICIPATION | 11.4: Instructions. ACTIVITY 1) Which instruction completes the program to compute a triangle's area? base Get next input height Get next input Assign x with base * height Put x to output O Multiply x by 2 O Add 2 to x O Multiply x by 1/2 2) Which instruction completes the program to compute the average of three numbers? x Get next input y Get next input z Get next input Put a to output O a (xty+2)/3 Mu Ton Rater AN 29
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
