Click here to Skip to main content
12,895,801 members (47,283 online)
Rate this:
Please Sign up or sign in to 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 5-Aug-12 19:35pm
Updated 5-Aug-12 19:38pm
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.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

'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.
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)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170424.1 | Last Updated 6 Aug 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100