Question: 9. Pass By Reference, In the space below, give a function named split (). This function will take two double parameters passed by address,

9. Pass By Reference, In the space below, give a function named split (). This function will take two double

9. Pass By Reference, In the space below, give a function named split (). This function will take two double parameters passed by address, a and b, and an integer percentage, p, passed by value. The job of the function will be to decrease the value of a by p percent and set b to p percent of a. For example, if called with values 300.0, 50.0 and 10, the function will change a to 270.0 (300.0 decreased by 10 percent) and set b to 30.0 (10 percent of 300.0) (7 pts)

Step by Step Solution

3.39 Rating (161 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

It seems that no images have been att... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!