Imagine you’re working on payments team. Customer subscribes to Products and is interested in exploring how much it’ll cost them to keep using the product for the rest of the year.
Your task is to develop a Cost Explorer that calculates the total cost a customer has to pay in a unit year. This means that at any day of the year they should be able to get a provisional report giving monthly/yearly cost estimates.
Cost Explorer should be able to provide a report of -
Monthly cost (Generate a bill for each month, including bill amount for future months for the unit year) -
Yearly cost estimates (for the unit year)
// Atlassian pricing plans -
[
{BASIC, 9.99},
{STANDARD, 49.99},
{PREMIUM, 249.99}
]
Follow up:
If there is trial period incoporate in calculation of bill
I was able write modularize code for it using design principle but could nt test or run it due to error. Are there any chances of getting selected for the next round?