Make a project to calculate the gross pay of an employee when the Basic pay is given. The formula of Gross pay is BASIC PAY + HRA(10% of BASIC PAY) + DA(150% of BASIC PAY)
The Input should be taken as shown below:- Enter Name Of Employee:: Enter Provident Fund:: Enter Basic Pay Of The Employee::
The Output will be shown as:- Name Of The Employee:: Basic Pay:: Dearness Allowance:: House rent Allowance:: Gross Pay::
15 comments:
wap to print '*' using array in a diagonal pattern
output should be:
* *
* *
*
*
* *
Pl help me find my error
class pattern
{
int i,j,k
public void display()
{
char ch[][]={{'a','b','c','d','e','f','g'},
{'h','i','j','k','l','m','n'},
{'o','p','q','r','s','t','u'},
{'v','w','x','y','z','a','b'},
{'c','d','e','f','g','h','i'},
{'j','k','l','m','n','o','p'},
{'q','r','s','t','u','v','w'}};
for(i=0;i<7;i++)
{
for(j=0;j<7;j++)
{
if(i==j || i+j==6)
{system.out.print(ch[i][j]);}
else
{system.out.print(" ");}
}
system.out.println();
}
}
}
merging of two single dimensional array into a double dimensional array??
class pattern
{
int i,j,k;
public void display()
{
char ch[][]={{'a','b','c','d','e','f','g'},
{'h','i','j','k','l','m','n'},
{'o','p','q','r','s','t','u'},
{'v','w','x','y','z','a','b'},
{'c','d','e','f','g','h','i'},
{'j','k','l','m','n','o','p'},
{'q','r','s','t','u','v','w'}};
for(i=0;i<7;i++)
{
for(j=0;j<7;j++)
{
if(i==j || i+j==6)
{System.out.print(ch[i][j]);}
else
{System.out.print(" ");}
}
System.out.println();
}
}
}
wap to enter 2D array of size m*n & display the lower triangular matrix..
Make a project to calculate the gross pay of an employee when the Basic pay is given. The formula of Gross pay is BASIC PAY + HRA(10% of BASIC PAY) + DA(150% of BASIC PAY)
The Input should be taken as shown below:-
Enter Name Of Employee::
Enter Provident Fund::
Enter Basic Pay Of The Employee::
The Output will be shown as:-
Name Of The Employee::
Basic Pay::
Dearness Allowance::
House rent Allowance::
Gross Pay::
Accept a name of three words from the user and display it in the form of Surname Name Middle name
Example:
Input: Enter full name
Mahendra Singh Dhoni
Output:Modified string is
Dhoni Mahendra Singh
find lcm or not and tell wat is lcm
Write a program to generate pascal's triangle?
write a program to print the numbers which are armstrong in one dimensional array.
write a program to print the numbers which are armstrong in one dimensional array.
Help Me With Output
1
121
12321
1234321
123454321
The Middle Numbers In My Previous Output Should Be In The Same Line
I want a code to find all possible words from a accepted word.eg input-ABC
output-BAC,BCA,CBA,CAB,ACB,ABC
Help me with output
*
*#
*#*
*#*#
*#*#*
Post a Comment