Each Sunday, a newspaper agency sells w copies of a special edition newspaper for Rs.x per copy. The cost to the agency of each newspaper is Rs.y. The agency pays a fixed cost for storage, delivery and so on of Rs.100 per Sunday. The newspaper agency wants to calculate the profit which it obtains only on Sundays. Can you please help them out by writing a program to compute the profit if w, x, and y are given.
Answers
Answered by
13
Answer:
Profit = wx - (100 + wy)
Step-by-step explanation:
Let us write the mathematical model for the problem
Total number of newspaper sold on SUnday = w
Cost per copy = x
Total amount obtained = x * w;
The cost to agency for each newspaper = y
Cost to agency for selling w newspaper = y * w
Cost incurred by agency on selling newspaper on Sunday = 100
Profit = Total amount gained - total cost incuured
Profit = wx - (100 + wy)
Answered by
21
Answer:
#include<iostream>
using namespace std;
int main()
{
int n,w,x,y,z=100;
cin>>w>>x>>y;
n=(w*x)-(w*y)-100;
cout<<n;
}
/*
Input (stdin)
1000
2
1
Output (stdout)
900
*/
Step-by-step explanation:
Similar questions