Questions
2.Discuss the two major benefits of using an interface and when would you use an abstract...

2.Discuss the two major benefits of using an interface and when would you use an abstract class in preference to an interface? Explain using examples

In: Computer Science

case study topic: aggregate for concrete. write a report about the following topic and follow the...

case study topic: aggregate for concrete.

write a report about the following topic and follow the guidlines.
Abstract, introduction, history, experemental test and conclusion.

In: Civil Engineering

Exercise #1: Create an abstract class called GameTester. The GameTester class includes a name for the...

Exercise #1:

Create an abstract class called GameTester. The GameTester class includes a name for the game tester and a boolean value representing the status (full-time, part-time).

Include an abstract method to determine the salary, with full-time game testers getting a base salary of $3000 and part-time game testers getting $20 per hour.

Create two subclasses called FullTimeGameTester, PartTimeGameTester. Create a console application that demonstrates how to create objects of both subclasses. Allow the user to choose game tester type and enter the number of hours for the part-time testers.

                                                                                                                                   

Exercise #2:

CityToronto bank provides mortgages for individuals and businesses up to $300,000. Write a Java application that keeps track of mortgages and computes the total amount owed at any time (mortgage amount + interest).

Design the following classes to implement your application:

Mortgage – an abstract class that implements the MortgageConstants interface. A Mortgage includes a mortgage number, customer name, amount of mortgage, interest rate, and term.

Don’t allow mortgage amounts over $300,000. Force any mortgage term that is not defined in the MortgageConstants interface to a short-term, one year loan. Create a getMortgageInfo method to display all the mortgage data.

MortgageConstants – includes constant values for short-term (one year), medium-term (three years) and long-term (5 years) mortgages. It also contains constants for bank name and the maximum mortgage amount.

BusinessMortgage – extends Mortgage. Its constructor sets the interest rate to 1% over the current prime rate.

PersonalMortgage - extends Mortgage. Its constructor sets the interest rate to 2% over the current prime rate.

ProcessMortgage – a main class that create an array of 3 mortgages. Prompt the user for the current interest rate. Then in a loop prompts the user for a mortgage type and all relevant information for that mortgage. Store the created Mortgage objects in the array. When data entry is complete, display all mortgages.

In: Computer Science

This assignment tests your understanding of abstract classes, inheritance, and requirements modeling using class-based methods. The...

This assignment tests your understanding of abstract classes, inheritance, and requirements modeling using class-based methods. The assignment scenario involves an abstract vehicle class and concrete subclasses Jeep and Ford. The vehicle class has the following variables (manufacturer, language), and methods (getManufacturer( ), and getLanguage( )). The manufacturer builds a specific vehicle (a Jeep and a Ford). The manufacturer will notify the consumer class that a Jeep and a Ford are available for purchase. The consumer class purchases the Jeep. Your

Tasks:

a) Draw a Use Case diagram based on the above scenario

b) Draw a UML Class diagram based on the above scenario

In: Computer Science

Eclipse Exercise 1 Write a Java application that implements different types of insurance policies for employees...

Eclipse

Exercise 1

Write a Java application that implements different types of insurance policies for employees of an organization.

Let Insurance be an abstract superclass and Health and Life two of its subclasses that describe respectively health insurance and life insurance.

The Insurance class defines an instance variable of type String to describe the type of insurance and an instance variable of type double to hold the monthly cost of that insurance.

Implement the get methods for both variables of class Insurance. Declare also two abstract methods named setInsuranceCost() and displayInfo() for this class.

The Life and Health class should implement setInsuranceCost and display methods by setting the appropriate monthly fee and display the information for each insurance type.

Write a driver class to test this hierarchy. This application should ask the user to enter the type of insurance and its monthly fee. Then, will create the appropriate object (Life or Health) and display the insurance information.

As you create each insurance object, place an Insurance reference to each new Insurance object into an array. Each class has its own setInsuranceCost method. Write a polymorphic screen manager that walks through the array sending setInsuranceCost messages to each object in the array and displaying this information on the screen.

Exercise #2:

Create an abstract class called GameTester. The GameTester class includes a name for the game tester and a boolean value representing the status (full-time, part-time).

Include an abstract method to determine the salary, with full-time game testers getting a base salary of $3000 and part-time game testers getting $20 per hour.

Create two subclasses called FullTimeGameTester, PartTimeGameTester. Create a console application that demonstrates how to create objects of both subclasses. Allow the user to choose game tester type and enter the number of hours for the part-time testers.

Exercise #3:

CityToronto bank provides mortgages for individuals and businesses up to $300,000. Write a Java application that keeps track of mortgages and computes the total amount owed at any time (mortgage amount + interest).

Design the following classes to implement your application:

Mortgage – an abstract class that implements the MortgageConstants interface. A Mortgage includes a mortgage number, customer name, amount of mortgage, interest rate, and term.

Don’t allow mortgage amounts over $300,000. Force any mortgage term that is not defined in the MortgageConstants interface to a short-term, one year loan. Create a getMortgageInfo method to display all the mortgage data.

MortgageConstants – includes constant values for short-term (one year), medium-term (three years) and long-term (5 years) mortgages. It also contains constants for bank name and the maximum mortgage amount.

BusinessMortgage – extends Mortgage. Its constructor sets the interest rate to 1% over the current prime rate.

PersonalMortgage - extends Mortgage. Its constructor sets the interest rate to 2% over the current prime rate.

ProcessMortgage – a main class that create an array of 3 mortgages. Prompt the user for the current interest rate. Then in a loop prompts the user for a mortgage type and all relevant information for that mortgage. Store the created Mortgage objects in the array. When data entry is complete, display all mortgages.

In: Computer Science

Executive Summary The executive summary is a company marketing document intended to excite potential investors, customers,...

Executive Summary

The executive summary is a company marketing document intended to excite potential investors, customers, advisers, and employees. Its purpose is to get the call back and start the serious discussions—the process that will result in action.

Your executive summary should include:

  • The Mission Statement
  • Company information
  • Growth highlights - Graphs and charts can be helpful in this section.
  • Your Products/Services
  • Financial information – If you are seeking financing, include any information about your current bank and investors.
  • Summarize future plans –
  • The elevator speech—for this assignment it will take the place of an abstract. It should be crisp, clear, and convey what the company is all about in less than 250 words.

This paper should have a title page, abstract (the elevator speech), body, and reference page. Points will be deducted if any of these four sections are missing. Make sure papers are written in correct APA style.

The executive summary should be between 400-600 words (not including the elevator speech/abstract), double space, and use font size 12. Structure the paper along the lines advised above.

In: Economics

Where in the eukaryotic cells we find membranes. Mention at least four membrane structures? What kind...

Where in the eukaryotic cells we find membranes.
Mention at least four membrane structures?

What kind of function does the cell membrane have?

Mention any types of molecules that can penetrate directly through the lipid bilayer, which is really not permeable?

How do larger molecules and charged ions come through
membranes?

In: Biology

This ad ran in 1947 by the diamond company De Beers. However, there is no mention...

This ad ran in 1947 by the diamond company De Beers. However, there is no mention of De Beers in the ad, only of diamonds. The ad is meant to increase demand for the entire diamond industry, rather than specifically increasing demand for De Beers diamonds. Why would De Beers run an advertising campaign that doesn’t even mention its name?

In: Economics

The concreting is going to be made for precast concrete. Choose the proper workability for the...

The concreting is going to be made for precast concrete.
Choose the proper workability for the fresh concrete (find from the reference books and standards, and mention your reference in the homework report).
Design an experiment to measure the workability of the concrete. Mention the method you are going to use to measure the workability and give the aimed value planned to obtain with the chosen method. Explain the experiment.

In: Civil Engineering

Write technical report any of building design software SketchUp or BIM at least 7 pages includes...

Write technical report any of building design software SketchUp or BIM at least 7 pages includes abstract, introduction, background, discussion, conclusion and recommendation.

In: Civil Engineering