Answered You can buy a ready-made answer or pick a professional tutor to order an original one.

QUESTION

Working with Overloaded ConstructorsScenario: Universal Bank offers various services to its customers. The bank has various branches all over the country and, therefore, each branch has a unique code.

Working with Overloaded ConstructorsScenario: Universal Bank offers various services to its customers. The bank has various branches all over the country and, therefore, each branch has a unique code. The bank stores the details of its customers such as customer ID, customer name, account number, address, phone number, and email address. In addition, the bank offers its customers a choice of accounts, such as savings account, current account, and loan account. The bank also stores its employee details, such as employee code, employee name, employee address, phone number, and email address. For the given scenario, you have to identify various classes and their attributes. Create a Java program to implement the identified classes in the given scenario. In addition, modify the code to perform the following:

  • Assign values to the identified attributes by using constructors.
  • Create overloaded constructors.

Working with Abstract Class and Function OverridingScenario: Consider a scenario of a furniture company that manufactures domestic furniture, such as chairs and bookshelves. Customers provide their specifications to the company for the furniture they want. For example, if the customer wants to order chairs, they need to specify the attributes such as color, height, width, height, and type they want for the chair. Similarly, if the customer wants to order a bookshelf, they need to specify the attributes such as color, height, width, height, and number of shelves they want for the book shelf.Now, write a Java program with the following functionalities for the given scenario:

  • The program must accept and display the choice of the customer related to the attributes of the specified furniture items.
  • The program must use an abstract class and method overriding to manage the input and output.

Write an employee managemen

t application with the following functionalities:

·

The user should be able to enter the name, email address, and age.

·

The minimum and maximum ages are 20 and 58, respectively.

·

If the age of an employee is less than 20 or greater than 58, a user

-

defined ex

ception named

InvalidAgeException should be displayed.

Using Lambda ExpressionWrite a Java application to create a list of integers using Lambda expressions. The application should:

  • Display all integers in the list.
  • Display all even numbers in the list.
  • Display all odd numbers in the list.
  • Display all numbers that are divisible by 6.
  • Display all numbers that are less than 12.
  • Display all numbers that are greater than 50.
Show more
  • @
  • 165 orders completed
ANSWER

Tutor has posted answer for $25.00. See answer's preview

$25.00

******* **** Overloaded ********************* Universal **** offers ******* ******** ** *** ********* *** **** *** ******* branches all **** *** ******* *** ********* **** ****** *** a ****** code The **** ****** *** ******* ** *** ********* **** ** ******** ** customer **** ******* ****** ******* phone ****** *** ***** ******* ** ******** the **** offers its ********* * ****** ** ******** such ** savings ******* ******* account *** **** ******* The **** **** stores *** ******** details **** ** ******** **** ******** **** ******** ******* ***** ****** *** ***** ******* *** *** ***** ******** you have to ******** ******* ******* *** ***** ****************** ****** a **** ******* ** ********* *** ********** ******* ** *** ***** ******** In ******** ****** the **** ** ******* *** **************** ****** ** the identified attributes by using constructorsCreate ********** ************** Answerpublic ***** Branch * ****** ************* ****** ************* *********** * thisbranchCode * *********** }  public Branch() { }  public ****** *************** { return *********** *** ****** **** ******************** branchCode) * thisbranchCode * *********** ******* To ****** **** ******* ****** ****** ******* ******* ** Project *********** To change this template **** ****** ***** * ********** and **** *** ******** ** the *************** *************** ***** Account * ****** ************ long accountNumber;  ****** ************** accountType **** ************** * *************** = ************ ***************** * accountNumber; *** public ********* * }  ****** String **************** * ****** ************ *** ****** **** ********************* ************ { *************** * ************ *** public **** ****************** * ****** ************** *** public **** ********************* accountNumber) * ***************** * ************** ******* ** change this ******* header choose ******* ******* ** ******* Properties* To change this ******** file choose Tools * ********** *** **** the template ** the editor*/ /**** ************** ** employee ********* * *********** with *** ********* ********************* user should be able ** enter *** **** email ******* and age·The ******* *** ******* ages are ** *** 58 **************** *** *** of an ******** ** **** **** ** or ******* **** ** * ********** ** change **** ******* header ****** ******* ******* ** ******* Properties* ** ****** **** template **** ****** ***** * Templates* and **** the ******** ** the *************** @author*/public ***** Customer extends ******* ****** *********** ****** ***** ****** ******** long ************ ****** emailAddress; ******* ********** ****** *************** ********** ****** **** ******* ******** * ************** = *********** ******** * ***** *********** * ******** *** ****** ********** * *** ****** *************** customerID ****** **** ****** ******* **** *********** ****** ************ Account ******** * ************** * *********** ******** * ***** thisaddress * ******** thisphoneNumber * ************ **************** * ************* *********** = ******** *** public ****** *************** * ****** customerID; }  public void ******************** *********** * thiscustomerID * *********** }  ****** String getName() { return ***** }  public **** setName(String name) * thisname * name; *** public ****** ************ * ****** ******** }  public **** setAddress(String ******** * *********** * ******** *** ****** long **************** * ****** ************ *** ****** **** ******************* phoneNumber) { thisphoneNumber = ************ }  ****** String ***************** { ****** ************* }  ****** void setEmailAddress(String ************* { thisemailAddress * emailAddress; *** public Account ************ * ****** ******** }  public **** setAccount(Account ******** * *********** = ******** ******* ** ****** **** ******* ****** ****** License Headers ** ******* *********** To change **** template **** choose Tools * ********** and **** the ******** ** *** *************** *************** ***** ******** extends ******* ****** ****** ****** ***** ****** ******** String ************ ****** *************** ****** *************** *********** * ****************** }  public ********** { }  ****** Employee(String eCode ****** **** String ******* String *********** ****** ************ ****** *********** * super(branchCode); ********* * eCode; ******** * ***** thisaddress = ******** *************** * phoneNumber; **************** * emailAddress; }  ****** *************** ***** String name ****** ******* ****** *********** String ************* * ********* * ****** ******** = name; *********** = ******** *************** = ************ thisemailAddress * ************* }  ****** ****** ********** * ****** eCode; *** ****** **** *************** ****** { thiseCode = ****** *** ****** String ********* * ****** name; }  ****** **** ************** ***** { thisname * ***** }  ****** ****** ************ * ****** ******** *** public **** setAddress(String ******** { *********** = ******** *** ****** ****** **************** * return phoneNumber; *** ****** **** setPhoneNumber(String ************ * thisphoneNumber * ************ }  ****** ****** ***************** * return ************* *** ****** **** ********************** emailAddress) * thisemailAddress * ************* ********* ********* ************************ ****** be ********************* InvalidAgeException ******* Exception{ ****** InvalidAgeException() { ********** *** you ******* ** *** ******* *** 125"); ******* invalidexceptimpl{public ****** **** *********** args[]) throws IOException ******************* { ********************** ** **** ******** ************** ** * *** ****************** InputStreamReader(Systemin)); ****** name = ************* *********************** " * **** * * *** *** *** you?"); *** *** * ****************************** ** **** **** ** ** age **** *** ***** new ********************** ******************** errors ***** you are " * *** * " ***** ********************* ****** *************** * Java *********** to create a list ** integers ***** ****** *********** *** *********** should:· Display all ******** ** *** ****** ******* all **** numbers in *** ****** ******* *** *** ******* in *** ****** ******* all numbers **** *** ********* ** *** Display *** ******* **** *** **** **** **** ******* *** ******* **** *** ******* **** 50Answerimport javautilArrays;import javautilList;import javautilfunctionPredicate;public ***** ************** public ****** **** *********** [] ***** * List<Integer> list * ************** * * * * * 7895634653497); Systemoutprintln("show *** ******* *********** evaluate(list (n)->true); ********************** **** *********** ************* ******** *** ** ); Systemoutprintln("show *** *********** ************* ******** *** ** * ** Systemoutprintln("show ******* ******* **** ****** evaluate(list (n)-> * > 50 );Systemoutprintln("show ******* **** **** ******************* ******** * ****** );  *** ****** static **** **************************** **** ************************ ********** { *********** ** ***** * if(predicatetest(n)) * ****************** * * *** * * *********** with ******** Class and ******** ******************* Consider a ******** ** * ********* ******* that manufactures domestic ********* **** ** chairs *** bookshelves ********* ******* their ************** to *** ******* *** *** ********* **** **** *** ******* ** *** ******** ***** ** ***** ****** **** **** ** specify *** ********** such ** ***** ****** ***** ****** and **** they **** for *** chair ********* if the ******** wants ** ***** a ********* they **** to ******* the attributes **** ** ***** ****** width height *** ****** ** shelves they want *** *** **** **************** ***** * **** program **** *** ********* *************** *** *** ***** *********** *** program must ****** *** display *** choice ** *** ******** related ** the ********** of *** specified ********* ******* The program **** *** ** abstract class *** ****** ********** to ****** the input *** *********************** furniture{ ****** **** input (int h *** **** *** ***** *** ****** {}; public **** input(int **** widthint *************** void display(char *********** *********** ********** ********** ****** static void *********** ******* ******** scan= *** Scanner(Systemin) *************************** *** furniture ** * ***** ** **** ************* c =scanNextInt();Systemoutprintln(“choice *** ********* ***** ”);String ****************** ******************* ******************* no=scannextInt();furnitureex obj = *** furnitureex *** ****************** **************** ******* **** input **** h *** **** *** width *** ****** ************************** ***** *************** **** self ”);public void ***** **** * *** ***** *** ****** ************************** ***** ************ ***** ****************

Click here to download attached files: solution19dec.docx
or Buy custom answer
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question