Designing and implementing the software component


A healthy lifestyle advocacy group is aiming to build a bike sharing system within a medium size
metropolitan area. The group has signed a contract with a company to provide the bike sharing
technology and hardware (bike stations, bikes, network equipment, a server, and bike sharing software that automates the process of checking out and returning bicycles, and billing customers).
The docking station provides a limited number of bike parking spots, and is characterized by its location, bike capacity, and by real time number of bikes parked. Docking stations have computers running on them, credit card reader, and a networking module which allows it to be connected to the Internet. The fleet of bikes has also been purchased.
There are two ways a user can get access to the system:
1) Using her annual subscription ($70)
2) Buying day pass ($5)
Every ride under 30 minutes is free. User is charged $1 dollar for a ride between 30 and 1 hour, 3 dollars for rides between 1 hour and 2 hours and a flat rate of 7 dollars for any ride over 2 hours. The users who haven’t returned a bike within 10 hours are billed with a $50 fine.


Designing and Implementing the Software Component

Designing and coding the entire software system for the given case is a complex task. For the project you will be asked to design and implement a small component of the information system functionality.


Submit a Word document that includes the following elements:

Flow chart of the billing schema after completion of the ride, which will include including the subscription status check, and the price policy provided in the case description.

Assuming that subscription_status == 1 is an annual subscriber and subscription_status == 2 is a daily subscriber for the day stored in the variable day_subscribed and the current day stored in a variable now, pickup_time and drop_off_time are the times in minutes, write a Python code to describe subscription check and the price calculation for a single ride.