Question: The question is this And I need help with the formatting because I want my coding to display similar to the example in the book
The question is this
And I need help with the formatting because I want my coding to display similar to the example in the book
so like,

My coding so far is this
class Employee: def __init__(self, Name, id_Number, Department, Job_Title): self.__Name = Name self.__id_Number = id_Number self.__Department = Department self.__Job_Title = Job_Title def set_Name(self, Name): self.__Name = Name return self.__Name def set_id_Number(self, id_Number): self.__id_Number = id_Number return self.__id_Number def set_Department(self, Department): self.__Department = Department return self.__Department def set_Job_Title(self, Job_Title): self.__Job_Title = Job_Title return self.__Job_Title def __str__(self): return self.__Name + '{:>10}'.format('id_Number') + self.__id_Number + '{:>10}'.format( 'Department') + self.__Department + '{:>10}'.format('Job_Title') + self.__Job_Title def main(Employee) employee1 = Employee('Name', 'id_Number', 'Department', 'Job_Title') employee2 = Employee('Name', 'id_Number', 'Department', 'Job_Title') employee3 = Employee('Name', 'id_Number', 'Department', 'Job_Title') employee1.set_Name('Susan Meyers') employee1.set_id_Number('47899') employee1.set_Department('Accounting') employee1.set_Job_Title('Vice President') employee2.set_Name('Mark Jones') employee2.set_id_Number('39119') employee2.set_Department('IT') employee2.set_Job_Title('Programmer') employee3.set_Name('Joy Rogers') employee3.set_id_Number('81774') employee3.set_Department('Manufacturing') employee3.set_Job_Title('Engineer') print(employee1) print(employee2) print(employee3) main(Employee)I've looked in my book and searched online and I couldnt find anything that worked. Any help would welcome. Thank you for your time.
ber. Write appropriate acce three instances of the cha should hold your friends ng personal data: name, address, age, and phone num Sbriate accessor and mutator methods. Also, write a program that creates nces of the class. One instance should hold your information, and the other two your friends or family members' information. 4. Employee Class Write a class named Emoz class named Employee that holds the following data about an employee in attrib- utes: name, ID number, department, and job title. Once you have written the class, write a program that creates three Employee objects to hold the following data: Name Susan Meyers Mark Jones Joy Rogers ID Number 47899 39119 81774 Department Accounting Job Title Vice President Programmer Engineer Manufacturing The program should core this data in the three objects, then display the data for each employee on the screen Name Susan Meyers ID Number 47899 Department Accounting Job Title Vice President
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
