''' Purpose: better experience functional development Email id: Email id: Pledge: All effort for this assignment has been done as team and when both the driver and navigator are present and working together ''' # necessary import import math # pi assistance def beans( a, b, v ) : ''' Function beans( a, b, v ): returns an estimate of number of beans in a jelly bear jar of volume v, where the beans are on average a in length and b in height. Driver: Navigator: ''' pass # -------------------------------------------------------------------- def manhattan_distance( a1, s1, a2, s2 ) : ''' Function manhattan_distance( a1, s1, a2, s2 ): returns the approximate distance in miles between a person at the corner avenue a1 and street s1 in Manhattan and a person at the corner of avenue a2 and street s2 also in Manhattan. Driver: Navigator: ''' pass # -------------------------------------------------------------------- def relate( x, y ) : ''' Function relate( x, y ): returns 'comes before', 'is equal to', or 'comes after', depending on the alphabetical relationship between strings x and y . Driver: Navigator: ''' pass # -------------------------------------------------------------------- def youngest( y ) : ''' Function youngest( y ): returns the youngest acceptable integer age for a y-year old to date; i.e., the age must be at least seven years older than half of a y-year old Driver: Navigator: ''' pass # -------------------------------------------------------------------- def is_dateable( y1, y2 ) : ''' Function is_dateable( y1, y2 ): returns True or False whether a y2-year old is an acceptably-aged date for a y1-year old. Driver: Navigator: ''' pass # -------------------------------------------------------------------- def mutually_dateable( y1, y2 ) : ''' Function mutually_dateable( y1, y2 ): returns True or False whether both a y2-year old is an acceptably-aged date for a y1-year old and vice-versa. Driver: Navigator: ''' pass # -------------------------------------------------------------------- def check_out( dataset, v ) : ''' Function check_out( dataset, v ): returns a list whose elements are the number of occurences of v for the corresponding row of the dataset Driver: Navigator: ''' pass