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
0
Answer:
sorry dint understand
Explanation:
Answered by
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
Computer Science,
3 hours ago
Math,
3 hours ago
Math,
3 hours ago
Political Science,
5 hours ago
English,
5 hours ago
Math,
8 months ago
English,
8 months ago