jbonanno icon

calculateVacationPrice.java

jbonanno | PRO | 06/18/17 07:25:58 PM UTC | 0 ⭐ | 253 👁️ | Never ⏰ | []
Java |

540 B

|

None

|

0 👍

/

0 👎

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package vacationprice;
 
/**
 *
 * @author j
 */
public class calculateVacationPrice 
{
   static  int mealPrice = 8;
   static  int weeklyPrice = 1000;
 
    
   
    
 
   public static double calculateVacationPrice(int weeksOnVacation, int peopleNum, int mealsNum)
    {
      
       double vacationPrice = (weeksOnVacation * peopleNum * weeklyPrice)+ (mealsNum*8);
          
        
       return vacationPrice;
   }
 
}

Comments