import java.util.Scanner ;
class ChiliToGo
{
public static void main
( String [ ] args
) {
final int PRICE_FOR_ADULT = 7 ;
final int PRICE_FOR_CHILD = 4 ;
int adultMeals;
int childMeals;
Scanner scanner
= new Scanner
( System .
in ) ;
System .
out .
print ( "Input the number of adult meals:" ) ; adultMeals = scanner.nextInt ( ) ;
System .
out .
println ( "Input the number of child meals:" ) ; childMeals = scanner.nextInt ( ) ;
int totalPriceAdult = adultMeals * PRICE_FOR_ADULT;
int totalPriceChild = childMeals * PRICE_FOR_CHILD;
int totalProfit = totalPriceAdult + totalPriceChild;
System .
out .
println ( "There are " + adultMeals
+ " adult meal(s)." ) ; System .
out .
println ( "There are " + childMeals
+ " child meal(s)." ) ; System .
out .
println ( "The total price of the meals is $" + totalProfit
) ; }
}
aW1wb3J0IGphdmEudXRpbC5TY2FubmVyOwoKY2xhc3MgQ2hpbGlUb0dvCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSAKCXsKCQlmaW5hbCBpbnQgUFJJQ0VfRk9SX0FEVUxUID0gNzsKCQlmaW5hbCBpbnQgUFJJQ0VfRk9SX0NISUxEID0gNDsKCQkKCQlpbnQgYWR1bHRNZWFsczsKCQlpbnQgY2hpbGRNZWFsczsKCQkKCQlTY2FubmVyIHNjYW5uZXIgPSBuZXcgU2Nhbm5lcihTeXN0ZW0uaW4pOwoJCQoJCVN5c3RlbS5vdXQucHJpbnQoIklucHV0IHRoZSBudW1iZXIgb2YgYWR1bHQgbWVhbHM6Iik7CgkJYWR1bHRNZWFscyA9IHNjYW5uZXIubmV4dEludCgpOwoJCQoJCVN5c3RlbS5vdXQucHJpbnRsbigiSW5wdXQgdGhlIG51bWJlciBvZiBjaGlsZCBtZWFsczoiKTsKCQljaGlsZE1lYWxzID0gc2Nhbm5lci5uZXh0SW50KCk7CgkJCgkJaW50IHRvdGFsUHJpY2VBZHVsdCA9IGFkdWx0TWVhbHMgKiBQUklDRV9GT1JfQURVTFQ7C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