Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Draw a flow chart for the Design portion: while loop, conditional IF statements. There are 2 input devices and 2 output devices. Input devices include
Draw a flow chart for the Design portion: while loop, conditional IF statements. There are 2 input devices and 2 output devices. Input devices include button and light sensor. Output devices include Led light and LCD screen.
Ty in advance.
In all cases, we will: practice calling functions and implementing statements and expressions in Python; practice implementing conditional flow control through an IF statement; and practice implementing simple looping via the WHILE loop. By the end of this lab, you should be able to: describe the aspects and importance of looping vs conditional flow control in programming; and implement looping within a Python scrpit for a given problem. Preparation Record your pre-lab work as part of your logbook entry. 1. Design: Referencing lecture material if needed, draw a flow chart that represents a design for the problem that best fits the devices chosen for Lab 3. The problem can be summarized as: in a continuous loop: read the input analog device convert the input analog reading to an output percentage print output percentage if the digital input {button} is NOT pressed if the reading is above a given _threshold value manipulate alarm output device to show "alarm criteria" met else turn off alarm wait a predetermined amount of timeStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started