Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: (untagged)
There is a company which have started selling the ipods ONLINE . But they want to sell these ipods online at best price.
i) They have ipod Inventories at Brazil and Argentina. Each of the inventory can store only 100 ipods.
ii) ipods at Brazil are sold at 100$/unit and at Argentina they are sold at 50$/unit.
iii) after every order the stock at both brazil and argentina inventories are again back to 100 units.
iv) the no of ipods ordered should be only in multiple of 10.(i.e no of ipods ordered shouldnt be im number like 123 etc. )
v) the order placed should be either fullfilled completely or nothing
vi) if the order is placed like 120 ipods from brazil then the remaining ipods can be brought from the other inventory i.e.argentina.
but here shipping price of 400$ per 10 units is applied.
Posted
Updated 5-Aug-12 19:38pm
v2
Comments
Sergey Alexandrovich Kryukov 6-Aug-12 1:37am    
This is a forum where experts answer questions and give advice, not a site where someone does your work for you. Especially such a boring stuff.
--SA

1 solution

'Please help in coding' is a useless subject line. However, what you did was paste your homework. 'Please help' is only valid if you try to do it yourself.

Assume your teacher is not stupid and is googling his question. I assume Jiya Roy is your real name, and I therefore suggest you talk to your teacher via email RIGHT NOW so that he knows you admitted to cheating, instead of just finding out that you tried to cheat, and fails you outright. Your teacher is the one to talk to if you're doing a course and you're so clueless that you don't even know how to start this task.
 
Share this answer
 
Comments
Jiya Roy 6-Aug-12 1:53am    
its not my homework!!nd have no teacher tell anything!!
Christian Graus 6-Aug-12 1:55am    
I don't believe you. Where did this task come from, if it's not homework ? It looks like a classic homework task to me. If I am wrong, fine. Either way, we can't 'help' you learn by giving you the answer, you need to try to do this yourself. What sort of response were you hoping for ?
Jiya Roy 6-Aug-12 1:58am    
basic idea to go about it!
Christian Graus 6-Aug-12 2:03am    
You should ask your teacher, but, try drawing flowcharts to work out the steps in the logic, then turn them in to code.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900