Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions

Question

Why is the System Build Process an iterative process?

Answered: 1 week ago