Question: Question regarding python assignment: Please write a program that answers the bold question about getting it to read random numbers and get it to print

Question regarding python assignment: Please write a program that answers the bold question about getting it to read random numbers and get it to print if the said value in the txt file is above (greater than) or is below (less than) 100 ohms. If the code works a thumbs up will be given. The program is PYTHON:

When manufacturing a product, we often need to evaluate test results on our manufactured product. For this project, you will evaluate a data set comprised of 100 different resistor values. The nominal (i.e. expected) resistance of the resistors is 100 Ohms. The tolerance is 5%. So the Upper Spec Limit (USL) is 105 Ohms, and the Lower Spec Limit (LSL) is 95 Ohms. Your task is to evaluate the resistor values, which are stored in a text file (the input file), and output the results of the evaluation into another text file (the output file).

Write a program using python to get it to: State which resistors are above the USL, and which resistors are below the LSL. Example output: Resistor 7 has a resistance of 94.6 Ohms, which is below the Lower Spec Limit (LSL). This process will require if/then logic and loops and should be coded to read txt file of random numbers at any length.

Thanks

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!