Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

Considers a list such as: ("2010","56","67") ("2009","76","68") ("2007","66","69") where:

Considers a list such as:

("2010","56","67")

("2009","76","68")

("2007","66","69")

where:

the first string represents the year

the second represents life expectancy for men

the third represents life expectancy for women

Write a function in SCALA that takes the gender, birthday, and current year, and checks to see if person would be alive this year by outputting a true or false statement. 

for example:

def (gender:String, bday:Int, currentYr:Int):Boolean

No mutable variables are allowed.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question