Reference no: EM131182059
1. a. The Talk-A-Lot Cell Phone Company provides phone services for its customers. Create an abstract class named PhoneCall that includes a String field for a phone number and a double field for the price of the call. Also include a constructor that requires a phone number parameter and that sets the price to 0.0. Include a set method for the price. Also include three abstract get methods-one that returns the phone number, another that returns the price of the call, and a third that displays information about the call. Create two child classes of PhoneCall: IncomingPhoneCall and OutgoingPhoneCall. The IncomingPhoneCall constructor passes its phone number parameter to its parent's constructor and sets the price of the call to 0.02. The method that displays the phone call information displays the phone number, the rate, and thepriceofthecall(whichisthesameastherate). The OutgoingPhoneCall class includes an additional field that holds the time of the call in minutes. The constructor requires both a phone number and the time. The price is 0.04 per minute, and the display method shows the details of the call, including the phonenumber, the rate per minute, thenumber of minutes, and the total price. Write an application that demonstrates you can instantiate and display both IncomingPhoneCall and OutgoingPhoneCall objects. Save the files as PhoneCall.java, IncomingPhoneCall.java, OutgoingPhoneCall.java, and DemoPhoneCalls.java.
b. Write an application in which you assign data to a mix of 10 IncomingPhoneCall and OutgoingPhoneCall objects into an array. Use a for loop to display the data. Save the file as PhoneCallArray.java.
2. Create an abstract Division class with fields for a company's division name and account number, and an abstract display() method. Use a constructor in the superclass that requires values for both fields. Create two subclasses named InternationalDivision and DomesticDivision. The InternationalDivision includes a field for the country in which the division is located and a field for the language spoken; its constructor requires both. The DomesticDivision includes a field for the state in which the division is located; a value for this field is required by the constructor. Write an application named UseDivision that creates InternationalDivision and DomesticDivision objects for two different companies and displays information about them. Save the files as Division.java, InternationalDivision.java, DomesticDivision.java, and UseDivision.java.
3. Create an abstract class named Element that holds properties of elements, including their symbol, atomic number, and atomic weight. Include a constructor that requires values for all three properties and a get method for each value. (For example, the symbol for carbon is C, its atomic number is 6, and its atomic weight is 12.01. You can find these values by reading a periodic table in a chemistry reference or by searching the Web.) Also include an abstract method named describeElement(). Create two extended classes named MetalElement and NonMetalElement. Each contains a describeElement() method that displays the details of the element and a brief explanation of the properties of the element type. For example, metals are good conductors of electricity, while nonmetals are poor conductors. Write an application named ElementArray that creates and displays an array that holds at least two elements of each type. Save the files as Element.java, MetalElement.java, NonMetalElement.java, and ElementArray.java.
Defining properties of a standard brownian motion
: 1. State five key defining properties of a standard Brownian motion. 2. Outline the advantages and disadvantages of using the continuous time lognormal model for stock prices by considering both the theoretical features of the model and its cons..
|
Assessment of validity or otherwise of efficient markets
: Explain to what extent the results of such tests should affect the assessment of the validity or otherwise of the efficient markets hypothesis.
|
Target sales of the appliance control computer
: RIC’s marketing department plans to target sales of the appliance control computer to the owners of larger homes - the computer is cost effective only on homes with 2,000 or more square feet of heated/air-conditioned space. The marketing vice-preside..
|
Explain the structure of current insurance regulation
: Briefly explain the structure of current insurance regulation. Specifically, explain whether the federal government regulates insurance or whether each state has regulatory responsibilities. Describe the impact of the key law that determined how the ..
|
Write an application in which you assign data
: Write an application in which you assign data to a mix of 10 IncomingPhoneCall and OutgoingPhoneCall objects into an array. Use a for loop to display the data. Save the file as PhoneCallArray.java.
|
To what extent cognitive biases may have contributed
: To what extent do you think that cognitive biases may have contributed to the global financial crisis that gripped financial markets in 2008 - 2009?
|
Firm earnings per share after recapitalization
: The Rivoli Company has no debt outstanding, and its financial position is given by the following data: Assets (Market value = book value) $3,000,000 EBIT $500,000 Cost of equity, rs 10% Stock price, Po $15 Shares outstanding, no 200,000 Tax rate, T (..
|
Costs and benefits of various policies can be quantified
: Do you believe, in principle, that the costs and benefits of various policies can be quantified in monetary terms? Do you believe that some impacts cannot be fundamentally measured in dollars? How would you suggest that we evaluate these impacts?
|
Whether three payments are income from personal exertion
: Discuss whether or not the three payments are income from personal exertion. - Would your answer differ if she wrote the story for her own satisfaction and only decided to sell it later?
|