Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
write in C++ program
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started