// On my honor: // // - I have not discussed the C++ language code in my program with // anyone other than my instructor or the teaching assistants // assigned to this course. // // - I have not used C++ language code obtained from another student, // or any other unauthorized source, either modified or unmodified. // // - If any C++ language code or documentation used in my program // was obtained from another source, such as a text book or course // notes, that has been clearly noted with a proper citation in // the comments of my program. // // - I have not designed this program in such a way as to defeat or // interfere with the normal operation of the Curator Server. // // Pledge: On my honor, I have neither given nor received unauthorized // aid on this assignment. // // Lloyd Lashbaugh // // Programmers: N.D., C.W. & M.H. // Modifier: Lloyd Lashbaugh // Course: CS1044 // Compiler: Microsoft Visual Studio .NET 2003 // Platform: Microsoft Windows XP [Version 5.1.2600] // Date: Sep. 19, 2006 // #include #include using namespace std; int main( ) { ifstream rainbow; // input file stream ofstream heights; // output file stream double distance, // Distance to rainbow (miles) heightMain, // Height of the main rainbow (miles) heightSecondary; // Height of the secondary rainbow (miles) rainbow.open("rainbow.dat"); heights.open("heights.dat"); heights.setf(ios::fixed, ios::floatfield); heights.setf(ios::showpoint); heights << "Lloyd Lashbaugh" << endl; heights << "Rainbow Heights (in miles)" << endl; heights << " " << endl; rainbow >> "Miles to rainbows:"; rainbow.ignore(200, '\n'); heights << " Rainbow Secondary Distance" << endl; heights << "---------------------------------------------" << endl;