Question

The Scenario: You have noticed that the daily temperature highs posted on weather sites is not...

The Scenario:

You have noticed that the daily temperature highs posted on weather sites is not a good approximation of the daily average temperature. In order to assist in determining the overall temperature for a day you want to take 3 daily measurements, one in the morning, afternoon, and the evening. With this information you might be able to better plan for the upcoming days.

The Request:

Your need to develop an application that will take measurements at 3 times and then display the average temperature for the day.

Behaviors:

  • The system will simulate taking 3 measurements 8 hours apart.
    • Use the scale 1 hour = 1 sec for this project
  • After the system takes a temperature measurement, light up one of the LEDs in sequence so the user knows how long the system has been running and the total number of measurements taken thus far.
  • Once all the measurements have been taken the system will calculate the average temperature as a real number, not rounded.
  • Nicely format and print out the daily average temperature.

         

Your assignment:

Develop an algorithm for the project and then build a functional system to take temperature measurements, calculate the average, and then display the information to the user. You will turn in the completed application, as well as a well-documented algorithm.

Using pycharm(python)

Homework Answers

Answer #1


morning = float(input("Enter the morning temperature: "))
afternoon = float(input("Enter the afternoon temperature: "))
evening = float(input("Enter the evening temperature: "))

avgTemperature = (morning + afternoon + evening) / 3.0

print("\n Average temperature for the day: ", avgTemperature)

Sample Output:

Enter the morning temperature: 23.5
Enter the afternoon temperature: 45.3
Enter the evening temperature: 34.6

Average temperature for the day: 34.46666666666667

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Write the phyton script for the following project: You have a smart light bulb that can...
Write the phyton script for the following project: You have a smart light bulb that can change color at your house. You want to set it up so when you turned the light switch on, the color change based on the temperature outside your house. You want to develop an application that will notify users of what the temperature is outside by changing the color of an LED light bulb when they turn on the light. Using PyCharm JetBrains and...
Provide the following: A list of two functional requirements. A list of two nonfunctional requirements (must...
Provide the following: A list of two functional requirements. A list of two nonfunctional requirements (must be measurable). A list of two design constraints. Saleem Application[1] Health is the most valuable possession for a human.Therefore, health must be cared about by all means. Good food, physical exercise and enough sleep are keys to good health. Another important factor is fitness. Fitness is a condition of being physically active. It is a result of general nutrition and proper conditioning, and it...
Introduction Purpose Your goal is to create a design for a software interface. You will experience...
Introduction Purpose Your goal is to create a design for a software interface. You will experience the scope of the design process from brainstorming ideas and gathering information about users’ needs to storyboarding, prototyping, and finally, testing and refining your product. As you work on the software interface, you will demonstrate your ability to apply fundamental Human-Computer Interaction principles to interface analysis, design, and implementation. You will be responsible for delivering project components to your professor at several points during...
The project has been performing as planned, and the team members have been exhibiting increasing levels...
The project has been performing as planned, and the team members have been exhibiting increasing levels of trust between each other. The sponsor and the buyer have been satisfied with the delivery of business value, and user acceptance testing results are positive. A technical expert consulting with the team has expressed concerns that the team is not in agreement on the best way to deliver to the next review. If the project manager wants to support the team in reaching...
Workplace Application - Assessment 2 What’s the current situation? “Extreme rain fall” events in Brazil have...
Workplace Application - Assessment 2 What’s the current situation? “Extreme rain fall” events in Brazil have been on the rise since the 1980s. In Guarujá a coastal town 25 miles from Soa Paulo, 18 people were killed in a single monsoon rain. The rise of global temperatures worldwide is likely to produce more extreme events for the area. Pirelli Tires a well-known performance tire manufacturer has been hit especially hard. In 2003, Pirelli built a 345,000 square foot manufacturing plant...
Review the Robatelli's Pizzeria Case Study. Develop another internal controls system, but this time, in the...
Review the Robatelli's Pizzeria Case Study. Develop another internal controls system, but this time, in the purchases and fixed assets business areas. Prepare a 12- to 16-slide presentation describing the purchases and fixed assets business areas. Be sure to incorporate speaker notes as well as appropriate visuals, graphics, fonts, etc. Include any associated risk in these areas. Describe specific internal controls that include authorization of transactions, segregation of duties, adequate records and documentation, security of assets, and independent checks and...
Case Study 2 Seattle General Hospital (SGH) is committed to quality care and patient safety. Since...
Case Study 2 Seattle General Hospital (SGH) is committed to quality care and patient safety. Since its founding in 1895, SGH has been at the forefront of patient safety and care quality. When founder Dr. John Nelsen arrived in Seattle more than a century ago, he quickly discovered there were no hospitals that lived up to his standards for care quality and sterile technique. And so he created one. Dr. Nelsen's legacy and leadership live on today at SGH, where...
The Business Case for Agility “The battle is not always to the strongest, nor the race...
The Business Case for Agility “The battle is not always to the strongest, nor the race to the swiftest, but that’s the way to bet ’em!”  —C. Morgan Cofer In This Chapter This chapter discusses the business case for Agility, presenting six benefits for teams and the enterprise. It also describes a financial model that shows why incremental development works. Takeaways Agility is not just about the team. There are product-management, project-management, and technical issues beyond the team’s control. Lean-Agile provides...
1.Establishing the virtual Management: As known, managing virtual staff requires a different method or approach than...
1.Establishing the virtual Management: As known, managing virtual staff requires a different method or approach than managing local staff. Due to that reason, Golden Scent has developed a strategic plan to successfully manage its virtual staff in the USA. Identify the suitable manager. to make sure our work will proceed as we planned, Golden Scent willrecruit a virtual manager with the essential skills and knowledge required to manage virtual employees. Find the skilled people to work with. Since not everyone...
What tools could AA leaders have used to increase their awareness of internal and external issues?...
What tools could AA leaders have used to increase their awareness of internal and external issues? ???ALASKA AIRLINES: NAVIGATING CHANGE In the autumn of 2007, Alaska Airlines executives adjourned at the end of a long and stressful day in the midst of a multi-day strategic planning session. Most headed outside to relax, unwind and enjoy a bonfire on the shore of Semiahmoo Spit, outside the meeting venue in Blaine, a seaport town in northwest Washington state. Meanwhile, several members of...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT