ipl-logo

Ambiguity Of Number Of Kits Essay

547 Words3 Pages

Analysis: Step 1: We will take input from the user that how many cars he want, and the number of kits per cars. Step 2: After this we will add the number of kits and will check that do we have them in stock. Step 3: When we got the result that are we able to make the cars or not, we will decide that whether we can make cars or we have to make other cars. Step 4: If we don’t have the desired number of kits in inventory, we will check the profit to kit ratio of the cars, and will made those cars which are giving us highest profit. Step 5: We will save the number of kits that exceeded of our stock and later subtract them from the stock to check that how many cars can still be made. Step 6: We will calculate the price of every car with the kits available to confirm the maximum profit. …show more content…

The 1st ambiguity we can get is the price to kit chart, we have to make a chart that the car with n number of kits is of n*20 price etc. 2. If the kinds of cars have a very few difference of kits in them each car has 2 or 3 kits extra than the other one than it will be so difficult for us to decide that which car will give us profit. Assumptions: 1. Every car will differ from each other with 50 or 80 kits at least. i.e if the one car is of 20 kits other will be of 70 or 100 kits. 2. Price per 10 kits will be 20, so if the car is of 70 kits the price will be 140. 3. The car with the minimum kits will be cheaper and least preferable. 4. There will be three kind of cars A, B, C A will be of 20 kits, B will be of 70 and C will of 100 kits. Pseudo code Algorithm: Print (Number=Input no of cars you want) Print (A = Input cars of models

Open Document