Write the statement that would be used in the main program to set the length of the
Question:
Write the statement that would be used in the main program to set the length of the side of MyRectangle equal to 15 and the height equal to 25.
Transcribed Image Text:
Class Square Declare Protected Side, Area As Float Public Square() Set Side 1.0 %3! Set Area = 1.0 End Constructor Public Subprogram SetSide (NewSide) Set Side = NewSide End Subprogram Public Subprogram ComputeArea () Set Area = Side^2 %3! End Subprogram Public Function GetArea() As Float Set GetArea = Area End Function Public Function GetSide () As Float Set GetSide = Side End Function End Class Class Rectangle Extends Square Declare Private Height As Float Public Rectangle() Call Square () Set Height = 1.0 %3! End Constructor Public Subprogram SetHeight (NewHeight) Set Height = NewHeight End Subprogram Public Function GetHeight() As Float Set GetHeight = Height End Function Public Subprogram ComputeArea () Set Area = Side * Height End Subprogram End Class
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 44% (9 reviews)
Answered By
Muhammad Khurram
I have strong General Management skills to apply in your projects. Over last 3 years, I have acquired great knowledge of Accounting, Auditing, Microsoft Excel, Microsoft PowerPoint, Finance, Microsoft Project, Taxation, Strategic Management, Human Resource, Financial Planning, Business Planning, Microsoft Word, International Business, Entrepreneurship, General Management, Business Mathematics, Advertising, Marketing, Supply Chain, and E-commerce. I can guarantee professional services with accuracy.
4.80+
249+ Reviews
407+ Question Solved
Related Book For
Question Posted:
Students also viewed these Computer science questions
-
Determine the critical values that would be used in testing each of the following null hypotheses using the classical approach. Ho: Ho: Ho: 0 vs. Ha: 0, with n 18 and 0 vs. Ha: > 0, with n 32...
-
a. Measure all the voltages and currents indicated. - Note that elements are connected in parallel. Follow best practices covered in the lecture for parallel connection of elements to one point. b....
-
Determine the test criteria that would be used to test the following hypotheses when z is used as the test statistic and the classical approach is used. Hop 0.5 and Ha: p > 0.5, with 0.05 Ho:p = 0.5...
-
Prove that, the area of the traverse is equal to the algebraic sum of the products of the total latitude of each point and algebraic sum of the departures of the lines meeting at that point.
-
What is the price elasticity of demand, and why is it important?
-
Lab and supervision activities - Albert estimates that these activities are split 60% Chardonnay-Estate, 25% regular Chardonnay, and 15% Blanc de Blanc. Other production activities and costs not...
-
Conventional accounting systems are said to have some uncontested advantages over the absence of accounting systems. What are these uncontested advantages?
-
Alyeski Tours operates day tours of coastal glaciers in Alaska on its tour boat the Blue Glacier. Management has identified two cost driversthe number of cruises and the number of passengersthat it...
-
5 [10 points]. We provide web-site design services for small and medium businesses. We bid for design jobs based largely on our estimated cost of doing the design job. We estimate the cost of using...
-
You are a new consultant with the Boston Group and have been sent to advise the executives of Penury Company. The company recently acquired product line L from an out- of- state concern and now plans...
-
Create an instance of the class, Rectangle and reference it with the name MyRectangle. Class Square Declare Protected Side, Area As Float Public Square() Set Side 1.0 %3! Set Area = 1.0 End...
-
Write the statement that would be used in the main program to compute the area of MyRectangle. Class Square Declare Protected Side, Area As Float Public Square() Set Side 1.0 %3! Set Area = 1.0 End...
-
Hero Stars produces stars for elementary teachers to reward their students. Hero Stars' trial balance on June 1 follows: HERO STARS Trial Balance June 1, 2018 June 1 balances in the subsidiary...
-
Piedmont Company segments its business into two regions-North and South. The company prepared the contribution format segmented income statement as shown: Sales Variable expenses Contribution margin...
-
Under its plan of liquidation, Better Corp will distribute all of its assets to its sole shareholder, Barry. The assets have a FMV of $50,000 and an adjusted basis of $14,000. Barry's basis in Corp...
-
What is the average net present value that Orange Tech earns from his customer?
-
Suppose that left-handed people are more prone to accidents than right-handed. Lefties have a certain chance of suffering an injury equivalent to a $500 loss; righties only have a 50 percent chance....
-
A heat engine operating between 62.343 o C and 684.496 o C has an efficiency 65.725 % of that of a Carnot engine operating between the same temperatures. If the engine absorbs heat at a rate of 67.91...
-
Yuan and Maxwell (2005) investigated how the power of a study influences the decisions researchers make in an experiment. In their introduction concerning effect size, they stated that "the exact...
-
Chapter 9 Stock Valuation at Ragan Engines Input area: Shares owned by each sibling Ragan EPS Dividend to each sibling Ragan ROE Ragan required return Blue Ribband Motors Corp. Bon Voyage Marine,...
-
In Chapter 1, we mentioned that the TCP/IP suite, unlike the OSI model, has no session layer. But an application-layer protocol can include some of the features defined in this layer if needed. Does...
-
Are the HELO and MAIL FROM commands both necessary in SMTP? Why or why not?
-
In Chapter 1, we mentioned that the TCP/IP suite, unlike the OSI model, has no presentation layer. But an application-layer protocol can include some of the features defined in this layer if needed....
-
Grouper Corporation was organized on January 1, 2022. It is authorized to issue 15,000 shares of 8%, $100 par value preferred stock, and 549,000 shares of no-par common stock with a stated value of...
-
what is teamwork ? why is it important ? what intrigued you the most about teamwork ? Share your understanding of Workflow Design and Teamwork Share your PERSONAL experience with Workflow Design and...
-
Consider the following function. # 1. Factor out the GCF. f(x)=x-x-4x+4x Hint: The answer should look similar to the following. f(x)=?(?-?-?+?) # 2. From the correct answer of # 1, factor out the GCF...
Study smarter with the SolutionInn App