subject

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:

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 18:00, abbygriffin2009
Martha is a healer, a healthcare provider, and an experienced nurse. she wants to share her daily experiences, as well as her 12 years of work knowledge, with people who may be interested in health and healing. which mode of internet communication can martha use?
Answers: 3
image
Computers and Technology, 23.06.2019 14:30, soapai
Select the correct answer. sean is a computer programmer. he has programmed an application for toddlers that plays nursery rhymes. however, a logic error has occurred in the program. which problem is a likely consequence of the error? a. the program crashes every time the user wants to play the nursery rhymes. b. the program crosses its buffer boundaries and overwrites an adjacent program. c. the program plays a different nursery rhyme than the one the user intended to play. d. the program shows different structures in its programming language code. e. the program introduces new viruses every time the user plays a nursery rhyme.
Answers: 1
image
Computers and Technology, 24.06.2019 00:30, petergriffin6772
Which boolean operator enables you to exclude a search term? a} not b} and c} or d} plus
Answers: 1
image
Computers and Technology, 24.06.2019 08:30, 5theth
Intellectual property rights are exclusive rights that protect both the created and the creation. ipr offers exclusively what benefits to the person or people covered by it
Answers: 3
You know the right answer?
Stripe Capital Stripe Capital lends our merchants funds in order to grow their businesses. In exchan...

Questions in other subjects:

Konu
History, 05.02.2020 09:50
Konu
Mathematics, 05.02.2020 09:50
Konu
Mathematics, 05.02.2020 09:50