Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please help. IS2053-Spring 2023 | Lab01: Temperature Data Complete and upload the following program to Code Grade through BlackBoard as a Python file named lab01.py.
Please help.
IS2053-Spring 2023 | Lab01: Temperature Data Complete and upload the following program to Code Grade through BlackBoard as a Python file named lab01.py. In this lab, you will evaluate temperature data and apply the techniques you have learned from chapters 2, 3, and 4. Assignment Objectives You must include the following techniques, as demonstrated in your current textbook, to receive full credit for the assignment objectives portion of the Code Grading Rubric: Displaying Output with the print Function Comments Named Constants Variables Reading Input from the Keyboard Performing Calculations String Concatenation Displaying Formatted Output with F-strings The if Statement The if-elif-else Statement Logical Operators The while Loop: A Condition- Controlled Loop The for Loop: A Count- Controlled Loop Calculating a Running Total Input Validation Loops Nested Loops Your program MUST USE the main function, which must be called correctly (use the template). Additionally, you must include docstrings as shown in the template. Note: This means you should use the methods taught in the textbook and from directions from your instructor. Something you find in a YouTube video or website will not be counted as correct. Instructions Write a program that allows users to enter monthly average temperatures for one to five years. The program should be named lab01.py. The program will prompt for: The city name from which the temperature data was obtained The number of years (1-5) worth of data to be entered The starting year of the data Then the user enters 12 months of data for each year that was specified Use a named constant of WW_AVG that will hold the value of 61.0. This is the worldwide average temperature. The program will keep a running total of the temperatures entered by the user.
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