This code needs to be done in Python. Your program will instantiate…

Question Answered step-by-step This code needs to be done in Python. Your program will instantiate… This  code needs to be done in Python.Your program will instantiate three objects, print various information about them, then make a dictionary of these three objects. To do so, you must create your files in the following manner.The file university.py will include the following:- a class called Instructor- three instance fields (data attributes): rank, name, yearlySalary- an __init__() constructor that will have three incoming parameters that will assign their values to the three instance fields- three mutator methods – one for each instance field with a parameter for each method; modify appropriately; all return nothing- three accessor methods – one for each instance field with no parameters for each method; returns appropriate value for each- a __str__() method – no parameters; returns an appropriate string consisting of the values for each instance fieldThe file universityTester.py will include the following:import the following in this file: university and randomdeclare the following global constantsRAISE2 with value 2RAISE5 with value 5RAISE8 with value 8RAISE10 with value 10ADJ_PROF with value ‘Adjunct Professor’ASSIS_PROF with value ‘Assistant Professor’ASSOC_PROF with value ‘Associate Professor’FULL_PROF with value ‘Full Professor’ADJ_SAL with value 60000.00ASSIS_SAL with value 80000.00ASSOC_SAL with value 100000.00FULL_SAL with value 120000.00declare the following three strings within your main() functionfName1 with value ‘Smith’fName2 with value ‘Doe’fName3for fName3 insert your last nameHere are the functions that you will use/define in this file:getRandom() – no parameters; returns a random integer number between 0 and 3 inclusivestartingSalary() – one parameter; if the value of the parameter is 0 then return ADJ_SAL, if it is 1 return ASSIS_SAL, if it is 2 return ASSOC_SAL, if it is 3 return FULL_SAL, otherwise return 0.00classification() – one parameter; if the value of the parameter is 0 then return ADJ_PROF, if it is 1 return ASSIS_PROF, if it is 2 return ASSOC_PROF, if it is 3 return FULL_PROF, otherwise return ‘Unknown Professor’raiseSalary() – one parameter; if the value of the parameter is 0 then return RAISE2, if it is 1 return RAISE5, if it is 2 return RAISE8, if it is 3 return RAISE10, otherwise return 0.00printByAccessor() – one parameter (an object); prints out the rank, name, and salary of this professor object (look at the sample output for guidance)goodBye() – no parameters; prints out last two lines to end programcall the function getRandom() to obtain a random number and assign it to the variable num1again call the function getRandom() to obtain a random number and assign it to the variable num2call the function classification() to obtain a classification and assign it to the variable classify; pass the argument num1 to this functioncall the function startingSalary() to obtain a starting salary and assign it to the variable salary; pass the argument num2 to this functioninstantiate (create) an object from the class Instructor and assign it to the object variable person1; pass the arguments classify, fName1, and salary to the constructor __init__()Repeat steps 1 through 5 above but in step 5 the object variable will be person2 and the name argument will be fName2Repeat steps 1 through 5 above but in step 5 the object variable will be person3 and the name argument will be fName3call the function printByAccessor() and send person1 as your argument to this functioncall the function printByAccessor() and send person2 as your argument to this functionprint person3 by calling the __str__() method that you created in class Instructor within the file university.py (you may do this either implicitly or explicitly)call the function getRandom() to obtain a random number and assign it to the variable num1call the function raiseSalary() to obtain an increase in salary number and assign it to the variable increase; pass the argument num1 to this functionprint out a message indicating that person1 professor will get a raise and by how much (look at the sample output for guidance)obtain the current salary of person1 and assign it to the variable salarybased upon the value of increase and the value of salary, call the method setSalary() for person1 to set new salary for this professor. So you will have to send the appropriate argument to this method. You may have to use some algebraic manipulation to determine the correct increase in salary (look at the sample output for guidance). ie. : if a professor has a current salary of $80,000.00 and they are going to get a increase in salary of 8%, then their new salary will be $86,400.00call the function printByAccessor() and send person1 as your argument to this functionprint out a message indicating that person2 professor may or may not get a new title (look at the sample output for guidance)call the function getRandom() to obtain a random number and assign it to the variable num1call the function classification() to obtain a classification and assign it to the variable classify; pass the argument num1 to this functioncall the method setRank() for person2 to set a possible new title for this professor; pass the argument classify to this methodprint person2 by calling the __str__() method that you created in class Instructor within the file university.py (you may do this either implicitly or explicitly)obtain the rank for person1 and assign it to the variable rank1obtain the rank for person2 and assign it to the variable rank2obtain the rank for person3 and assign it to the variable rank3Make a  dictionary called profRank where there will be three keys called ‘Num1’, ‘Num2’, and ‘Num3’. The values for each of these keys will be rank1, rank2, and rank3, respectivelyprint out the dictionary profRankMake a dictionary called profName where the keys, again, will be ‘Num1’, ‘Num2’, and ‘Num3’. The values for each of these keys will be fName1, fName2, and fName3, respectivelyprint out the dictionary profNameobtain the salary for person1 and assign it to the variable salary1obtain the salary for person2 and assign it to the variable salary2obtain the salary for person3 and assign it to the variable salary3Make a dictionary called profSalary where the keys, again, will be ‘Num1’, ‘Num2’, and ‘Num3’. The values for each of these keys will be salary1, salary2, and salary3, respectivelyprint out the dictionary profSalaryusing a for loop calculate the overall total salary of all three professors. Use a variable called sum that will be your accumulator in totaling the salaries.print out the total salary (i.e., sum) for the professors (look at the sample output for guidance)calculate the average salary for the professors and assign it to the variable averageprint out the average salary (i.e., average) for the professors (look at the sample output for guidance)Finally, the last function that will be called is goodBye() that will print out the last two lines of our program that we always end our program.You must use all the variables listed above in your solution.(sample output):Rank: Full ProfessorName: SmithSalary: $ 60,000.00Rank: Adjunct ProfessorName: DoeSalary: $ 80,000.00Rank: Associate ProfessorName: CastanedaSalary: $ 60,000.00Full Professor Smith will get an increase in salary by: 2 %Rank: Full ProfessorName: SmithSalary: $ 61,200.00Adjunct Professor Doe may or may not get a new title.Rank: Full ProfessorName: DoeSalary: $ 80,000.00profRank: {‘Num1’: ‘Full Professor’, ‘Num2’: ‘Full Professor’, ‘Num3’: ‘Associate Professor’}profName: {‘Num1:’: ‘Smith’, ‘Num2’: ‘Doe’, ‘Num3’: ‘Castaneda’}profSalary: {‘Num1’: 61200.0, ‘Num2’: 80000.0, ‘Num3’: 60000.0}Total salary for professors: $ 201,200.00Average salary for professors: $ 67,066.67 Computer Science Engineering & Technology Python Programming COSC 1315 Share QuestionEmailCopy link Comments (0)