 A C++ program is required that calculates the
amount in ringgit in your savings. Your savings
contains RM1, RM5, RM10 and RM50.
 How many inputs are required?
 How many outputs does the problem has?
 Write an algorithm (any type) that converts the input
into output Test the algorithm (without writing the
codes) for the following data:
 RM 1 = 5
 RM 5 = 3
 RM 10 = 7
 RM50 = 4
Exercise 4: Designing & Testing
C++ Programming: From Problem Analysis to Program
Design, Third Edition
1

Csc1100 exercise 4-design n-test

  • 1.
     A C++program is required that calculates the amount in ringgit in your savings. Your savings contains RM1, RM5, RM10 and RM50.  How many inputs are required?  How many outputs does the problem has?  Write an algorithm (any type) that converts the input into output Test the algorithm (without writing the codes) for the following data:  RM 1 = 5  RM 5 = 3  RM 10 = 7  RM50 = 4 Exercise 4: Designing & Testing C++ Programming: From Problem Analysis to Program Design, Third Edition 1