Question: write a java program Problem A Jimmy and 4 of his friends are at the movies and he was asked to purchase the snacks. The

write a java program
Problem A
Jimmy and 4 of his friends are at the movies and he was asked to purchase the snacks. The prices are as follows:
popcorn: $5.75
candy bar: $1
soda: $1.50
water: $1
Calculate the price of buying p bags of popcorn, c candy bars, s sodas, and w waters.
They all agreed to split the price evenly, calculate the amount each person should pay.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!