Computer Science, asked by mdwesmanthe2nd, 1 month ago

How would you declare an array variable called grossSalary to store 10 values using the double data type?

Answers

Answered by kumarijyotisp18
2

class Employee1{

public static void main(String args[]){

private String name;

private double grossSalary;

public Employee1(String EmpName)

{

name = EmpName;

}

Scanner input = new Scanner(System.in);

System.out.print("Please enter the number : ");

name = input.nextDouble();

Employee1 emp = new Employee1();

emp[0] = new Employee ();

}

}

Similar questions