Question: Question 3: Create a static method that will swap the smallest and largest values in a given array of integers: public static void swap(int[] array)

 Question 3: Create a static method that will swap the smallest

Question 3: Create a static method that will swap the smallest and largest values in a given array of integers: public static void swap(int[] array) For example, the array [ [1028125] becomes [1012825] Test your method! Question 4: Create a GUI using JavaFX that checks to see if a password is valid. A valid password must be at least 10 characters, must include at least 2 uppercase letters and 2 digits (0-9). Ask the user to enter a password in a textbox and then display a message indicating if the password is valid or invalid. Question 5: Write a program that accepts the dimensions (row column) of a 2D array as a command line argument. Your program will then create a 2D array of the appropriate size and populate it with random values between 1-10. Calculate the sum of each row and display it at the end of the row when printing the array, and calculate the sum of each column and display it at the bottom of each column when printing the array. Question 6: Create an Employee class that contains their employee ID (generated automatically for each student starting at 300), and a list of Tasks assigned to them. Their employee ID will not change. The maximum number of Tasks they can be assigned is passed into the constructor as a parameter. - Write a method that returns an Employee's pay based on their hourly rate and hours worked (passed in as parameters). - Write methods that add/remove Tasks to/from their list. - Write a method that prints out their Tasks A Manager is an Employee that is also assigned a team that they oversee. Each team has a name that will be passed as a parameter through the constructor. A Managers is paid the same as other Employees but receive an additional bonus of 10% of their pay. Make use of inheritance - do not re-write code that already exists

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!