Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


A milk carton can hold 3.78 litres of milk. Each morning, a dairy farm ships cartons of milk to a local grocery store. The cost of producing one litre of milk is $0.38, and the profit of each carton of milk is $0.27. Write a C++ program that prompts the user to enter the total amount of milk produced in the morning. Then display the number of milk cartons needed to hold milk, the cost of producing milk, and the profit for producing milk.

Answer Posted / vikram

#include<iostream.h>
int main()
{
float a,b,c,d;

cout<<"enter the no.of litters produced n the morning";
cin>>a;
b=ciel(a/3.78);
c=a*0.38;
d=b*0.27;
cout<<"no.of cartons required are"+b;
cout<<"cost of produsing milk:"+c;
cout<<"profit is:"+d;
return 0;
}

Is This Answer Correct ?    26 Yes 53 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

. If employee B is the boss of A and C is the boss of B and D is the boss of C and E is the boss of D. Then write a program using the Database such that if an employee name is Asked to Display it also display his bosses with his name. For eg. If C is displayed it should also display D and E with C?

3266


What is the use of turbo c++?

1042


What is vectorial capacity?

1155


Why was c++ made?

1077


How many static variables are created if you put one static member into a template class definition?

1021


What is pointer to array in c++?

1139


How do you declare A pointer to a function which receives nothing and returns nothing

1219


What is anonymous object in c++?

1079


Mention the ways in which parameterized can be invoked. Give an example of each.

1045


Can the creation of operator** is allowed to perform the to-the-power-of operations?

985


Will c++ be replaced?

1038


What is an arraylist c++?

1203


What number of digits that can be accuratly stored in a float (based on the IEEE Standard 754)? a) 6 b) 38 c) An unlimited number

1253


What are the classes in c++?

1096


I want explanation for this assignment: how to connect mysql database using c/c++,please explain this detailly?

2060