Computer Science, asked by heerparmar2005, 2 months ago

write a python program that inputs experience and age of a person. The salary of the person is 6000 if the person is experienced and his age is more than 35, otherwise for experienced person the salary should be 3000 and for inexperienced person the salary be 2000.​

Answers

Answered by eeshanandana
0

Answer:

sorry dint understand

Explanation:

Answered by aryan418436
2

Answer:

*To input experience and age,

Salary=6000 if the person is experienced and his age is more than 35,

Salary=4800 if age is more than 28 but less than 35 but if the he/she is experienced,

experienced=3000,

inexperienced=2000.*/

#include<iostream>

using namespace std;

int main()

{

int age,salary;

char exp;

cout<<“Enter if the person is experienced or not(Y or N)\n”;

cin>>exp;

cout<<“Enter the age\n”;

cin>>age;

if(exp==’N’)

{

cout<<“Salary = 2000”;

}

if(exp==’Y’)

{

if((age>28)&&(age<35))

cout<<“Salary = 4000\n”;

if(age>35)

cout<<“Salary = 6000\n”;

else if(age<28)

cout<<“Salary = 3000\n”;

}

return 0;

}

Explanation:

this is your answer brother/siester

Similar questions