iOS Object-Oriented Objective-C Diving Deeper - Classes, Properties and Methods Creating Methods!

Luis Paulino
Luis Paulino
Pro Student 1,779 Points

I'm really confused loooooool

Please help, I'm gonna keep working on the problem,but I think my problem is with multiplying 0.2 by the subtotal.
float subtotal=.08
  -(subtotal)calucateTip: subtotle*(0.2)

1 Answer

Arman Arutyunov
Arman Arutyunov
21,900 Points
-(float)calculateTip:(float)subtotal {
  return subtotal * 0.2;