Answer:
Explanation:
The following is written in Java and creates the Employee class with the variables requested and a getter setter method for each variable
package sample;
public class Employee {
private String lastName, firstName, idNumber;
public void Employee() {
}
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public String getIdNumber() {
return idNumber;
}
public void setIdNumber(String idNumber) {
this.idNumber = idNumber;
}
}
Answer:
#here is code in python
#read the name
name=input("Enter your name:")
# read the age as integer
age=int(input("Enter your age:"))
#print the output in the required format
print("{} is {} years old.".format(name,age))
Explanation:
Read the name from user and assign it to variable "name".Then read the age from user and assign it to variable "age". In the next line print the output as required using the format function.
Output:
Enter your Sam
Enter your age:24
Sam is 24 years old.
Answer:validity
Explanation:
Because it dont sound right