Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Business Management Expert

1. The voltage is 3.3V across the circuit.  Determine the resistance of the resistor based upon the color of the bands.  Based upon the voltage required by the LED, compute the current.  Please refer to the PowerPoint presentation to determine how much voltage is required by the LED.

2. The voltage is 3.3V across the circuit.  Determine the resistance of the resistor based upon the color of the bands.  Based upon the voltage required by the LED, compute the current.  Please refer to the PowerPoint presentation to determine how much voltage is required by the Infrared LED.

3. Declare a list that is initialized with six of your favorite sports teams.   Print out the number of teams to the shell.  Use a for loop to print out the teams to the shell.

4. a. Declare a list, initially with no elements.

b. Use a while loop to prompt the user for a sporting goods item and append the item to the list.

c. Break out of the loop when the user enters exit; do NOT append the word exit to the list.

d. Write a for s in sport_list loop to print out the elements in the list to the shell.

(BONUS) Add code to handle a ctrl-c exit.

5. a. Create a list which initially contains no elements.  b. Using the SenseHat, take 25 pressure measurements and store each measurement as a floating point number in the list.  Be sure to have the program sleep for a second or two between each measurement. 

c. After recording the measurements, calculate the average of the pressure measurements- use the sum function and display the average on the SenseHat.

6.  a. Create a list of lists consisting of three rows and four columns and have the user initialize each element in the list of lists.

b. Compute the sum of all of the elements in the list.  You may use the sum function.

c. Prompt the user to enter a row number and use a loop to calculate the sum of the elements in the row and print out the sum.

7.  a. Create a new file (module) named camera_picture.py.

b. Write a function, take_picture, that takes two parameters, the filename and an effect.

c. Take a picture with the filename and effect.

d. Create a second file use_camera.py.

e. Import the take_picture function from the camera_picture module.

f. Prompt the user for the filename.

g. Prompt the user for the effect.

h. Call the function with the filename and the effect as arguments.

(BONUS) Print a menu that allows the user to select an effect with a letter. Call the function with the appropriate arguments.

a. cartoon

b. pastel

c. emboss

etc.

(BONUS) Write a function that lights up one row of the SenseHat LED display at a time and does so indefinitely.  Have the program sleep for a second or two each iteration through the loop.  Also, the row of lit LEDs should be set to a different randomly create color each iteration.  The user can break out of the program by pressing ctrl-c.  Wrap the function in a

try-except block to handle the exit gracefully.

(BONUS)

a. Create a new file (module) named light_sound.py.

b. Write a function, alert_fun that takes one parameter, the GPIO pin for the LED, the GPIO pin for the Buzzer, and the duration of the light to be on and the buzzer to sound.

c. Create a second file use_light_sound.py.

d. Import the alert_fun function from the light_sound module.

e. Prompt the user for the GPIO pin for the LED, the GPIO pin for the Buzzer, and the duration.

d. Call the function with the duration as an argument.

Business Management, Management Studies

  • Category:- Business Management
  • Reference No.:- M92216177
  • Price:- $30

Priced at Now at $30, Verified Solution

Have any Question?


Related Questions in Business Management

Any help will be appreciatedscenarionbspyou are a

Any help will be appreciated Scenario: You are a networking and communications consultant working for HoustonComm Services, Inc, further referred to as HCS. HCS is a company providing technology consulting services to st ...

Using the automobile industryand identify porters five

Using the automobile industry,and identify Porter's five forces and describe how each applies to the industry. Give as much detail as possible and support your answer.

Explain change strategies give an example of change

Explain change strategies. Give an example of change strategy that a company could implement.

Need guidance real quick how can i modify this program to

Need guidance real quick. How can I modify this program to print out all the integers that meet the requirements not just one of them. At the moment the program just find the largest number of divisors for one integer bu ...

What do millennials need to consider to get the

What do millennials need to consider to get the compensation and benefits package they want?

Research and discuss three web-service apis in android and

Research and discuss three web-service API's in Android and identify the features associated which each.

Consider cy y2 2y 4 many firms have access to this

Consider: C(y) = y^2+ 2y + 4. Many firms have access to this technology, in fact so many that there is not room for all to profitably operate in the industry. The market demand for the product is given by P = 30-Y , wher ...

Swot analysis on a company you are or have worked for share

SWOT analysis on a company you are or have worked for. Share 2 strengths - 2 weaknesses - 2 opportunities - 2 threats.

Joshua was close to his manager eric they were seen

Joshua was close to his manager, Eric. They were seen together at the cafeteria and stayed late at work when the need arose. In contrast to them, the other five team members did the routine jobs assigned to them. What le ...

Discuss how you can use each of the the tools available for

Discuss how "you" can use each of the the tools available for diet planning (from the book this means the "Dietary Guidelines for Americans" and "MyPlate"). (Reminder - initial post should be at least 100-200 words) COUR ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As