Question: write in C++ program Exercise #2 Number of Bottles: The capacity of a plastic bottle is 2.3 liters. The cost of filling one bottle with

 write in C++ program Exercise #2 Number of Bottles: The capacity
write in C++ program

Exercise #2 Number of Bottles: The capacity of a plastic bottle is 2.3 liters. The cost of filling one bottle with petrol is 1.7 and the selling price of one bottle is 2.5. Write a C++ program that prompts the user to enter the amount of petrol to be used, then calculates the number of bottles needed for that amount, the cost of filling all bottles, the selling price of all bottles, and the profit of selling all bottles. Sample Input/Output: Enter the petrol amount: 50 or 50 liters of petrol: The number of bottles is 22 The filling cost is 37.4 The selling price is 55 The profit is 17.6 Write your algorithms below

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 Databases Questions!