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...


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:



  • How many units the Reavers came into port with, and

  • How many pirates are on the ship, including Yondu and Quill


The program should then split the units and print out



  • Yondu's share

  • Peter's share

  • The Crew share

  • RBF Amount

Feb 03, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here