Question:-Write a program to create a class employ and input number of days worked and rate perday Calculate wadges of the
employ and print all the details.
LET'S START OUR PROGRAM.
import java .util.*;
class employ
{
void main()
{
Scanner sc=new Scanner(System.in);//creating of object
System.out.println("enter per day rate of employ");
int r=sc.nextInt();
System.out.println("enter number of working day of employ");
int d=sc.nextInt();
int wedges=r*d;
System.out.println("wedges of employ is");
System.out.println(wedges);
}
}
THIS IS THE PROGRAM
DO NOT FORGOT TO SHARE,LIKE,COMMENT ON MY VLOG.
THANKS FOR VISIT
employ and print all the details.
LET'S START OUR PROGRAM.
import java .util.*;
class employ
{
void main()
{
Scanner sc=new Scanner(System.in);//creating of object
System.out.println("enter per day rate of employ");
int r=sc.nextInt();
System.out.println("enter number of working day of employ");
int d=sc.nextInt();
int wedges=r*d;
System.out.println("wedges of employ is");
System.out.println(wedges);
}
}
THIS IS THE PROGRAM
DO NOT FORGOT TO SHARE,LIKE,COMMENT ON MY VLOG.
THANKS FOR VISIT