Question: You can write it as the examples. declare all the viarables. also just for my understanding if you can write it as a linux shell
You can write it as the examples. declare all the viarables. also just for my understanding if you can write it 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 = 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 mul bx mov word[resultl,ax the last instruction should be moving :calculation result to the result variable
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
