PROGRAM TO CALCULATE GROSS SALARY

C, C++, etc Programing examples. Post as many you can. Test the programs and discuss about the output of the programes.
Forum rules
Please Discuss & post only about the programes and its Output

PROGRAM TO CALCULATE GROSS SALARY

Postby praveen » Sun Feb 22, 2009 7:31 pm

/* PROGRAM TO CALCULATE GROSS SALARY */

Code: Select all
#include<stdio.h>
#include<conio.h>

main()
{float sal,hr,da,gross_sal;
printf("enter basic pay");
scanf("%f",&sal);
house_rent=0.2*sal;
da=0.4*sal;
gross_sal=sal+hr+da;
printf("gross salary=%.2f",gross_sal);
getch();
}


Regards,
Praveen
AMIE Study

ImageImage
-------------------------------------------------------------------------------------------
Work from Home | AMIE Online Coaching
User avatar
praveen
Site Admin
 
Posts: 989
Joined: Thu Oct 23, 2008 1:42 pm
Location: Mumbai
membership: Senior Technician of The Institution of Engineers (India)- ST

ad
 

Re: PROGRAM TO CALCULATE GROSS SALARY

Postby babugd » Thu Feb 26, 2009 11:37 am

is it programe c or c++??
User avatar
babugd
Super Member
Super Member
 
Posts: 20
Joined: Tue Feb 17, 2009 11:52 am
Location: india,kerala
membership: Senior Technician of The Institution of Engineers (India)- ST

Re: PROGRAM TO CALCULATE GROSS SALARY

Postby skyblue » Thu Feb 26, 2009 11:52 am

It's a C programme.

Komal
User avatar
skyblue
Site Advisor
 
Posts: 605
Joined: Mon Feb 16, 2009 12:59 pm
membership: Senior Technician of The Institution of Engineers (India)- ST

Re: PROGRAM TO CALCULATE GROSS SALARY

Postby praveen » Thu Feb 26, 2009 12:56 pm

it is "C" programing
Regards,
Praveen
AMIE Study

ImageImage
-------------------------------------------------------------------------------------------
Work from Home | AMIE Online Coaching
User avatar
praveen
Site Admin
 
Posts: 989
Joined: Thu Oct 23, 2008 1:42 pm
Location: Mumbai
membership: Senior Technician of The Institution of Engineers (India)- ST

Re: PROGRAM TO CALCULATE GROSS SALARY

Postby utkarshshah1988 » Fri Mar 19, 2010 10:22 pm

in this program no values for D.A and HRA etc etc?
User avatar
utkarshshah1988
Super Member
Super Member
 
Posts: 28
Joined: Wed Jul 29, 2009 4:44 pm
membership: Senior Technician of The Institution of Engineers (India)- ST

Re: PROGRAM TO CALCULATE GROSS SALARY

Postby irfanmasiullah » Tue Apr 13, 2010 6:27 am

Hello Friends.
As I study the previous question paper and i found that C++ questions are more often than C program.
What is your Opinion, should we concentrate more on C++ or C ? because on both once its getting difficult.
Thanks. Regards
Irfan
Thanks & Best Regards -
Irfan M Ansari - Section B - Civil
MOB- 00966 561 770 321 - Dammam - Saudi Arabia
Email :irfanmasiullah@gmail.com
IM: irfanmasiullah@yahoo.com : irfanmasiullah@gmail.com
User avatar
irfanmasiullah
Super Member
Super Member
 
Posts: 77
Joined: Thu Jul 30, 2009 7:59 pm
Location: Mumbai / Dammam (Saudi Arabia)
membership: Senior Technician of The Institution of Engineers (India)- ST


Return to Computer Notes : Some Sample Programs

Who is online

Users browsing this forum: No registered users and 0 guests