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)
 {
  printf("Please clear your past credit");
  }
 else
  printf("Thank You!Your order will be supplied by the date");
  getch();
}

Comments

Popular posts from this blog

Tip of the Day # 13

Governor Generals of Pakistan

Tip of the Day# 12