Question: Prob. 1 The program is required to compute the sum and average of a series of numbers a user enters. Using the template python file
Prob.
The program is required to compute the sum and average of a series of numbers a user enters.
Using the template python file
ProblemTemp.py complete the code.
Prob.
Points:
A Python program has to be developed to display with three LEDs whether a quadratic equation
shown below has real roots or complex roots or roots can't be computed and turn off the three
LEDs Red Yellow, and Green by pressing a pushbutton switch:
Red LED Coefficient a is small: If tolerance, where the value of tolerance is
value
Yellow LED Complex roots: If the value of
Green LED real roots: if
Hardware Setup Traffic Light and a PushButton:
Red LED is connected to GPIO
Yellow LED is connected to GPIO
Green LED is connected to GPIO
One terminal of the Pushbutton switch is connected to GPIO Determine the
connection of the other terminal of the PushButton.
Python Code:
Using the skeleton Python script provided in the
ProbTemp.py implement the
program.
Verify your implementation by inputting the following three quadratic equations:
After inputting each equation, reset the LEDs by pressing the Pushbutton.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
