Answer:
Step-by-step explanation:
I don't know about the answer in java.
This is what I did in C#. Find attached the answer
public class JobApplication
{
private string name;
public string Name
{
get { return name; }
set { name = value; }
}
private string phoneNumber;
public string PhoneNumber
{
get { return phoneNumber; }
set { phoneNumber = value; }
}
private bool isSKilledInWordProcessing;
public bool IsSkilledInWordProcessing
{
get { return isSKilledInWordProcessing; }
set { isSKilledInWordProcessing = value; }
}
private bool isSkilledInSpreadsheets;
public bool IsSkilledInSpreadsheets
{
get { return isSkilledInSpreadsheets; }
set { isSkilledInSpreadsheets = value; }
}
private bool isSkilledInDatabases;
public bool IsSkilledInDatabases
{
get { return isSkilledInDatabases; }
set { isSkilledInDatabases = value; }
}
private bool isSkilledInGraphics;
public bool IsSkilledInGraphics
{
get { return isSkilledInGraphics; }
set { isSkilledInGraphics = value; }
}
public JobApplication(string name, string phoneNumber, bool isSKilledInWordProcessing,
bool isSkilledInSpreadsheets, bool isSkilledInDatabases, bool IsSkilledInGraphics)
{
Name = name;
PhoneNumber = phoneNumber;
IsSkilledInDatabases = isSkilledInDatabases;
IsSkilledInGraphics = isSkilledInGraphics;
IsSkilledInWordProcessing = IsSkilledInWordProcessing;
IsSkilledInSpreadsheets = isSkilledInSpreadsheets;
}
}
class Program
{
static void Main(string[] args)
{
JobApplication jobApplication1 = new JobApplication("Emmanuel Man", "+39399399", false, true, true, true);
CheckIfQualified(jobApplication1);
}
static void CheckIfQualified(JobApplication jobApplication)
{
if(jobApplication.IsSkilledInSpreadsheets && jobApplication.IsSkilledInGraphics
&& jobApplication.IsSkilledInWordProcessing && jobApplication.IsSkilledInDatabases)
{
Console.WriteLine("The applicant, " + jobApplication.Name + " is qualified for the job");
} else if (jobApplication.IsSkilledInSpreadsheets && jobApplication.IsSkilledInGraphics
&& jobApplication.IsSkilledInWordProcessing)
{
Console.WriteLine("The applicant, " + jobApplication.Name + " is qualified for the job");
}
else if (jobApplication.IsSkilledInSpreadsheets && jobApplication.IsSkilledInGraphics
&& jobApplication.IsSkilledInDatabases)
{
Console.WriteLine("The applicant, " + jobApplication.Name + " is qualified for the job");
} else if (jobApplication.IsSkilledInWordProcessing && jobApplication.IsSkilledInGraphics
&& jobApplication.IsSkilledInDatabases)
{
Console.WriteLine("The applicant, " + jobApplication.Name + " is qualified for the job");
}else if (jobApplication.IsSkilledInWordProcessing && jobApplication.IsSkilledInSpreadsheets
&& jobApplication.IsSkilledInDatabases)
{
Console.WriteLine("The applicant, " + jobApplication.Name + " is qualified for the job");
}
else
{
Console.WriteLine("The applicant, " + jobApplication.Name + " is not qualified for the job");
}
}
}