Reference no: EM13906392
Working with Overloaded Constructors
Scenario: 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 Overriding
Scenario: 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 Expression
Write 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.
Find the mode median and mean of the distribution
: When the sum of a group of scores is 280 and the mean of the scores is 7, how many scores are in the distribution? Find the mode, median, and mean of the distribution depicted in the following histogram
|
Draw the flowchart for the river falls homes
: Draw the flowchart for the River Falls Homes Construction Company. Design a program that prompts the user for a lot number in the River Falls subdivision and data about the home to be built there, including no. of bedrooms, number of bathrooms, and t..
|
How do taxpayers recover the costs of the intangibles
: How do taxpayers recover the costs of these intangibles? How do taxpayers recover the cost of a $197 intangible that expires (such as a covenant not to compete)?
|
Calculates the projected cost of an auto mobile trip
: Draw the flowchart for a program that calculates the projected cost of an automobile trip. assume the user's car travels 2 miles per gallon of gas. Design a program that prompts the user for a number of miles driven and a current cost per gallon.
|
Universal bank offers various services
: Scenario: 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, acco..
|
Complete cash flow statement for company using direct method
: Complete a cash flow statement for the company using the direct method - What does this statement of cash flow tell you about the sources and uses of the company funds?
|
Calculate the center temperature of the bar at t=5 minutes
: The slab is then subjected to convective heating due to a long burn maneuver. Here it is exposed to an ambient T∞=2000°C. Assuming the heat transfer coefficient is h=350 W/m2°C calculate the center temperature of the bar at t=5 minutes after the st..
|
Describe assets that are considered to be listed property
: Describe assets that are considered to be listed property. Why do you think the Internal Revenue Service requires them to be "listed"?
|
Binary value and the hexadecimal value
: Write a program that will read in a binary number (base 2) and a hexadecimal value (base 16). Your program then calculates and shows the equivalent decimal values for both the binary value and the hexadecimal value.
|