Please help. IS2053-Spring 2023 | Lab01: Temperature Data Complete and upload the following program to Code Grade
Fantastic news! We've Found the answer you've been seeking!
Question:
Please help.
Transcribed Image Text:
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. 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.
Expert Answer:
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
What is the difference between MouseListener and MouseAdapter? [3 marks] (b) Via suitable HTML, the compiled version of the following Java code is presented to the appletviewer application: import...
-
CANMNMM January of this year. (a) Each item will be held in a record. Describe all the data structures that must refer to these records to implement the required functionality. Describe all the...
-
Explain why merchants accepted gold receipts as a means of payment even though the receipts were issued by gold-smiths, not the government. What risk did goldsmiths introduce into the payments system...
-
Meticulous Drill & Reamer (MD&R) specializes in drilling and boring precise holes in hard metals (e.g., steel alloys, tungsten carbide, and titanium). The company recently contracted to drill holes...
-
Using the grammar in Example 3.2, show a parse tree and a leftmost derivation for each of the following statements: A = A * (B + (C * A)) Data From Example 3.2: A| BIC + | * |( ) |
-
Cavett Problem. A process having multiple recycle loops formulated by R.H. Cavett [Proc. Am. Petrol. Inst., 43, 57 (1963)] has been used extensively to test tearing, sequencing, and convergence...
-
Park Company reported the following March purchases and sales data for its only product. Park uses a perpetual inventory system. Determine the cost assigned to ending inventory and to cost of goods...
-
Explain what is Model, Strategy, Algorithm in math teaching? How is it similar/compare to 'algorithm' language of borrow or carry over in subtraction
-
ALei Industries has credit sales of $150 million a year. ALeis management reviewed its credit policy and decided that it wants to maintain an average collection period of 40 days. a. What is the...
-
What are the benefits of the Professional Program in Accountancy (PPA)? Select all that apply PPA students can obtain both their BBA and Masters degrees in ACCT in 5 years. It is not available to...
-
A seller uses a perpetual inventory system and on April 4 it sells $5,000 in merchandise to a customer on credit terms of 3/10, n/30. On April 13, the seller receives payment from the customer....
-
Richard Delgado, "Storytelling for Oppositionists and Others: A Plea for Narrative" Michigan Law Review 87 (1989): 2411-2441. LINK...
-
What is the role of privilege escalation prevention in operating system security, and what are some common techniques used by attackers to achieve privilege escalation ?
-
Who can be found guilty of a business crime, and what does mens rea and actus reus mean? A.D. v. Best Western Int'l, Inc., 2023 U.S. Dist. LEXIS 65972,research an example of a business crime...
-
Assume a company reports a pretax loss of $50 million in 2021 for financial reporting and tax purposes. In 2022, the company reports pretax income of $80 million for financial reporting and tax...
-
What is the grid? What are the parameters used to define grid quality?
-
Solve for the equilibria of the following discrete-time dynamical systems Pr pt+1 = Pr+2.0(I-Pr)
-
Jan has two jobs during 2012. One employer withheld and paid FICA taxes on $66,600 of Jan's salary, and the other employer withheld and paid FICA taxes on $44,400 in salary paid to Jan. Calculate the...
-
Diego, age 28, married Dolores, age 27, in 2012. Their salaries for the year amounted to $46,479 and they had interest income of $3,500. Diego and Dolores' deductions for adjusted gross income...
-
Frank, age 35, and Joyce, age 34, are married and file a joint income tax return for 2012. Their salaries for the year total $83,000 and they have taxable interest income of $4,000. They have no...
-
Active-Ingredients is a company supplying baking ingredients in major hypermarkets that are facing intense competition from many local and foreign brands. Active-Ingredients is thinking of using a...
-
Nan-Clean is a newly developed cleaning liquid for milk bottles that uses special enzymes to remove dirt effectively. Nan-Clean has been positioned as a product that is made of natural ingredients...
-
Why do sample surveys have predetermined margins of error?
Study smarter with the SolutionInn App