DA24A_Lecture

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

Info iconThis 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
Background image of page 1

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

View Full DocumentRight 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?
Background 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
Background image of page 3

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

View Full DocumentRight Arrow Icon
Background 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

This note was uploaded on 08/05/2011 for the course H 192 taught by Professor Glimcher during the Winter '08 term at Ohio State.

Page1 / 4

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

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online