Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

YOU NEDD TO WRITE THIS CODE IN THE C PROGRAMMING LANGUAGE. C++ VERSION OF THIS CODE WILL BE WRITTEN IN CLASS AS A LESSON. ITD

YOU NEDD TO WRITE THIS CODE IN THE C PROGRAMMING LANGUAGE. C++ VERSION OF THIS CODE WILL BE WRITTEN IN CLASS AS A LESSON.

ITD Canada provides initial training for all their employees, once they join the company.

During the training phase, they call the employees as associate.

The initial training is conducted for 60 days for each associate and in these 60 days, they learn various technologies.

In the first 20 days, they learn core skills. In the next 20 days, they learn advanced modules, and in final 20 days, they go for the project phase, help ITD Canada to find in which phase the associates are in.

Create a class Employee with the following private member variables.

- Int associateId

- String associateName

- String workStatus

(C++ version - not for this assignment - Include appropriate getters and setters method in Employee class for the above member variables.

Write the following public method in the Employee class: Void updateStatusDetails(int days) This method should take the number of days as an argument and sets the work status of an employee.)

1. If days <= 20 then setWorkStatus as Core Skills

2. If days > 20 && days <=40 then setWorkStatus as Advanced modules

3. Of days > 40 then setWorkStatus as Project phase

(C++ version - not for this assignment - In the main() method, create an object for the Employee class and get the detils as shown in the sample input and assign the values for its attributes using the setters.

Invoke the updateStatusDetails() method and find the work status and display the details as shown in the sample output.)

Sample Input 1: Enter the associate id: 123 Enter the associate name: Ben Enter the number of days: 45 Sample Output 1: The associate Bens work status: Project Phase. Sample Input 2: Enter the associate id: 124 Enter the associate name: Pratik Enter the number of days: 20 Sample Output 2: Core Skills

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

=6/ Why are discount factors always less than 1?

Answered: 1 week ago