Reference no: EM131102953
TITLE
- Development and Implementation of Shape Class
OBJECTIVE
- To test students' capabilities of understanding on object oriented programming (OOP) in C++.
- To implement OOP in developing shape classes and use them to draw (print) objects.
- To improve students' imagination by giving space of creativity.
ASSIGNMENT DESCRIPTION
You are required to create shape classes and use them to build an application in text mode console (not graphic mode).
TASK 1
In first task, you are required to create a base Shape class and its successor a Rectangle elassids The base class is called Shape class. The Shape class has few methods and attributes.
shows the minimum methods and attributes that the class should have. Student can (or should) add more methods and attributes to make the class works. Student can modify methods and attributes name.
Rectangle class is the inheritance of Shape class. Rectangle class can access to all (or some) methods and attributes of Shape class. To determine which methods and attributes derived from the base class, student has to understand the concept of inheritance and encapsulation.
For example, a rectangle is formed of four lines. Therefore, Rectangle class must have ability to print lines. In the other hand, when draw method in Rectangle class is called, Rectangle class calls line methods of Shape class (not creating own methods).
Stamps of two denominations
: If Sabrina spent $17.94 for a total of 54 stamps of these two denominations, how many stamps of each denomination did she buy?
|
What was last year''s dividend per share
: After a 5-for-1 stock split, the Strasburg Company paid a dividend of $0.75 per new share, which represents a 9 percent increase over last year's pre-split dividend. What was last year's dividend per share?
|
Total annual interest earned
: An actor invests some money at 7%, and $41000 more than twice the amount at 12%. The total annual interest earned from the investment is $38400.
|
Crane to unload this ship
: Two cranes can unload a ship together in 6 hours. The faster crane takes 5 hours less than the slower crane, if each were to unload the same ship alone. How long does it take for each crane to unload this ship?
|
Create a base shape class
: Create a base Shape class and its successor a Rectangle elassids The base class is called Shape class. The Shape class has few methods and attributes.
|
Determining scope of the literature review is daunting task
: The literature review must communicate the foundations of knowledge that underlie the research without becoming redundant (Abramson, 2015). Abramson (2015) suggest that the researcher will know how to conclude his search, when the readings no long..
|
Initial gift needs to be in order for the reciepient
: How far would you have to go to receive $10,000. How would you determine how much the initial gift needs to be in order for the reciepient to recieve $10,000
|
Why is a margin of error necessary
: Why is a margin of error necessary? That is, why do the polls not simply report that 49% approve of the job President Obama is doing? What causes the uncertainty that makes such a margin of error necessary
|
Determine the bandwidth of the modulator output
: Determine the bandwidth of the modulator output if a power ratio, Pr, of 0.8 is needed. Repeat for a power ratio of 0.9.
|