Professional Documents
Culture Documents
Java Problem Statement1
Java Problem Statement1
- Direct to home (D2H) operator SatTV wants you to design a software system for
its customers.
- User should have an initial balance of 100 Rs. in the account.
- User can view the current subscription and balance
- User can recharge account with any positive amount.
- SatTV offers multiple channel packages (called base packs henceforth). Base
packs available to purchase are Gold and Silver, which comes with certain
channels.
- User can view the details of available packs and the channels.
- Whenever a user subscribes to the base pack, the base pack price will be
deducted from the account balance.
- User should receive a 10% discount on all the base packs if the duration is at
least 3 months.
- User can add the individual channel into the current subscription on which
amount will be deducted from the account balance.
- Whenever the back pack is subscribed or if any channel is added in the base
pack, notifications should be sent through email and/or SMS if the user has
updated email and/or phone number.
Notes:
1. Obviously we don’t expect from you to develop real Email and SMS
notification features. You can show the message on the console that Email
and SMS are sent successfully. Although attempt design in such a way that
in future you should be able to integrate the real email/SMS functionality
without touching any other parts of the system at all.
2. The list of packages, channels and prices are shown directly in sample
input/output.
Please do not hesitate to reach out to us if you have any questions about any of the
points :)