A company sells ipods online. There are 100 stocks maintained at
Argentina and Brazil. A single ipod costs $100 in Brazil and $50 in
Argentina. The cost of exporting stocks from one country to the other
will cost $400 per 10 blocks. The transportation is always done in the
multiples of 10. Calculate the minimum cost for purchasing the given
no of units. Assume that for each transaction, the available stock in
each country is maintained to be 100.

Input and output format:

Input:

The country from which the order is being placed;
No of units.
Output:

Minimum costs;
No of stock left in Brazil;
No of stock left at Argentina
Sample Input and output:

In:     Brazil:5
Out:    5000:95:100

In:     Brazil:50
Out:    4500:100:50
How that second i/p and o/p came to this program and how can we handle
i/p like this:

Note:
Your solution should consist of:
    1. List of classes and methods.
    2. Write your code using any OO supporting Language.
    3. Your design should be "Open for Extension and Closed for
Modification"

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to