From jacobson@math-cs.cns.uni.edu Tue Dec 16 20:52:47 2003 Date: Tue, 16 Dec 2003 20:47:50 -0600 (CST) From: Mark Jacobson To: 810-030-01@uni.edu Subject: [810-030-01] Final Exam on Thursday at 10 a.m. Hi 030 VB students, The previous practice tests and old quizzes and exams are still great to study over in preparing for the final exam. Not on the old exams and quizzes and suggested practice questions would be the following couple of topics: 1. Write a function that adds two numbers, or write a function that reverses the letters in a word or phrase, or write a function that creates the pigLatin translation of a word. See http://www.cns.uni.edu/~jacobson/c030.html and link to http://www.cns.uni.edu/~jacobson/030/Functions.htm for an extensive review of the December 4th functions lecture. Function reverseWord(oldWord) As String newWord = "" For i = Len(oldWord) To 1 Step -1 newWord = newWord & Mid(oldWord, i, 1) Next i reverseWord = newWord End Function Private Sub Form_Click() whatWord = InputBox("What word do you want to reverse?") Print whatWord & " reversed is " & reverseWord(whatWord) End Sub 2. Convert 117 from base ten decimal to binary. 3. Convert 10111011 from binary base 2 to decimal base ten. 4. What is the base ten value of the base 16 hexadecimal number AE? 5. http://www.cns.uni.edu/~jacobson/StudyGuide030Fall2002.html including the link to: http://www.cns.uni.edu/~jacobson/030/studyGuideDB.txt but ignore practice item number 8 from that link. We did not cover that database technique enough. http://www.cns.uni.edu/~jacobson/030/midtermJuly10th.txt http://www.cns.uni.edu/~jacobson/030/email030LoopsStrings.txt 6. Answer questions 6 through 12 on this by looking over the links to Ghosbusters and problem solving and waggle dancing bees. http://www.cns.uni.edu/~jacobson/030/finalExamSummer2000.htm Note that questions 6 through 12 are multiple choice, except for #6 is fill in the blank with: Understand the problem - Phase 1. Develop a plan or algorithm - Phase 2. Translate the plan into code - Phase 3. Test and debug the code (VB program) - Phase 4. 1. Understand it. 2. Plan it. 3. Code it. 4. Test and debug it. See the following two links: http://www.cns.uni.edu/~jacobson/ghost.txt http://www.cns.uni.edu/~jacobson/waggle.txt All the above links mentioned in this are available at the class web page: See http://www.cns.uni.edu/~jacobson/c030.html Obviously, studying your old notes and handouts and your old quizzes and exams from this semester will be useful too. The final exam will be mostly very similar to the past test and quizzes we have had this semester and previous semesters and summers. See you Thursday at 10 a.m. in Wright 105. Mark