From: IN%"Mark.Jacobson@uni.edu" "MARK JACOBSON" 12-JUN-2000 13:04:12.06 To: IN%"810-036-01@uni.edu" CC: Subj: C++ quiz, NOT on Tuesday... THERE IS NEW MATERIAL IN THIS NOTE THAT YOU DID NOT READ ON YOUR COBRA OR ACAD.UNI.EDU email. Hi C++ students, Today we had a hands-on class in Wright 112. Tommorrow will be the Wright 105 classroom again and we will have a quiz on Wednesday June 14th, instead of having it on Tuesday June 13th. Tommorrow there will be two goals: 1. Prepare you for fully understanding the programming assignment. 2. Prepare you for the quiz. Review the while loop and the hands-on C++ code that we did in the lab today. We basically worked on the while loop today and the classic problem of keeping a sum and a count and obtaining the average of a set of numbers. We also introduced the sqrt() function and the library. The #include statement is needed, if your program is going to use the sqrt() function. The output of the following statement would be 12 9 4 cout << sqrt(144) << endl << sqrt(81) << endl << sqrt(16); See page 111 of the textbook for a discussion of the sqrt() function and the library. We will probably start chapter 3 on Tuesday, so read section 3.1 Introduction pages 106-107 and section 3.2 Predefined Functions pages 107-115 to prepare for and to review lectures 7 and 8. Mark