Sinar Harian Sdn. Bhd is a property company that offers the services to the clients who...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Sinar Harian Sdn. Bhd is a property company that offers the services to the clients who need to buy properties. The company offers two types of services, which is land lot and luxury condominium. The company offers three types of the land lot. The client needs to pay 5% of loan legal fee from the land lot price. The price for the land lot as shown in the following table: Type of land lot Price (RM) 350,000.00 250,000.00 150,000.00 Meanwhile, the price offer is RM 650.00/psf (per square feet) for luxury condominium. The clients also need to pay SPA legal fee and loan legal fee imposed 5% of the condominium price. Besides, 10% discount is given to the Malaysian citizen, and foreigners need to pay extra 6% of the condominium price as a govemment service tax. Given the following superclass and subclasses named client, LandLot, and Condominium. Superclass Attributes: Methods: Subclass Attributes: Methods: Subclass Attributes: B с : Methods: : Client : String customerName; int propertyNo; String date; : constructor, mutator, retriver, printer abstract double calcTot Price (); //to calculate total price LandLot // customer name // property number //e.g. 10/5/2014 Condominium 11/to : char type: // type land of lot : Constructor, mutator, retriever, printer, abstract method : double size: // size of condominium boolean citizen; // true if Malaysian citizen double SPALegal Fee; // SPA legal fee double loanLegal Fee; // loan legal fee : Constructor, mutator, retriever, printer, abstract method a) Write a method named calc TotPrice() to calculate total price for both subclasses. b) Write a program for each of the following questions: i) Declare an array of objects to store 50 data ii) Calculate and display the total price for land lot and luxury condominium collected from the clients. iii) Display the detail information for all luxury condominium from Malaysian citizen Sinar Harian Sdn. Bhd is a property company that offers the services to the clients who need to buy properties. The company offers two types of services, which is land lot and luxury condominium. The company offers three types of the land lot. The client needs to pay 5% of loan legal fee from the land lot price. The price for the land lot as shown in the following table: Type of land lot Price (RM) 350,000.00 250,000.00 150,000.00 Meanwhile, the price offer is RM 650.00/psf (per square feet) for luxury condominium. The clients also need to pay SPA legal fee and loan legal fee imposed 5% of the condominium price. Besides, 10% discount is given to the Malaysian citizen, and foreigners need to pay extra 6% of the condominium price as a govemment service tax. Given the following superclass and subclasses named client, LandLot, and Condominium. Superclass Attributes: Methods: Subclass Attributes: Methods: Subclass Attributes: B с : Methods: : Client : String customerName; int propertyNo; String date; : constructor, mutator, retriver, printer abstract double calcTot Price (); //to calculate total price LandLot // customer name // property number //e.g. 10/5/2014 Condominium 11/to : char type: // type land of lot : Constructor, mutator, retriever, printer, abstract method : double size: // size of condominium boolean citizen; // true if Malaysian citizen double SPALegal Fee; // SPA legal fee double loanLegal Fee; // loan legal fee : Constructor, mutator, retriever, printer, abstract method a) Write a method named calc TotPrice() to calculate total price for both subclasses. b) Write a program for each of the following questions: i) Declare an array of objects to store 50 data ii) Calculate and display the total price for land lot and luxury condominium collected from the clients. iii) Display the detail information for all luxury condominium from Malaysian citizen
Expert Answer:
Answer rating: 100% (QA)
4a Java code for calcTotPrice in subclasses LandLot and Condominium public class LandLot extends Cli... View the full answer
Related Book For
South-Western Federal Taxation 2020 Comprehensive
ISBN: 9780357109144
43rd Edition
Authors: David M. Maloney, William A. Raabe, James C. Young, Annette Nellen, William H. Hoffman
Posted Date:
Students also viewed these programming questions
-
1. Hannah is applying for a life policy on her girlfriend Sarahs life. The policy is $500,000 and carries a large premium. Hannah is the main earner, so she is concerned about not being able to pay...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
Hakeem purchased some Apple iPhone. To make a profit he decides to use the formula below profit = iPhone cost * 2.5 Create 2 function. Main() Have the while loop call the profitcalc() and request if...
-
The refrigerator has a weight of 180 lb and rests on a tile floor for which ? s = 0.25.Also, the man has a weight of 150 lb and the coefficient of static friction between the floor and his shoes is ?...
-
What are the main beliefs of each of the seven religions presented above?
-
Let \(R\) and \(R\) be two independent \(\mathrm{BES}^{3}\) processes. Prove that the filtration generated by the process \(Y_{t}=R_{t}^{-1}-\widetilde{R}_{t}^{-1}\) is the filtration generated by...
-
Newbirth Coatings Company purchased waterproofing equipment on January 2, 2009, for $380,000. The equipment was expected to have a useful life of four years, or 8,000 operating hours, and a residual...
-
Sunny Ltd produces four products. Information on each product is shown below: A B C D Budgeted sales (units) 4,000 2,000 3,000 1,000 Selling prices $60 $45 $52 $95 Production costs per unit Direct...
-
The focus of this project is to create a master budget for the Williams Company based on the companys industry outlook, recent company outcomes, and the companys business rules. You will create a...
-
Solve 3m + 3 + 4m = 3 + 4 (3+2m) for m.
-
Racie will receive payments of $550 a month for ten years. What are these payments worth today at a discount rate of 6 percent, compounded monthly?
-
1. What is the present value of $1,552.90 due in 10 years at (1) a 12 percent discount rate and (2) a 6 percent rate? 2. To the closest year, how long will it take a $200 investment to double if it...
-
Suppose a supplier gives you a price on a contract and then later comes back and claims that he mistakenly wrote down the wrong price. Do you have the right to sue the supplier over breach of...
-
A worker pushes a crate and the net force is 200. N. If the crate moves with an acceleration of 0.750 m/s, what is its (a) mass and (b) weight?
-
If the labor force of 160 million people is growing by 1.2 percent this year, how many new jobs have to be created each month to keep unemployment from increasing? Instructions: Enter your response...
-
Baker Construction Corp. entered into a contract with Menlo Inc. to construct a new office building, on January 1, 2019. The price of the new building totaled $1,000,000, construction began in...
-
Why is a help desk and production support critical to system implementations? Discuss its interrelationship with the problem management and reporting system.
-
During the current year, Paul, the vice president of a bank, made gifts in the following amounts: To Sarah (Paul's personal assistant) at Christmas .................... $36 To Darryl (a key...
-
Dan bought a hotel for $2,600,000 in January 2015. In May 2019, he died and left the hotel to Ed. While Dan owned the hotel, he deducted $289,000 of cost recovery. The fair market value in May 2019...
-
Crane and Loon Corporations, two unrelated C corporations, have the following transactions for 2015: a. Compute the dividends received deduction for Crane Corporation. b. Compute the dividends...
-
Consider the two-tank liquid-level system shown in Figure 7.17. The liquid is pumped into tanks 1 and 2 through valves of linear resistances \(R_{1}\) and \(R_{2}\), respectively. The pressure of the...
-
The room shown in Figure 7.34 has a heater with heat flow rate input of \(q_{0}\). The thermal capacitances of the heater and the room air are \(C_{1}\) and \(C_{2}\), respectively. The thermal...
-
Figure 7.46 represents the temperature dynamics of two adjacent objects, where the thermal capacitances of the objects are \(C_{1}\) and \(C_{2}\), respectively. Assume that the temperatures of both...
Study smarter with the SolutionInn App