Thursday, December 5, 2024

GROCERY BILL C++ program

  NALLAMUTHU GOUNDER MAHALINGAM       COLLEGE

                      POLLACHI-642001

                                                   N.DHIVYA

                                 BSC COMPUTER SCIENCE(1st year)

                        6.Grocery bill

#include <iostream>

int main()

{

    std::cout<<"\t\t\tDhivya stores"<<"\n"<<std::endl;

    std::cout<<"Serial number"<<"\tName of items"<<"\tPrice of the item"<<std::endl;

    int a,b,c,d,e,f;

    a=100;

    b=100;

    c=25;

    d=500;

    e=465;

    f=a+b+c+d+e;

    std::cout<<"\n"<<"1"<<"\t\tragi flour"<<"\t\t"<<a<<std::endl;

  std::cout<<"\n"<<"2"<<"\t\triceflour"<<"\t\t"<<b<<"\n"<<std::endl;

    std::cout<<"\n"<<"3"<<"\t\tsugar"<<"\t\t\t"<<c<<"\n"<<std::endl;

   std::cout<<"\n"<<"4"<<"\t\tHorlicks"<<"\t\t"<<d<<"\n"<<std::endl;

    std::cout<<"\n"<<"5"<<"\t\tboost"<<"\t\t\t"<<e<<"\n"<<std::endl;

    std::cout<<"----------------------------------------------------"<<std::endl;

    std::cout<<"\t\t\tTotal Price"<<"\t"<<f<<std::endl;

    std::cout<<"----------------------------------------------------"<<std::endl;

    return 0;

}

 

 

OUTPUT:

 

 

 


 

USD TO INR C++ PROGRAMMING

  NALLAMUTHU GOUNDER MAHALINGAM COLLEGE                                                 POLLACHI-642001                                     ...