///////////////////////////////////////////////////////////////////// // CS177/477, Spring 2000 // // Using class member functions for separate tasks. // // This program reorganizes the code for the hot dog problem // // Roger Hartley // ///////////////////////////////////////////////////////////////////// #include using namespace std; // declare a class to encapsulate the variables for the problem and // functions the operate on them class Picnic { private: /* declare variables here */ public: void input() { /* put your code in here*/ } void calculate() { /* put your code in here */ } void output() { /* put your code in here */ } }; int main() { Picnic picnicObject; // create a picnic picnicObject.input(); // input the values for hot dogs and children picnicObject.calculate(); // calculate hot dogs per child and left overs picnicObject.output(); // display the results return 0; }