Create an array of 12 structures to hold weather of yearl

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

Write a program that uses a structure to store the following weather date for a particular month:

Total Rainfall
High Temperature
Low Temperature
Average Temperature

The program should have an array of 12 structures to hold weather date for an entire year. When the program runs, it should ask the user to enter date for each month. (The average temperature should be calculated.) Once the date are entered for all the months, the program should calculate and display the average monthly rainfall, the total rainfall for the year, the highest and lowest temperatures for the year (and the months they occurred in), and the average of the monthly average temperatures.

Input validation: only accept temperatures within the range between -100 and +140 degrees Fahrenheit.

Below is how the code should look like.

Enter the following information:

Month 1

Total Rainfall:

High Temperature:

Low Temperature:

Average Temperature:

Month 2

Total Rainfall:

High Temperature:

Low Temperature:

Average Temperature:

Month 3

Total Rainfall:

High Temperature:

Low Temperature:

Average Temperature:

Month 4

Total Rainfall:

High Temperature:

Low Temperature:

Average Temperature:

Month 5

Total Rainfall:

High Temperature:

Low Temperature:

Average Temperature:

Month 6

Total Rainfall:

High Temperature:

Low Temperature:

Average Temperature:

Month 7

Total Rainfall:

High Temperature:

Low Temperature:

Average Temperature:

Month 8

Total Rainfall:

High Temperature:

Low Temperature:

Average Temperature:

Month 9

Total Rainfall:

High Temperature:

Low Temperature:

Average Temperature:

Month 10

Total Rainfall:

High Temperature:

Low Temperature:

Average Temperature:

Month 11

Total Rainfall:

High Temperature:

Low Temperature:

Average Temperature:

Month 12

Total Rainfall:

High Temperature:

Low Temperature:

Average Temperature:

Total Rainfall is:

Average Monthly Rain:

Average Monthly Average Temperature:

Highest Temperature:

Lowest Temperature:

Press any key to continue......

Reference no: EM13936418

Questions Cloud

Which type of immunity produces lifelong immunity : Outline the types of immunity? Which type of immunity produces lifelong immunity? Which type of immunoglobulin is present with this type of immunity?
Student employment services, ses : Student Employment Services, SES, is an organization dedicated to finding employment for newly qualified students. At the end of each academic year the company advertises its services to students graduating from local colleges and universities.
Are you in compliance with lcr : Your liquidity profile is comprised of $25 billion in U.S. Treasuries and $20 billion in Freddie Mac MBS. Are you in compliance with LCR?
Implement and control marketing strategies : A successful brand relies on the ability to plan, implement and control marketing strategies. You are to compile and present a marketing plan for your own business.
Create an array of 12 structures to hold weather of yearl : Input validation: only accept temperatures within the range between -100 and +140 degrees Fahrenheit.
Follow ieee or acm paper templates : 5 Pages or more, IEEE format for the paper, Try to have a suitable Title for the IEEE paper according to requirements. Make sure you include the OS listed plus the "others" Also, that all the 40 citations should be in the paper referenced. (5 onli..
What is the hedge ratio for the given transaction : You have a long position in Stock 1 and would like to hedge it using a three-month futures contract on Stock 2. A series of daily prices is provided below. What is the hedge ratio for this  transaction?
New emerging technology and its unique selling proposition : Give a detailed information on the new emerging technology and its unique selling proposition (USP). This should be supported by relevant research.
How did supreme court analyze foley implied contract claim : Why did the Supreme Court find that Foley was not able to establish his tort claim, and how was Foley's claim different from the claims in the Petermann andTameny cases? How did the Supreme Court analyze Foley's implied contract claim, and why did ..

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