Compute the statistics requested

Assignment Help Computer Engineering
Reference no: EM132105028

Problem: A local amateur meteorologist has been recording daily high temperatures throughout a typical summer month.

He would like you to write a program to compute some statistics based on the data he has collected. He has placed the name of the month and each daily high temperature on a separate line in a file named "summer_temps.txt".

The high temperatures are in order so that the first one is for the first of the month, the second is for the second day, and so on. The statistics that the meteorologist would like for you to compute in your program are:

The average daily high temperature for the entire month.

The number of days over 100 for the month.

The maximum temperature for the month and on what day it occurred.

Input: All of the input will come from a file named "summer_temps.txt". The temperatures may have fractional parts, like 99.87. Your program should also test for file open errors.

Processing: The data must be stored in an array. Compute the statistics requested above. Use a function for each task as well as a function to read in the data (we will write that in class).

Output: Display the statistics to the screen, labelled, and with the temperatures formatted to 1 decimal place.

summer_temps.txt input values

June 88.9 90.6 94.3 77.7 80.5 88.9 90.2 92.3 94.5 96.7 99.8 100.3 101.7 88.9 92.7 94.6 99.8 98.3 101.3 102.2 94.3 77.7 80.5 88.9 90.2 92.3 94.5 96.7 99.8 89.7
Please show me the code and add note as you solving this program. also include input value.

Reference no: EM132105028

Questions Cloud

What are the asymptotic complexities of the two algorithms : You have a problem P that you must solve. You have worked out two different divide and conquer algorithms that solve it.
What is the forecasted sales revenue : If budgeted production is 14000 ?shelves, what is the forecasted sales revenue from the? shelves?
Provide a brief overview of the proposed product concept : Assessments Brief - MKT60010 Marketing Management - Prepare a scenario forecast for future demand-Paint a picture - Use your own insights
Maintain the same level of net income : How many hammers will have to be sold in June to maintain the same level of net income?
Compute the statistics requested : The data must be stored in an array. Compute the statistics requested above. Use a function for each task as well as a function to read.
Budgeted cash payments for march are : Lark Corp's direct materials budget shows total cost of direct materials purchases for January $250,000, February $300,000 and March $350,000.
How much is swifty break-even point : Swifty Corporation sells a product w a contribution margin of $12 per unit, fixed costs of $223200, and sales for the current year of $260000.
Simulate the actions taken by the logging and recovery : For the actions listed below, show Transaction Table (XT) and Dirty Page Table (DPT) after each action.
How much is sheridans contribution margin ratio : Sheridan Company has a product with a selling price per unit of $200, the unit variable cost is $30, and the total monthly fixed costs are $300000.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Privacy data policy in your companys data classification

The customer privacy data policy in your company's data classification standard requires encryption in two places

  Make a memo which lists and in brief explains the main

as manager of networks and computing operations for fashion land a retailer of womens clothing and accessories you have

  Implementing change in logisim to the simplified singlecycle

Implementing the changes in Logisim to the simplified singleCycle.circ file I have provided. Modifying the standard datapath diagram to show the new components.

  Who are the influential users in each of the two samples

Who are the influential users in each of the two samples? Compare the list of influential users in the two samples to detect loyal users.

  What fsms are able to describe

You don't need to go into all the details. Rather, you should point out what FSMs are able to describe and where they fail to capture the desired requirements.

  Implement a global eworksheet system to track attendance

Implement a global eWorksheet system to track attendance and work-hours for all associates across its global locations - Typical challenges/risks you foresee in the quality of project deliverables and the risk njanagement plan.

  Define what is meant by a relationship in a data model

Define what is meant by a relationship in a data model. How should a relationship be named? What information about a relationship should be stored in the CASE repository?

  Write a program that draws a clock face with a time

Write a program that draws a clock face with a time that the user enters in two text fields (one for the hours, one for the minutes).

  Design an algorithm

Design an algorithm and use it to write a Python program that allow the user to reads the contents of the data file into a list. The program should then loop, to allow a user to check various numbers against those stored in the list. The loop shou..

  Define why it is suggested that for security reasons

Since many commercial APs have the SSID broadcast option enabled by default, so clients may easily detect the presence of an AP. APs are also configured as DHCPs and Firewalls.

  Write an if-else statement that output word warning provided

Write an if-else statement that outputs the word Warning provided that either the value of the variable temperature is greater than or equal to 100.

  Create a new user in the finance organization unit

Create a new user in the Finance Organization Unit using power shell command - Create the Global Security Groups

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd