Question: Except the classes mentioned below, no other classes / packages are allowed to solve the following problems. Otherwise, you will automatically receive a ZERO for
Except the classes mentioned below, no other classespackages are allowed to solve the following problems. Otherwise, you will automatically receive a ZERO for that problem. Create a public class named YourlastnameYourfirstnamefinal pts then import java.util.Arrays; import java.util.Scanner; import java.lang.IllegalStateException; import java.lang.IllegalArgumentException; import java.lang.Comparable; Write a static method named problem that accepts an array of integer values. Loop through each integer and get the integers that dont contain digits or Add them to an array and return this array. pts Test case: array is return Write a static method named problem Give a while loop to keep asking the user for floating point values. When the user enters stop this loop should be terminated. Throw IllegalStateException if the user enters an integer value the value of the fractional part is Calculate and return the sum of the fractional parts of the entered values. pts Test case: if the entered values are and return because Write a static method named problem that accepts a string. Assume this string contains many words that are separated by spaces. Extract all the words into an array and capitalize each word the first letter must be upper case and the rest of letters must be lower case then put the capital letter at the end of the word. Return this array. pts Test case: string is syntax is the arrangement of words to form a language return yntaxSsIheTrrangementAfOordsWoTormFAanguageL Write the main method to run each method with the provided test case. pts Below this YourlastnameYourfirstnamefinal class, create a default class named Passenger. pts In this class, create a static variable, called numPassenger, to keep track of the number of Passenger objects that have been created. A passenger object should include the following attributes: id: an automatically generated string as the unique identifier of a passenger. Should be generated based on the value of numPassenger. For example, the first passenger objects id should be ticketType: a string to represent the type of tickets. There are three types of tickets: aislemiddle and window Throw IllegalArgumentException for all other values. price: double, the ticket price should be determined by ticketType:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
