Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Code the following exercises using MARIE.js assembly Exercise #1 - Find a number greater than 3 different numbers Write a code that meets the following

Code the following exercises using MARIE.js assembly

Exercise #1 - Find a number greater than 3 different numbers

Write a code that meets the following conditions

input(A, B, C)

if( A > B && A > C)

output(A)

elseif( B > C)

output(B)

else

output(C)

end

Exercise #2 - Division of 2 numbers

Write a code that displays the result of dividing x / y, assuming that you can destroy the initial contents of x in the process. You must show the positive and integer part of the answer.

input(X, Y)

Z=X/Y

output(Z)

Exercise #3 - While Loop

Write a code that meets the following conditions

input(H)

while H < 10

H = H + 1

output(H)

end

Exercise #4 - Repeat For

Write a code that meets the following conditions

sum = 0

for I = 1 to 10

Sum = Sum + I

end

output(Sum)

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

Data Science Project Ideas In Health Care Volume 1

Authors: Zemelak Goraga

1st Edition

B0CPX2RWPF, 979-8223791072

More Books

Students also viewed these Databases questions

Question

3. Comment on how diversity and equality should be managed.

Answered: 1 week ago

Question

describe the legislation that addresses workplace equality

Answered: 1 week ago