Computer Science, asked by patibandlasripranavi, 19 days ago

Write a c program for a given real time application. A market named GRACE grocery supermarket started in the year of 1982. One of the most famous supermarket in their area. The purchasing rate is lower percentag in the initial stage. After 2000 the purchasing rate dramatically increasing day by day. So, the owner wants to make "QUICK BILLING SYSTEM" for their market development. He started building the "QUICK BILLING SYSTEM" application which produces a quick bill consists of Date, Customer id, Item count, Items with Rate Tax, Net with the small "Thanks message" note.

Answers

Answered by rsnayak35
2

Answer:#include<stdio.h>

int main()

{

   int dat,cid,ic,i;

   float sum=0,per=0;

   char a='%';

   scanf("%d",&dat);

   scanf("%d",&cid);

   scanf("%d",&ic);

   int ir[ic-1];

   for(i=0;i<ic;i++)

   {

       scanf("%d",&ir[i]);

       sum+=ir[i];

       per+=ir[i]*0.2;

   }

   sum+=per;

   printf("Net after adding 20%c tax: %.1f",a,sum);

   printf("\nTHANKS FOR VISITING OUR SHOP! VISIT AGIAN");

   return 0;

}

Similar questions