[Solved] my math is broken on TextView
The problem is here: double calcTipsPerHour = resultTotalHours / totalTips; This is currently doing 2 / 10 = 0.2. You want to do the reciprocal: double calcTipsPerHour = totalTips / resultTotalHours; This should also fix your waiter’s pay 0 solved my math is broken on TextView