subject

Using oop, write a c++ program that will indicate the number of days in a month the temperature was above average, below average, and at the average for the month of november. using an array to count the number of days above average, below average, and average, read in an input file named novtemps. txt that gives the temperature for each day for the month. the input file should be located in the current directory. if the temperature is above the average temperature, increment the count in the index of the array that holds the count for the days above average. if the temperature is below the average temperature, increment the count in the index of the array that holds the count for the days below average. if the temperature is equal to the average temperature, increment the count in the index of the array that holds the count for the days equal to the average temperature. when the end of file has been reached, display the count for the number of days above average, the number of days below average, and the number of days equal to the average. be sure to place variables within the private accessor area of the class. use a constructor to initialize the array elements to 0. no global variables
expert answer

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 13:00
Which of the following statements is false? a. a class can directly inherit from class object. b. if the class you're inheriting from declares instance variables as private, the inherited class can access those instance variables directly. c. a class's instance variables are normally declared private to enforce good software engineering. d. it's often much more efficient to create a class by inheriting from a similar class than to create the class by writing every line of code the new class requires.
Answers: 3
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. peter has launched a website that features baby products. however, clients often find they are unable to access the website because the server is down. which feature of cybersecurity should peter focus on for his website? a. data authenticity b. data privacy c. data availability d. data integrity e. data encryption
Answers: 3
question
Computers and Technology, 23.06.2019 17:00
What are the 12 colors of the spectrum called?
Answers: 1
question
Computers and Technology, 23.06.2019 23:30
Perform an online search about the booting process of a computer and list all the steps
Answers: 2
You know the right answer?
Using oop, write a c++ program that will indicate the number of days in a month the temperature was...
Questions
question
Mathematics, 29.11.2020 20:00
question
Biology, 29.11.2020 20:00
question
Mathematics, 29.11.2020 20:00
question
Mathematics, 29.11.2020 20:00
question
Mathematics, 29.11.2020 20:00
Questions on the website: 13722367