write a PHP code for:
Everyday, the restaurant has a limited number of breads, vadas and samosas. The
restaurant needs to optimise orders in a way that they can generate maximum profit.
Vadapav needs two bread and a vada
Samosapav needs two bread and a samosa
Input:
First input is: no. of breads, no. of vadas and no. of samosas available in the
restaurant
Second input is: Price of Vadapav & price of Samosapav set by the restaurant
Output:
Maximum profit possible
Example:
Input:
9 2 3 (9 breads, 2 vada, 3 samosa)
10 15 (Rs.10 - Vadapav, Rs.15 - Samosapav)
Output:
55 (Maximum profit possible is Rs.55)
Answers
Answered by
11
Explanation:
Vadapav needs two bread and a vada
Samosapav needs two bread and a samosa
Input:
First input is: no. of breads, no. of vadas and no. of samosas available in the
restaurant
Second input is: Price of Vadapav & price of Samosapav set by the restaurant.
Answered by
4
Answer:
I don't have answers please help me
Similar questions
Math,
3 months ago
Math,
3 months ago
Math,
3 months ago
Social Sciences,
6 months ago
Social Sciences,
6 months ago
English,
1 year ago
Sociology,
1 year ago
Math,
1 year ago