Question: 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

 You can write it as the examples. declare all the viarables.

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!