Posts

Showing posts with the label Company Policy Program

Company Policy Program

The policy followed by a companty yo process customer orders is given by the following rules:  (a)If a customer order quantity is less than or equal to that in stick and his credit is OK,supply his requirment.  (b)If his credit is not OK do nit supply.Send him an intimation.  (c)If  his credit id OK but the item in stick is less than his order,supply whit is in stick.Intimate to him the date in which the balance will be shipped. #include #include void main(void) {  clrscr();  long int order,date,stock,credit;  printf("Enter the date of order(DD):");  scanf("%ld",&date);  printf("Enter the required order:");  scanf("%ld",&order);  printf("Enter your past credit with the company:");  sanf("%ld",&credit);  if(order>50000)  {   printf("Sorry,We have 50,000 in stock now,the remaning will be supplied by 15th of the next month");  }  else if(credit>100000)  {...