How to write a program for finding out item price when total number of items, total of number of items price and profit gained | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to write a program for finding out item price when total number of items, total of number of items price and profit gained

I have been stressed thinking about it, this question seems very complicated to find the accurate price of each item when total number of items, total bill and profit is given

7th Sep 2020, 7:19 AM
Sreenesh
Sreenesh - avatar
5 Answers
+ 2
Can you share your code here Sreenesh? Maybe the problem be clearer with a code for review. You know how to share your code link right? well, just in case you didn't know 👇 https://www.sololearn.com/post/75089/?ref=app
7th Sep 2020, 7:24 AM
Ipang
+ 1
Lets wait for professionals answer this question
7th Sep 2020, 7:52 AM
Sreenesh
Sreenesh - avatar
0
Uh i don't have the code it was asked by my mentor
7th Sep 2020, 7:25 AM
Sreenesh
Sreenesh - avatar
0
I can give u a example such as if total number of items are purchased is 15 (15 items are purchased ) and total amount paid for 15 items is 300(300 was paid for 15 items) and profit gained by seller by selling those 15 items for 300 is 50 Now create a program to find the individual item price
7th Sep 2020, 7:30 AM
Sreenesh
Sreenesh - avatar
0
Bro if i divide 250 by 15 i get a single answer right? How can i get 15 items price like that?
7th Sep 2020, 7:45 AM
Sreenesh
Sreenesh - avatar