


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The document provides C++ Programming task fr an assignment showing concepts such as objects, classes, constructors, destructors,
Typology: Assignments
1 / 4
This page cannot be seen from the preview
Don't miss anything!



Number one #include
business[i] = 4; y++; add = y; } ;break; case 2: for(int i=x;i<=3;i++){ if(add2==x){ break; } cout<<"Your have been assigned seat "<<economy[i]<<endl; cout<<"Section: Economy Class"<<endl; economy[i] = 4; x++; add2 = x; } break; default:cout<<"CHOOSE CORRECT CLASS"<<endl; } add = 16; add2 =16; }while((business[3])!=4 || (economy[3])!=4); return 0; }
Tax_amount=tax_rate(basic_salary+allowance)/100; Net_salary= basic_salary+Tax_amount; } void salary::Salary_display() { cout<<"Basic Salary is: "<<basic_salary<<endl; cout<<"Tax Rate is: "<<tax_rate<<endl; cout<<"That tax amount is: "<<Tax_amount<<endl; cout<<"Your Net Salary is: "<<Net_salary<<endl; } int main() { salary worker; worker.Salary_input();//take input worker.Salary_computations();//make calculations worker.Salary_display();//display output return 0; }*