Computers and Technology

Stripe Capital Stripe Capital lends our merchants funds in order to grow their businesses. In exchange for these funds, instead of a traditional interest over time model, Stripe charges a fixed loan fee on top of the original loan amount. To get back the investment, some percentage of the merchant's future sales goes towards repayment, until the loan fee and original loan amount are repaid. In this problem, you'll be building a bookkeeping system for a modified version of Stripe Capital. This bookkeeping system will have 3 API methods: 1. The merchant can create a loan. 2. The merchant can pay down a loan manually. 3. The merchant can process transactions, from which some fixed percentage of the processed amount goes towards repayment. Your Task Your Task 1. Evaluate each line of stdin, performing the actions as described by documentation below. o Each line will always begin with an API method, followed by a colon and space (: ), followed by fields of the API method as a query string. 2. After evaluating all actions, print out a list of $merchant_id, $outstanding_debt pairs, skipping over merchants who do not have an outstanding balance. This list should be lexicographically sorted by the merchant ID. 3. Finally, print out the total amount (as an integer-number of cents) collected by Stripe in loan fees. Keep in mind:

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 11:00, tristina20
The isometric projection camera technique provides an illusion of perspective by using things like parallax scrolling to create the illusion of 3d in a 2d game
Answers: 3
image
Computers and Technology, 23.06.2019 11:00, jaygamer37
What is the name of the sound effect that danny hears
Answers: 1
image
Computers and Technology, 23.06.2019 20:30, maryanapritchak1829
If chris has a car liability insurance, what damage would he be covered for
Answers: 1
image
Computers and Technology, 24.06.2019 07:00, jordaaan101
Guys do you know sh27 cause he hacked me : ( pidgegunderson my old user
Answers: 2
Do you know the correct answer?
Stripe Capital Stripe Capital lends our merchants funds in order to grow their businesses. In exchan...

Questions in other subjects:

Konu
Arts, 29.09.2021 01:00
Konu
Chemistry, 29.09.2021 01:00
Konu
Mathematics, 29.09.2021 01:00