Question: A new method for the Office class called swapRooms that swaps the Employee's at two different locations. The method arguments are the floor and room
A new method for the Office class called swapRooms that swaps the Employee's at two different locations. The method arguments are the floor and room of the Employee's that should be swapped.


Convenience Note: If you paste the code into Word, select "Keep Source Formatting", then copy paste into Brightspace, it will look much nicer for me to grade. import java.util.ArrayList; public class Employee { private double hourly Rate; private ArrayList hoursLog; /** * Hourly pay rate is based on title: * Project Lead: 52 * Senior Software Engineer: 41 * Software Engineer: 25 */ public Employee(String title) { } //TODO: Initialize hoursLog and assign hourlyRate based on the title argument public void logHours(double hours) { } hoursLog.add(hours); } /** * Get paid for each amount of hours logged in hoursLog * Remove logged hours that are paid during this method */ public double getPay() { } //TODO: Complete this method based on comment description
Step by Step Solution
3.43 Rating (162 Votes )
There are 3 Steps involved in it
Heres how you can implement the swapRooms method in the Office class java import javautil public class Office private Map officeMap public Office offi... View full answer
Get step-by-step solutions from verified subject matter experts
