Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases And Information Systems 1 International Baltic Conference Dbandis 2020 Tallinn Estonia June 19 2020 Proceedings

Authors: Tarmo Robal ,Hele-Mai Haav ,Jaan Penjam ,Raimundas Matulevicius

1st Edition

303057671X, 978-3030576714

More Books

Students also viewed these Databases questions