i dont want to know the result,

i want to know the (outputs) and any other example similer to the quation to understand.

A milk carton can hold 3.78 liters of milk. Each morning, a dairy farm ships cartons of milk to a local grocery store. The cost of producing one liter of milk is $0.38, and the profit of each carton of milk is $0.27. Write a program that does the following:
Prompts the user to enter the total amount of milk produced in the morning
Outputs the number of milk cartons needed to hold milk (Round your answer to the nearest integer.)
Outputs the cost of producing milk
Outputs the profit for producing milk

Recommended Answers

As I read your recent post at https://www.daniweb.com/community-center/threads/515773/python it appears you do know how to output from python.

Be sure to mark solved in your solved posts.

Jump to Post

All 3 Replies

i have the answer in C++ but i only want to know the ((((outputs in pytion))))

The outputs should be the same no matter what language you code it in, at least if you code it correctly.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.