Program description:

To be edited...

Your code:

Make file

shopping: shopping.c
	gcc -o shopping shopping.c -I.
clean:
	rm *.o *.err

.c file

#include <stdio.h>
int main( int argc, const char* argv[] )
{

   /*Numbers of the items in the shopping list*/
   int itemNum1 = 345;
   int itemNum2 = 7474;
   int itemNum3 = 987;
   int itemNum4 = 2342;
   int itemNum5 = 1738;
   /*Amount of each item in the shopping list*/
   int count1 = 4;
   int count2 = 100;
   int count3 = 6;
   int count4 = 3;
   int count5 = 2;
   /*Price of each item in the shopping list*/
   double price1 = 78.50;
   double price2 = 2.99;
   double price3 = 129.99;
   double price4 = 1295.40;
   double price5 = 25.99;
   /*Description of each item in the shopping list*/
   char descrip1[50] = "Bookshelf";
   char descrip2[50] = "Pen";
   char descrip3[50] = "Chair";
   char descrip4[50] = "Camera";
   char descrip5[50] = "Blanket";
   /*Column headers for the output of the shopping list*/
   char itemNum[50] = "Item Num";
   char description[50] = "Description";
   char price[50] = "Price";
   char count[50] = "Count";
   char extendedPrice[50] = "Extended Price";

   /*Formatted Output of the shopping list*/
   printf("\n%-11s %-11s %11s %11s %20s\n", itemNum,description,price,count,extendedPrice); /*Header*/   
   printf("%06d      %-11s   $ %7.2f %11d            $ %7.2f\n", itemNum1,descrip1,price1,count1,price1*count1); /*Item 1*/
   printf("%06d      %-11s   $ %7.2f %11d            $ %7.2f\n", itemNum2,descrip2,price2,count2,price2*count2); /*Item 2*/
   printf("%06d      %-11s   $ %7.2f %11d            $ %7.2f\n", itemNum3,descrip3,price3,count3,price3*count3); /*Item 3*/
   printf("%06d      %-11s   $ %7.2f %11d            $ %7.2f\n", itemNum4,descrip4,price4,count4,price4*count4); /*Item 4*/
   printf("%06d      %-11s   $ %7.2f %11d            $ %7.2f\n", itemNum5,descrip5,price5,count5,price5*count5); /*Item 5*/
   printf("\n");

}

All the assignments will be posted. Subscribe for more! :)