The problem is to compute how many units each person gets and how how much goes to the RBF. A unit cannot be split, so if some calculation yields a number that contains a fractional part, you can only give that person the integer part of the value. For example, if your program computed the captain's share as 25.67 units, you could only give him 25 units,not25.67 units.Warning:Alwaysround down, NOT up. Simply drop the fractional part, but don't lose any units from the overall total amount.
It should ask a user for two pieces of information:
The program should then split the units and print out
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here