#include<iostream>
using namespace std;
class concerttickets
{
float price;
float number;
float totalSale;
public:
float a;
float b;
float c;
float x;
float y;
float z;
float totalSales()
{
totalSale = a*x + b*y + c*z ;
cout << "Total Sale of the concert " << totalSale << endl;
}
};
int main()
{
concerttickets ct;
cout <<"Enter the number of seat of A \n" ;
cin >> ct.a;
cout <<"Enter the number of seat of B \n" ;
cin >> ct.b;
cout <<"Enter the number of seat of C \n" ;
cin >> ct.c;
cout <<"Enter the price of seat of A \n" ;
cin >> ct.x;
cout <<"Enter the price of seat of B \n" ;
cin >> ct.y;
cout <<"Enter the price of seat of C \n" ;
cin >> ct.z;
ct.totalSales();
}
Comments