Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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. Also Compute the average value of each 5 resistor set: Calculate the average resistor values for resistors 1-5, 6-10, 11-15, etc. Output to the file which sets of resistors fall below the LSL or above the USL.THE PROGRAM MUST USE THE FOLLOWING IMPORTED FILE: ResistorValues.txt so please place that file in your code when pasting it as your asnwer. 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: 1) 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. 2) Compute the average value of each 5 resistor set: Calculate the average resistor values for resistors 1-5, 6-10, 11-15, etc. Output to the file which sets of resistors fall below the LSL or above the USL. Create an endless loop and get too 100 resistors. Thanks

Data:

117 117 96 85 112 94 111 117 110 108 93 99 85 118 102 105 107 111 84 88 96 107 91 91 117 102 104 82 118 111 117 116 104 85 96 88 120 96 95 102 89 109 88 89 114 93 94 99 110 115 94 108 86 99 108 91 81 112 119 104 81 113 116 95 98 115 82 94 93 89 94 80 104 90 119 85 104 93 94 82 100 87 100 88 85 95 90 107 110 102 100 115 84 96 115 99 119 113 82 89

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

Expert Oracle Database Architecture

Authors: Thomas Kyte, Darl Kuhn

3rd Edition

1430262990, 9781430262992

Students also viewed these Databases questions

Question

Please help me to prepare an income statement:

Answered: 1 week ago

Question

What is corporate meaning and what role does IMC play in it?

Answered: 1 week ago

Question

How does corporate communication differ from brand communication?

Answered: 1 week ago

Question

Why is television the strongest medium for COBA?

Answered: 1 week ago