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.
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.
|