Question: Make a hybrid assembly program that inputs R1, R2, R3, R4, and then outputs R. The module called Resistance in the calling diagram returns R
Make a hybrid assembly program that inputs R1, R2, R3, R4, and then outputs R.
The module called Resistance in the calling diagram returns R to the module called Electricity.
Files needed :
resistance.asm
electricity.cpp
r.sh


Specifications The program must adhere to the following calling diagram. Electricity Jr.sh Resistance vod When electricity passes through a device it pushes against 'resistance', which is measured in ohms. Ohms is abbreviated by upper case omega: N. 12 is the unit of measure - not the number itself. In an electrical circuit the resistance number represented by an upper case R. Suppose there four small circuits each with resistance R1, R2, R3, and R4. Suppose these circuits are combined into a larger parallel circuit with its own resistance R, sometimes called "total resistance". In the 19th century a scientist George Ohm discovered the equation connecting all the resistance numbers, namely: 1.0 R 1.0 1.0 1.0 + + R1 R2 R3 Make a hybrid assembly program that inputs R1, R2, R3, R4, and then outputs R. The module called Resistance in the calling diagram returns R to the module called Electricity. Sample dialog between software and human user Welcome to the Electric Resistance Calculator programmed by Stokes Theorem Please enter the resistance numbers of the two subcircuits separated by ws and press enter. 4.375 2.9672 1.75 These resistances were received: 4.3749999996 , 2.9672000000852, 1.75000 The resistance of the entire circuit is 1.768066794 The total resistance will be returned to the caller module. The Electricity module received this number 1.768066794 and will keep it. Have a very nice evening. Electricity will now return 0 to the operating system. Bye. Color codes Yellow: Dialog with the resistance module Pink: Dialog with the main driver. Green: Information about math Note: The total resistance number shown in the dialog above may not be mathematically correct. Replace the other programmer's name with you own name. Specifications The program must adhere to the following calling diagram. Electricity Jr.sh Resistance vod When electricity passes through a device it pushes against 'resistance', which is measured in ohms. Ohms is abbreviated by upper case omega: N. 12 is the unit of measure - not the number itself. In an electrical circuit the resistance number represented by an upper case R. Suppose there four small circuits each with resistance R1, R2, R3, and R4. Suppose these circuits are combined into a larger parallel circuit with its own resistance R, sometimes called "total resistance". In the 19th century a scientist George Ohm discovered the equation connecting all the resistance numbers, namely: 1.0 R 1.0 1.0 1.0 + + R1 R2 R3 Make a hybrid assembly program that inputs R1, R2, R3, R4, and then outputs R. The module called Resistance in the calling diagram returns R to the module called Electricity. Sample dialog between software and human user Welcome to the Electric Resistance Calculator programmed by Stokes Theorem Please enter the resistance numbers of the two subcircuits separated by ws and press enter. 4.375 2.9672 1.75 These resistances were received: 4.3749999996 , 2.9672000000852, 1.75000 The resistance of the entire circuit is 1.768066794 The total resistance will be returned to the caller module. The Electricity module received this number 1.768066794 and will keep it. Have a very nice evening. Electricity will now return 0 to the operating system. Bye. Color codes Yellow: Dialog with the resistance module Pink: Dialog with the main driver. Green: Information about math Note: The total resistance number shown in the dialog above may not be mathematically correct. Replace the other programmer's name with you own name
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
