Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


WAP to accept basic salary of an employee?
Calculate it HRA=25%,DA=30%,PF=30%&net salary display all
contents?

Answers were Sorted based on User's Feedback



WAP to accept basic salary of an employee? Calculate it HRA=25%,DA=30%,PF=30%&net salary displa..

Answer / don

#include<stdio.h>
void main()
{
long int bs,da,hra,pf;
printf("\nEnter The Basic Salary of Employee: ");
scanf("%d",&bs);
printf("\nDA : %d",da=bs*30/100);
printf("\nHRA : %d",hra=bs*25/100);
printf("\nPF : %d",pf=bs*30/100);
printf("\nNet Salary: %d",da+hra+pf);
}

Hey frnds pls tell me is it a ryt answer or wrong?
Help me out

Is This Answer Correct ?    49 Yes 26 No

WAP to accept basic salary of an employee? Calculate it HRA=25%,DA=30%,PF=30%&net salary displa..

Answer / sanjay

IF UR BASIC SALARY 5000 RS.
HRA=B*25/100;
HRA=1250;
DA=BS*30/100;
DA=1500;
PF=BS*30/100;
PF=1500;
NET SALARY=HRA+DA+PF+BS;
NET SALARY=1250+1500+1500+5000;
NET SALARY= 9250 RS.
THIS IS MY CORRECT ANSWER

Is This Answer Correct ?    27 Yes 17 No

WAP to accept basic salary of an employee? Calculate it HRA=25%,DA=30%,PF=30%&net salary displa..

Answer / yarmia anuj kalundia

the program does not yield proper result, cos long int is
used and then only "%d", instead just use "%ld" like i did
in following
"#include<stdio.h>
void main()
{
long int bs,da,hra,pf;
printf("\nEnter The Basic Salary of Employee: ");
scanf("%ld",&bs);
printf("\nDA : %ld",da=bs*30/100);
printf("\nHRA : %ld",hra=bs*25/100);
printf("\nPF : %ld",pf=bs*30/100);
printf("\nNet Salary: %ld",da+hra+pf);
}

Is This Answer Correct ?    20 Yes 17 No

WAP to accept basic salary of an employee? Calculate it HRA=25%,DA=30%,PF=30%&net salary displa..

Answer / balachander

wrong

Is This Answer Correct ?    8 Yes 7 No

WAP to accept basic salary of an employee? Calculate it HRA=25%,DA=30%,PF=30%&net salary displa..

Answer / salim kumar a.p.

My question is that, my salary is Rs. 12,000/-. In my
salary, How can calculate the Basic, DA, HRA and other
conveyance allowancs. This is for the PF. Please send the
detaisl and examples to me at the earleist. Hope for the
same.

Thanks

Salim Kumar A.P.

Is This Answer Correct ?    10 Yes 10 No

WAP to accept basic salary of an employee? Calculate it HRA=25%,DA=30%,PF=30%&net salary displa..

Answer / brijesh

jst add basic into net salary with da n hra n pf

Is This Answer Correct ?    4 Yes 10 No

Post New Answer

More C Interview Questions

write a c programme for add of two numbers with out use of arthematic operators

2 Answers  


When should I declare a function?

0 Answers  


Write code for initializing one dimentional and two dimentional array in a C Program?

5 Answers   Deshaw, Edutech, GMD,


Write a c program for sum of first n terms of the series S = 1 - (1/3) + (1/5) -(1/7) + (1/9) ......

2 Answers  


Explain what’s a signal? Explain what do I use signals for?

0 Answers  


What is data type long in c?

0 Answers  


Explain high-order bytes.

0 Answers  


difference between i++* and *++i

6 Answers   IBM,


5. distance conversion: Convert a distance from miles to kilometers .there are 5280 feets per mile,12 inches per foot .2.54 centimeters per inch and 100000centimeters per kilometer

4 Answers  


swap two integer variables without using a third temporary variable?

6 Answers   Persistent,


Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.

0 Answers   Sikkim Manipal University,


What are the advantages of using Unions?

0 Answers   IBS,


Categories