CrazyEngineers Archive
Old, but evergreen and popular discussions on CrazyEngineers, presented to you in read-only mode.
@divut • 24 Aug, 2011 • 1 like
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 : : ;
@dinesh.cse.rbk • 26 Aug, 2011 Hi it is v.syperb and realy intresting!
@simplycoder • 26 Aug, 2011 @divut: Kindly donot create multiple threads and spam the forum, Admins are surely not gonna like that.
@Prasad Ajinkya • 26 Aug, 2011 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 • 27 Aug, 2011 correct...it is
thanks
@priti00786 • 06 Sep, 2012 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 • 06 Sep, 2012 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
10k views

Related Posts

@Ankita Katdare · Dec 6, 2013

Banking on the fact that after Microsoft's Nokia Acquisition, the latter would no more having the driver's seat control on the Windows 8 smartphones, Samsung seems to be building its...
4.9k views

@Sanyam Khurana · Oct 23, 2013

BBM has been already rolled out for Android and IOS, but it looks like BBM is offered only to people having Android 4.0 (ICS) + Versions, Gingerbread is not so...
8k views

@NAVATHE SACHIN · May 24, 2013

what is the abbreviation of java in programming language?
8.9k views

@Kaustubh Katdare · Jun 14, 2013

Say hello to Google's Project Loon - a project that aims to provide Internet all over the world via a ring of balloons floating in the sky, about 20 kilometers...
8.9k views

@Manish Goyal · Nov 21, 2009

Today there was my internal viva of dbms in which i was asked 3 questions that i would like to share with you 1 what is partial key? 2 what...
7.6k views