Answered step by step
Verified Expert Solution
Question
1 Approved Answer
table [ [ , Su , M , T , W , Th , F , Sa ] , [ Employee 0 , 2
tableSuMTWThFSaEmployee Employee Employee Employee Tasks Topic : Java Basics Palindrome checker Implement the following method headers with the required functions: public static int reverseint number Return the reversal of an integer, eg reverse returns public static boolean isPalindromeint number Return true if number is a palindrome Use the reverse method to implement isPalindrome because a number is a palindrome if its reversal is the same as itself. Note that in the reverse method you must convert the integer number to a String first for reversal and then convert it back to an integer number other nonstring ways are not acceptable Write a test main program that prompts the user to enter several integers ending with a number denotes the end of console user input and reports whether those integers are palindrome or not. Here is a sample run: Enter integers for palindrome testing: true true false Star Employees and Busiest Days The weekly casual work hours for all employees are stored in a twodimensional array rows columns as shown below. Each row records a corresponding employee's day work hours. Write a program to work out and display the star employees who work the most hours across a week there can be more than one star employee to display and similarly the busiest days also can be more than one that need the most total employmentwork hours from all employees. For instance, in the following, Employee is the star employee who works hours in a week and Sunday is the busiest day that requires employees to work at a total of hours. java program
tableSuMTWThFSaEmployee Employee Employee Employee Tasks
Topic : Java Basics
Palindrome checker Implement the following method headers with the required functions:
public static int reverseint number Return the reversal of an integer, eg reverse returns
public static boolean isPalindromeint number Return true if number is a palindrome
Use the reverse method to implement isPalindrome because a number is a palindrome if its reversal is the same
as itself. Note that in the reverse method you must convert the integer number to a String first for reversal and then
convert it back to an integer number other nonstring ways are not acceptable Write a test main program that
prompts the user to enter several integers ending with a number denotes the end of console user input and
reports whether those integers are palindrome or not.
Here is a sample run:
Enter integers for palindrome testing:
true true false
Star Employees and Busiest Days The weekly casual work hours for all employees are stored in a
twodimensional array rows columns as shown below. Each row records a corresponding employee's
day work hours. Write a program to work out and display the star employees who work the most hours across
a week there can be more than one star employee to display and similarly the busiest days also can be more
than one that need the most total employmentwork hours from all employees. For instance, in the following,
Employee is the star employee who works hours in a week and Sunday is the busiest day that requires
employees to work at a total of hours.
java program
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started