I can use some help getting the rest of my program to work with PYTHON. I need to make it run there, but I keep running into erros I cannot find. #include >noOfticketsA>>noOfticketsB>>noOfticketsC; if(noOfticketsA<=300){ if(noOfticketsB<=500){ if(noOfticketsC <=200){ amount = (noOfticketsA*20)+(noOfticketsB*15)+(noOfticketsC*10); } else{ cout<<"section C is full"; } } else{ cout<<"section B is full"; } } else{ cout<<"section A is full"; } cout<<"the amount of income generated from ticket sales is: "<
I can use some help getting the rest of my
#include <iostream;
using namespace std;
int main()
{
int noOfticketsA,noOfticketsB,noOfticketsC,amount;
cout<<"enter no of tickets sold in each section: ";
cin>>noOfticketsA>>noOfticketsB>>noOfticketsC;
if(noOfticketsA<=300){
if(noOfticketsB<=500){
if(noOfticketsC <=200){
amount = (noOfticketsA*20)+(noOfticketsB*15)+(noOfticketsC*10);
}
else{
cout<<"section C is full";
}
}
else{
cout<<"section B is full";
}
}
else{
cout<<"section A is full";
}
cout<<"the amount of income generated from ticket sales is: "<<amount;
return 0;
}

Step by step
Solved in 4 steps with 2 images









