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

  Why you chose the number of wireless access points

Following your submission in the Week Two individual assignment, "Logical Network Diagram," the client approved your logical network diagram for their three.

  What is the impact of information technology in your daily

information technology is the process of using computers or computing devices to obtain and handle information and

  Implement a simulation using two queues

Implement a simulation, using two queues, one each for the planes waiting to take off and land. Landing planes get priority.

  Write a program that asks the user for a year

Write a program that asks the user for a year and computes whether that year is a leap year. Use a single if statement and Boolean operators.

  How many probes are involved when double hashing is used

About how many probes are involved when double hashing is used to build a table consisting of N equal keys?

  Create forms and reports using the skills learned in the lab

Your task is to create forms and reports using the skills learned in the lab. For now, we will not worry about authentication and security.

  How a first responder will identify and preserve evidence

the video South Tower Falls, Shot Front of Trinity Church, describe your concerns as a first responder. (For the purpose of your response assume that you do NOT know whether this is a chemical, biological, radiological, nuclear, or simple explosiv..

  Display a one pixel black border to the left of figures

Set the padding for figures to the equivalent of one capital M on all sides. Display a one pixel black border to the left of figures.

  List examples of action that might benefit from applying PKI

List three examples (other than those listed in the chapter) of everyday actions that might benefit from applying PKI.

  Creation of process mapping descriptions

INF80028 – Business Process Management - Swinburne University of Technology - Creation of process mapping descriptions using Business Process Modelling Notation

  What techniques can you use to identify improvements

What techniques can you use to identify improvements? Choose one technique and apply it to this situation- what improvements did you identify?

  Explain why modem block ciphers are designed

Explain why modem block ciphers are designed as substitution ciphers instead of transposition ciphers.

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