Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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)

image text in transcribed 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

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

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Databases Organizing Information Digital And Information Literacy

Authors: Greg Roza

1st Edition

1448805929, 978-1448805921

More Books

Students also viewed these Databases questions