1. Engineering
  2. Computer Science
  3. aci112 a basic computer program activity consider the example above...

Question: aci112 a basic computer program activity consider the example above...

Question details

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 triangles 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
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution