Due Date: Monday February 19 by the end of the lab session
Educational goals of this lab - verify that every student can
(80 points) Description of the Problem:
Sample: How many classes: 4 Grade? A Credit hours? 5 Grade? B Credit hours? 3 Grade? A Credit hours? 3 Grade? C Credit hours? 4 Total Quality Points 49.0 Total Credit Hours 15.0 Grade Point Average = 3.27
(20 points) Problem #1: Design
0. Prolog 1. initialize ______________ and _____________ 2. ask user for ________________ 3. for each class 4. input ___________ and _______________ 5. convert letter grade to quality points using ____________ (control structure) 6. add quality points * credit hours to qptot 7. add credit hours to _________ 8. if crtot is ____________, divide qptot by crtot to get gpa otherwise it's a 0 9. output _______, ______ and gpa 10. check gpa for special cases: _____________ and ________ using ____ (control structures)
(12 points) Problem #2: Complete a test plan.
|Description||Inputs (numgrades, letter, hrs, ...)||Expected output|
|Normal (All A's)||3,A,3,A,3,A,3||Total QP 36.0, Total Cr 9.0, GPA 4.0|
(48 points) Problem #3: Complete the program.
Log off properly - you don't want your account misused by someone else!
Remember NOT to leave files on the local hard drives in this lab or anywhere else on campus! Make sure you save your projects onto a portable storage device you take with you!