Project 2: Apples and Bananas

Project 2:  Variables 'apples' and 'bananas' have been initialized.    

apples represent the number of apples you buy.

bananas represent the number of bananas you buy.

"Apples cost 90 cents and bananas cost 95 cents.  If you buy one banana and one apple, you can pay 160 cents.  If you buy more than 6 pieces of fruit (in any combination of apples and bananas) each piece of fruit costs 60 cents.  If you buy more than 9 pieces of fruit (in any combination of apples and bananas), each piece of fruit costs 50 cents".

Task: Appropriately assign the value 'cost' that represents how much you will have to pay for your selection of apples and bananas.

**If your code works for 5 test cases in a row, you can enter your e-mail address.

Universal Computational Math Methods:

pow(5,2) returns 25.0

abs(-3.0) returns 3

sqrt(49.0) returns 7.0