Thoughtworks C++ Program : Inventory Control System

can anybody write me a program on thoughtworks placement ques in c++
inventory control system.Two countries have inventory with 100 ipods in it. ipod is available in two countries brazil and argentina. in brazil it costs $100 and in argentina it costs $50. also in case if one countary imports from other extra $400 has to be paid per 10 units. the inventory of ipod availabe in each country is 100 units each. so you have to develop a program that show the optimized cost. for ex: you palce order for 10 ipods in brazil - it costs 100x10=$1000. in case u import from argentina it costs 10x$50+$400=$600. or if order is placed for eg.120 units 100 can be sold from the same country and the rest 20 has to be imported. that way u haveto check all the possible combination and show only the best one also the output should be in the format as : : ;

Replies

  • dinesh.cse.rbk
    dinesh.cse.rbk
    Hi it is v.syperb and realy intresting!
  • simplycoder
    simplycoder
    @divut: Kindly donot create multiple threads and spam the forum, Admins are surely not gonna like that.
  • Prasad Ajinkya
    Prasad Ajinkya
    Hint: It's actually a Linear Programming Problem. Given a function of Location (where you want the goods to be delivered), Goods Ordered (how many ipods are required), Goods in Argentina (availability) and Goods in Brazil (availability). You have to minimize the cost of Delivery.

    Do correct me if I am mistaken.
  • divut
    divut
    correct...it is
    thanks
  • priti00786
    priti00786
    hey can anyone write down the code for thought works Hotel Management question::

    A well renowned hotel has three branches in Miami. Namely x,y and z (Actually they gave names) .Each has two types of customers. Regular and Rewardee. Also each branch has its own ratings x is given a 3 star rating while y has 5 star rating and z has 4 star rating.
    Each hotel has specific rates for weekend and weekdays. x charges $100 for regular customers on weekdays and $120 on weekends While it is $90 for rewardee on weekdays and $95 on weekends. While z charges $195 for regular customers on weekdays and $150 on weekends. While its $120 for rewardee on weekdays and $90 on weekends. Now when the customer requests for a particular detail you need to find which hotel would yield the customer profit. In case of tie between hotels compare the ratings and provide the result.

    Input format:
    Regular:
    16Mar2010(sun), 19Mar2010(wed), 21Mar2010(Fri)
    Answer: (This is the format of the question but not sure about the values).

    and other one is:
    There is a rail road to different towns from one town. It is considered that the rail road is a one way because of budgetary issues. If there is city A and it has cities B and C cities connected by rail roads, it is not mandatory that A has direct rail road to both B and C. The route to C from A can be A to B and then B to C. The above scenario is depicted as a graph. The nodes are the towns and edges are the distances between them. The input given will be a graph and also the route to towns. The output must be the total rail road distance between the towns and if no route exists, it must say 'No Route exists'.
    Input:
    AB5, BC2, CD3, BE4
    Input: A-B-E
    Input: A-C-E
    Output: 9
    Output: No Route Exists
    (Similar to Dijkistra's algorithm in the form of railway stations and tracks).
  • 123_neha
    123_neha
    here is another program to write
    write a program that returns the direction and the position of the robot on the other planet from the earth

You are reading an archived discussion.

Related Posts

plz debug this....i need it ...plzz help... #include using namespace std; class swapping; { cout << "Swapping value of two numbers \n"; int firstnumber, secondnumber; public: void getdata (int...
ME a STUDENT of SOFTWARE ENGINEERING, I want to develop an operating system as my FYP, i.e. 2 years later inshaallah. Any One please guide me to the steps to...
[h=2] c++ program[/h] can anybody write me a program on thoughtworks placement ques in c++ inventory control system.Two countries have inventory with 100 ipods in it. ipod is available in...
Steve Jobs has resigned from Apple as CEO. He's written a resignation letter to all the people in Apple community. The complete text of Steve's resignation letter is avaialble in...
Feels great to wish CEan-cd a very happy birthday! 🎉 Have a blast friend!