Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started