Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You can write it as the examples. declare all the viarables. also just for my understanding if you can writeit as a linux shell script

image text in transcribed

You can write it as the examples. declare all the viarables. also just for my understanding if you can writeit as a linux shell script too. it would be nice TASKS. Linux Shell Script 2.1.Based on the information you found on the Internet try to write part of the program that calculates area of trapezoid of the following parameters: - shorter side a-3, -longer side b-7, -height h-4 a + b 2 result_x h You are not required to write the whole code. All you need to do is to show how you would declare all variables that you would need to calculate the area of trapezoid (a, b, h), for example, if your task were to calculate area of a square which side r-3, you would define the following variables: r: dw 1 result: dw 1 and also you will need to write only the instructions that will do the requested calculations. For example, if your task were to calculate the mentioned area of square of side r-5, your implementation might look like mov word[r],!5 mov axr] mov bx,r] mov word[ resultlax the last instruction should be moving calculation result to the result variable

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

MFDBS 91 3rd Symposium On Mathematical Fundamentals Of Database And Knowledge Base Systems Rostock Germany May 6 9 1991

Authors: Bernhard Thalheim ,Janos Demetrovics ,Hans-Detlef Gerhardt

1991st Edition

3540540091, 978-3540540090

More Books

Students also viewed these Databases questions

Question

describe the main employment rights as stated in the law

Answered: 1 week ago