Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Is bash file important The guiding principle for evaluating programs: It has to run out of the box. The bash file has to be present

Is bash file important

The guiding principle for evaluating programs: "It has to run out of the box."

The bash file has to be present and it has to execute the first time.

The current rumor says the bash file is not part of the program is plainly false.

The program has to execute the first time without user modifications.

Specifications image text in transcribed

When electricity passes through a device it pushes against 'resistance', which is measured in ohms. Ohms is abbreviated by upper case omega: . 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:

image text in transcribed

Make a hybrid assembly program that inputs R1, R2, R3 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 (PINK)

Please enter the resistance numbers of the two subcircuits separated by ws and press enter. (YELLOW)

4.375

2.9672

1.75

These resistances were received: 4.3749999996 , 2.967200000085 , 1.75000 (YELLOW)

The resistance of the entire circuit is 1.768066794 (YELLOW)

The total resistance will be returned to the caller module. (YELLOW)

The Electricity module received this number 1.768066794 and will keep it. (PINK)

Have a very nice evening. Electricity will now return 0 to the operating system. Bye. (PINK )

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. (GREEN)

Replace the other programmer's name with you own name.

Input data validation

There is none. We assume the user inputs all values correctly. We assume all inputs are correctly formed positive floating-point doubles. We assume 0.0 is not one of the inputs.

Test case 1

To check the accuracy of your computations try these inputs

First resistance 2.5

Second resistance 4.5

Third resistance 3.0

The total resistance will be 1.046511871

Test case 2

First resistance: 10.5

Second resistance: 20.5

Third resistance: 12.6

The total resistance will be 4.47660314

What about comments?

A program created for a test does not have to reach the Professional standard required for homework. In a test the standard is the "Academic standard".

The Academic standard says you may omit all comments except identifying comments

[In the case of assembly you need block comments.]

Common sense addon: If you finish the program before the due time, then take a few minutes to make the source files look cosmetically attractive.

Electricity Jr.sh Resistance 1.0 1.0 1.0 1.0 + + R1 R2 R3 R Electricity Jr.sh Resistance 1.0 1.0 1.0 1.0 + + R1 R2 R3 R

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

Temporal Databases Research And Practice Lncs 1399

Authors: Opher Etzion ,Sushil Jajodia ,Suryanarayana Sripada

1st Edition

3540645195, 978-3540645191

More Books

Students also viewed these Databases questions