UrbanPro
true

Take Engineering Diploma Tuition from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

Super-Market Billing Console Application

Ashutosh Singh
23/12/2017 0 0

#include
using namespace std;

int main()
{
int n=0; float T=0;
  cout<<"Welcome to Yashtosh Mart !\n"<<endl;
  cout<<"Type total number of items bought"<<endl;
  cin>>n;

    float t[n];
   string itemName[n]; float quantity[n]; float rate[n];
   for(int j=0;j<n;j++)
   {   string s; float k,r;
       cout<<"input Name of item "<<j+1<<" Quantity rate press"<<endl;
       cin>>s>>k>>r;
       itemName[j]=s;
       quantity[j]=k;
       rate[j]=r;
   }
  for(int i=0;i<n;i++)
  {cout<<itemName[i]<<" "<<quantity[i]<<" "<<rate[i]<<" "<<"costing Rs."<<quantity[i]*rate[i]<<endl;
      t[i]=quantity[i]*rate[i];

     T= T+t[i];
   //cout<<"Your Grand Total = Rs."<<t<<endl;
  }
  cout<<"Your Grand Total = Rs."<<T<<endl;
    return 0;
}

 
0 Dislike
Follow 2

Please Enter a comment

Submit

Other Lessons for You

Series 1- An Insight Into Computer Programming Languages
SQL has enjoyed a manifold lead over other programming languages in the past couple of years. This programming language aids data manipulation. MySQL and Microsoft SQL are among the most preferred SQL...
E

Edusmart Skills

0 0
0

For All The New Developers
Language to use: Any language that you are learning. Interface: Web or Desktop Function: Simple calculator (9 digits + symbol) with 1 Memory storage with possible function of + - * / Error Handling...
R

Magic in C=> OFFSET OF MACRO in C [offsetof(TYPE, MEMBER)]
Here I am going to discuss an exciting macro in C. It will give you offset of a member within a structure. NULL or 0 address is typecasted to TYPE first. It won't result in segmentation fault as we are...

C Programming Introduction
Beginners: C Programming is the base of all programming languages we learn. This Page will help you to understand all difficulties you may face in writing a simple program. What to remember while...
N

Namrata Y.

0 0
0

Bitwise Operators - Binary Number System
Binary Number System A bitwise operation operates on one or more bit patterns or binary numerals at the level of their individual bits. It is a fast, primitive action directly supported by the processor,...

Looking for Engineering Diploma Tuition ?

Learn from Best Tutors on UrbanPro.

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for Engineering Diploma Tuition Classes?

The best tutors for Engineering Diploma Tuition Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Take Engineering Diploma Tuition with the Best Tutors

The best Tutors for Engineering Diploma Tuition Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more