{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

DA24A_Lecture - Third read from the files into the objects...

Info icon This preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
P. 1 Engineering H192 - Computer Programming Winter Quarter Gateway Engineering Education Coalition Daily Assignment A24 Use #include <iostream> using namespace std; When using these, use the following compile command g++ –o a24.out a24.cpp
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
P. 2 Engineering H192 - Computer Programming Winter Quarter Gateway Engineering Education Coalition Daily Assignment A24 class Month { private: int daycount, dhigh[31], dlow[31], davg[31]; float mavghigh, mavglow, mavgavg; char mname[10]; public: Month(); // Constructor function prototype _____ MonthlyAvgHigh(); _____ MonthlyAvgLow(); _____ MonthlyAvgAvg(); _____ DisplayValues(); }; What goes in the blanks?
Image of page 2
P. 3 Engineering H192 - Computer Programming Winter Quarter Gateway Engineering Education Coalition Daily Assignment A24 Some suggestions First, get the constructor and DisplayValues working Second, work on getting the files opened
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Third, read from the files into the objects Consider modifying DisplayValues so that it displays all the data for each day in the month If you show the values for each day neatly, consider leaving this feature in the final version of DisplayValues P. 4 Engineering H192 - Computer Programming Winter Quarter Gateway Engineering Education Coalition Daily Assignment A24 More suggestions Fourth, get MonthlyAvgHigh working Once it works, you can copy and paste it a couple times and change the function name and a couple variables and voila!. ..MonthlyAvgLow and MonthlyAvgAvg will be working, too Above alldo it in little piecesdon't try to get the entire program working at once. Many little pieces == fast; One big piece == slow...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern