Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Step 2 : Inputs ( Getting the Value of the Resistors ) The program is supposed to ask the user for the resistor values. To
Step : Inputs Getting the Value of the
Resistors
The program is supposed to ask the user for the resistor values. To do that you will use the "input" function. The way the input function works is that the program presents the user with the prompt whatever you put in quotation marks between the parentheses and then waits. Whatever the user then enters is the return value and is placed into the variable. There is a slight variation on this if you are entering text instead of numbers, but we'll see that in a future week: today we are entering numbers.
Use the input function zyBook section two times to ask the user for
the resistance of each of the two resistors. For example:
size of a single widget
inches inputEnter the first widget size in inches: ;
Of course, change the comment, variable name, and message to match your program's task. Each time you use this you will want to replace the variable "inches with a different variableso that when you are done you have values, for example R and R that each have stored in them a resistor value.
Step : Creating Your Program
Your program should follow this sequence of operations and calculations:
Input the value resistance of resistor from the user.
Input the value resistance of resistor from the user.
Calculate the effective resistance of the bank of resistors using the formula:
Remember to add in parentheses as necessary, Leave the semicolon off the end of the final calculation, so the answer is printed to the Command Window.
Step 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