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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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