1. Function header: double commission(double rate, double amount)
Function Call:
commission( );
commission(0.5,100);
commission(0.5,100,20);
commission(0.5);
cout<
2. Function header: bool yaGenap(int N)
Function Call:
yaGenap( );
yaGenap(1);
yaGenap(10);
yaGenap(1.5);
cout<
3. Function header: void cetakMessage(String msg, int N)
Function Call:
cetakMessage( );
cetakMessage("hello",5 );
cetakMessage(5,"hello" );
cout<
B. Implement the following functions.
1. Computing a sales commission, given the sales amount and the commission rate.
2. Testing whether a number is even, and returning true if it is.
3. Printing a message a specified number of times.
4. Computing the monthly payment, given the loan amount, number of years, and annual interest rate.
No comments:
Post a Comment