This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: fout << "" ; for ( star; star > 0; star) //Displays start representing fish caught in each lake fout << "*" ; fout << endl; cin >> fish; } average = totalfish / lakes; fout << endl << setw(10) << "Number of values:" << setw (14) << lakes << endl; fout << setw(10) << setprecision (4) << "Average number of fish:" <<setw (8) << average << endl; fout << setw(10) << "Maximum number of fish:" <<setw (8) << max << endl; fout << setw(10) << "Minimum number of fish:" <<setw (8) << min << endl; fout.close(); return 0; } Steve Carr ********** ************ *************** ***** Number of values: 4 Average number of fish: 10.5 Maximum number of fish: 15 Minimum number of fish: 5...
View
Full
Document
This homework help was uploaded on 04/18/2008 for the course COS 220 taught by Professor Roberts during the Spring '08 term at University of Maine Orono .
 Spring '08
 Roberts

Click to edit the document details