Question: calcPrice ( double amount, int numChildren, boolean isMilitary ) - - calculate the price based on the following: if isMilitary is true, then apply a
calcPricedouble amount, int numChildren, boolean isMilitary calculate the price based on the following: if isMilitary is true, then apply a discount over the original amount if numChildren is more than then apply a discount over the original amount Apply a tax after all the discounts and return the result Use decimals with rounding
calcPrice false
calcPrice false
calcPrice true
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
