Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please use python to code. here is my starter module Yondu Udonta and his crew of space pirates arrive at the Iron Lotus after several

please use python to code. here is my starter module image text in transcribed
image text in transcribed
image text in transcribed
Yondu Udonta and his crew of space pirates arrive at the Iron Lotus after several weeks of plundering the high seas. Since the crew has been in space for nearly six months, they are ready for a night of celebration. Yondu doesn't want to divvy up the plunder just yet, so he gives each crew member other than himself and Peter Quill 3 units and sends them off to the Iron Lotus. (We're keeping the units simple for purposes of the problem, even though 1 unit is about $2.33.) After the crew has gone, he and Peter count what's left and decide how to split it up among the crew. Yondu takes 13% plunder, which he transfers to a hidden bank account. Yondu gives Peter 11% of the remaining units, which Peter transfers to his account. The next morning, the remaining units are divided evenly among all of the crew, including Yondu and Quill. Little do they know that Yondu and Quill have already taken a cut. If the remaining treasure can't be split evenly, the units left over are given to the Reaver's Benevolent Fund (RBF). 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, not 25.67 units. Warning: Always round 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 Qull The program should then split the units and print out Yondu's share Peter's share The Crew share RBF Amount Project Name: Author: Due Date: MM/DD/YYYY Course: CS1400-zzz Put your description here, lessons learned here, and any other information someone using your program would need to know to make it run. III def main(): II Program starts here. try: # (1) replace pass with your code pass except ValueError: print("Enter postive integers for reavers and units.") return if reavers

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Draw and explain a timing diagram for a PCI write operation.

Answered: 1 week ago