CSIS 10A Assignment 6 Select 10 Points from below

advertisement
CSIS 10A
Assignment 6
Read: Hennefeld, Chapter 7
Select 10 Points from below
Due: Start of class, next week
Complete the problems in Lab6Loops.cpp for up to 11 points (1 pt Extra Credit)
When you are finished, print out the file and turn it in. Store this handout (and
graded labs) in your binder for future reference.
Problems 1 – 13 are worth 11 points. Challenge students may want to do 15 and 16
PROGRAM TEST PLANS
Problem 12 Temperature Table
Test Case
Input Data
No input
Expected Result (formatting counts!)
Fahrenheit
Celsius
-------------------32
0.0
34
1.1
.
.
.
.
100
37.8
Problem 13 Function Tester
Test Case
Input Data
Expected Result
assuming you use grade function from
Assignment 4 (Chap 5) Problem 10
1
Enter test average, -1 to quit:
55
Enter test average, -1 to quit:
87
Enter test average, -1 to quit:
-1
Problem 14 Cash Register
Test Case
Input Data
Item cost, -1 to stop:
1
5.50 11.25 3.99 -1
Grade for 55 is F
Grade for 85 is B
Done, thankyou
Expected Result
Subtotal: $ 20.74
Tax:
$ 1.81
Total:
$ 22.55
Download