Assign4

advertisement
CSIS 10A
Assignment 4
Read: Hennefeld, Chapter 5
Select 10 Points from below
Name____________________________
Item
Exercises
Ch 4 Exercises 1dfgh, 2abcd, 4, 6ab, 8
Labs
Lab5Functions.cpp
Points
4
3
Ch 5 Programming Problems
(Hints available in Lecture Notes)
Problem 10 a,b,c,d in one file
Prob10.cpp (in code directory)
Problem 18
kg2lboz.cpp
Problem 22
delivery.cpp
Challenges
Problem 24
drawCards.cpp
Problem 29 time.cpp or Problem 30 maxLoan.cpp
(use at least 2 functions to solve these)
Total Possible
10 points + 1 point extra credit
2
2
2
4
11
11 max
PROGRAM TEST PLANS
½ pt off for each test case that does not work
after basic program works add a for loop (shown last week) to run multiple cases
Problem 10
Prob10.cpp (starting shell included in code directory)
Test Case
Input Data
Expected Result
1
enter 2 values: 5 6
min is 5
enter hours and rate: 10 50
pay is 500
enter hours and rate: 50 10
pay is 550
enter a test score: 95
grade is A
-------------------------------Name:
J. Student
Age:
23
Semester:
Spring 06
Problem 18
Test Case
1
2
3
kg2lboz.cpp
Input Data
1
3.3
5
(see powerpoint slides)
Expected Result
2 lb 3 oz
7 lb 4 oz
10 lb 15 oz
Problem 22
Test Case
1
2
3
delivery.cpp
Input Data
10
20
25
Expected Result
$3.00
$3.50
$4.50
Download