Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~130 People Reached
Favorite Forums
Favorite Tags
c++ x 2
Member Avatar for prikshit.choudhary.12

#include <iostream> #include <cmath> using namespace std; int main() { char flag; float emp_no,basic,da ,hra,pf,tax,net_salary,total_salary; cout<<"enter the basic salary & employee no."; cin>>basic>>emp_no; if(basic<=5000) flag=0; else if(basic>5000&&basic<=15000) flag=1; else if(basic>1500 && basic<=25000) flag=2; switch(flag) { case '0': tax=0; da=(25/100)*basic; hra=(20/100)*basic; pf=(5/100)*basic; break; case '1': tax=(10/100)*basic; da=(25/100)*basic; hra=(20/100)*basic; pf=(10/100)*basic; break; case …

Member Avatar for Moschops
0
130