Create a class named weatherreport

Assignment Help Basic Computer Science
Reference no: EM131396101

Create a class named WeatherReport that holds a daily weather report with data members such as dayOfMonth, highTemp, lowTemp, amountRain, and amountSnow. The constructor initializes the fields with default values: 99 for dayOfMonth, -9999 for highTemp, 9999 for lowTemp, and 0 for amountRain and amountSnow. Include a function that prompts the user and sets values for each field so that you can override the default values. Instantiate 30 WeatherReport objects and, in a loop, prompt the user for a month's data.

At the end of the month, a month-end WeatherReport object is created. Initialize the object with default values; then use a friend function to store the high temperature, low temperature, and rain and snow totals for the month in the object. The friend function takes two WeatherReport objects-the summary object and one day's object-and it returns an updated summary object. If the day's high temperature is higher than the summary object's high, then replace the summary high. If the day's low temperature is lower than the summary object's low, then replace the summary low. Accumulate rain and snow in the summary object. Write a main()function that creates a month-end weather report from the 30 daily reports. Save the file as WeatherReport.cpp.

Reference no: EM131396101

Questions Cloud

Exchange rate effects on industry : Using shifts in supply and demand curves, describe how a change in the exchange rate affected your industry. Label the axes, and state the geographic, product, and time dimensions of the demand and supply curves you are drawing.
How given results help in deciding about 12 disputed papers : In each passage they counted the frequency of certain words. The results for the word by are shown in the table. Is by used with significantly different frequency by the two writers? Explain how these results help in deciding about the 12 disputed..
Predict the impact on profitability in both situations : Compare the primary costs involved in cleaning up the water immediately (and thus confessing)versus hiding your culpability now and possibly paying more in the future. Predict the impact on profitability in both situations.
Derive the correlations : Derive the correlations between P* and Y, and Q* and Y. Discuss their signs. (Quantitative methods in Economics)
Create a class named weatherreport : Accumulate rain and snow in the summary object. Write a main()function that creates a month-end weather report from the 30 daily reports. Save the file as WeatherReport.cpp.
Derive the implicit function rule : Derive the implicit function rule. (Quantitative methods in Economics)
Is given problem one of independence or of goodness of fit : Is by used with significantly different frequency by the two writers? Explain how these results help in deciding about the 12 disputed papers.
Create a friend function that displays a customer number : Create a friend function that displays a customer number and the customer's city, state, and zip code. Write a brief main()function to test the classes and friend function. Save the file as Customer.cpp
Started a printing business in duluth : Penelope has recently started a printing business in Duluth. She had to pay a fee to obtain a trade license from the Minnesota government and took a loan from the local bank to purchase inkjet printers, laser printers, and screen printers.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Perform name resolution for other devices connected

Link-Local Multicast Name Resolution (LLMNR) (defined by RFC 4795), is a protocol based on the DNS packet format. LLMNR allows IPv4 and IPv6 network nodes to perform name resolution for other devices connected to the same local link.

  Comp. literacy quiz

Need answers in 6 hours, no excuses please. 90% will earn 5 star rating.

  Successful project manager

Year 2022, you are a successful Project Manager and have recently hired a new internee (who haven't taken software engineering course yet) to strengthen industry-academia linkage. One day, the internee enters to your office and says "Why our cust..

  Create the bode plot for the system, and find gm and pm

Compute the sensitivity function and plot its magnitude frequency response.

  Explain the concepts of expansion and recession

1. Define business cycle and explain the concepts of expansion and recession 2. Identify (plot out) using Gapminder World ( https://www.gapminder.org/world/ )the business cycle for the U.S. and any other country of your choice (in the same graph)...

  Children internet protection act

The Children's Online Privacy Protection Act (COPPA) and the Children's Internet Protection Act (CIPA) are both intended to provide protections for children accessing the Internet. However, they both have had some opposition.

  Testing is so essential to the development of a new system

Discuss why testing is so essential to the development of a new system; list the different types of testing that can be completed and why each one is critical. Can testing be overlooked to speed up the development effort?

  List the software applications that should be purchased

List the software applications that should be purchased. Include the training courses that Bill should attend to gain basic skills in the software packages you recommend

  Going abroad with engineers

You supervise 12 engineers. Their formal training and work experience are very similar, so you move them around on different projects. Yesterday, your manager informed you that an overseas affiliate has requested four engineers to go abroad on ext..

  Decision support system scenario analysis

Assumption: Your Company was able to purchase major holdings in FaceTalk. As a result of the stellar work of your committee, all of you were given big bonuses at the end of the 4th quarter.

  Depends on the wavelength distributions

We now understand how to predict on a physical basis the energy, which reaches the eye. This depends on the wavelength distributions of the emitted, reflected, or transmitted light

  Prove that the number of augmenting paths needed

Prove that the number of augmenting paths needed by any implementation of the Ford-Fulkerson algorithm

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