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...
-
Simon Kirk, a veterinarian and citizen of Canada, sought to obtain a license to practice veterinary medicine from the State of New York. Kirk was neither a U.S. citizen nor a permanent resident...
-
The Balance Sheet of Producers Ltd as at 31st December, 2016 is as follows: You are required to give the journal entries, including those relating to cash to record the above transactions and draw up...
-
On January 1, 2020, Hockey Unlimited Inc. purchased 2,500 of the 10,000 outstanding common shares of Goal Corporation for \(\$ 14,000\) cash obtaining significant influence of the company. Hockey...
-
The following data were taken from the records of Clarkson Manufacturing Company for the fiscal year ended June 30, 2012. Instructions (a) Prepare a cost of goods manufactured schedule. (Assume all...
-
Martinez Realty Corporation purchased a tract of unimproved land for $51,000. This land was improved and subdivided into building lots at an additional cost of $27,000. These building lots were all...
-
Chumpy Lighting Limited manufactures a wide variety of light bulbs which it sells to lighting shops and builders merchants through wholesale distributors. It also sells direct to the big UK...
-
City Art Gallery (CAG) is an Alberta not-for-profit organization managing the operations of a gallery with 65 full-time employees and 25 volunteers. CAG is primarily funded by government grants, and...
-
In a vertical jump shown below, there is a velocity versus time graph. a ) ? Where is the person jumping in the air? How do you know this? b ) ? If the time between each tick in the graph is 0 . 1...
-
(This requires extending what was in the text.) Find all Nash equilibria in the following 3 x 3 game: Column C N V (1,9) (4,2) (7,7) Row N (3, 4) (9,3) (5, 1) V (6,5) (2,6) (8, 8)
-
Triangular Chemicals has total assets of $96 million, a return on equity of 36 percent, a net profit margin of 4.9 percent, and an equity multiplier of 2.81. How much are the firm's sales? The...
-
A medical cyclotron used in the production of medical isotopes accelerates protons to 7.2 MeV. The magnetic field in the cyclotron is 1.9 TT. What is the diameter of the largest orbit, just before...
-
The owner of a large machine shop has just finished its financial analysis from the prior fiscal year. Following is an excerpt from the final report: Net revenue Cost of goods sold Value of...
-
Question 2 (13 marks) Ms. Jane Tong is planning her early retirement. Currently, Jane has $10,000,000 in savings and plans to invest all the money into CBIC Corporation's shares. CBIC has just paid...
-
Pearl Medavoy will invest $10,240 a year for 20 years in a fund that will earn 10% annual interest. . If the first payment into the fund occurs today, what amount will be in the fund in 20 years? If...
-
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...
-
Today many people purchase collectible items as investments. They buy baseball cards, commemorative coins, stuffed animals, and art.
-
Every day after school, Trent volunteers at his neighborhood community center. He helps the young children with their homework and organizes sports activities. Trent really believes in the work that...
-
What are some sources of financial information?
Study smarter with the SolutionInn App