Write a program that analyzes a months worth of temperatures

Assignment Help C/C++ Programming
Reference no: EM13886198

Project Summary

Write a program that analyzes a month's worth of temperatures.

Instructions:

Read 30 temperatures (ints) from a file named "temperatures.txt" representing the high temperature for the last 30 days. The temperatures will be separated by white space in the file. Store the values from the file into an array. Do not sort the array.

Provide a menu for the user to choose which statistics they want.

The user should be able to choose any of these functions until they enter X to exit:

- O Output the temperatures, 10 per line.
- H Calculate the highest temperature
- A Calculate the average temperature to one decimal place
- N Count the number of days that the temperature was above a value entered by the user. For example, if the user enters 70, you would count how many temperatures were above 70.

Implement the menu using a switch statement inside a while loop.

The program should work for any file containing 30 temperatures.

Reference no: EM13886198

Questions Cloud

Estimate the maximum velocity in the pipe : Water at 20-C flows in a 10-cm-diameter smooth horizontal pipe at the rate of 0.004 m3=s. Estimate the maximum velocity in the pipe and the head loss over 40 m of length. Use the power-law velocity distribution.
Analyze the new system and determine the design issues : Analyze the new system and determine the design issues with this new system.
Calculate torque and power required to rotate inner cylinder : A 3-cm-diameter cylinder rotates inside a fixed 4-cm-diameter cylinder with 40-C SAE-30 oil filling the space between the 30-cm-long concentric cylinders.
Briefly discuss how the sun affects us here on earth : Briefly discuss how the Sun affects us here on Earth. Be sure to consider not only factors such as its light and warmth, but also how the study of the sun has led us to new understandings in science and to technological developments
Write a program that analyzes a months worth of temperatures : Write a program that analyzes a month's worth of temperatures. Provide a menu for the user to choose which statistics they want.
How did you meet expected and unexpected challenges : How unique was the context? How creative was your strategy? How did you meet expected and unexpected challenges and have you included all the relevant details? Is it interesting? Is it well written?
Estimate expected changes in the magnitude : Determine two researchable hypotheses based on your research problem. For each hypothesis, identify the independent, dependent, and control variables. Moreover, estimate expected changes in the magnitude and relations between the dependent and ind..
Estimate the force needed to move the cylinder : SAE-10 oil at 20-C fills the gap between the moving 120-cm-long cylinder and the fixed outer surface. Assuming a zero pressure gradient, estimate the force needed to move the cylinder at 10 m=s. Assume a laminar flow.
The united states worker abuse of developing countries : Prepare the annotated bibliography on this Essay - The United States Worker Abuse of Developing Countries

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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