In this problem, you will learn and practice OO programming concepts with 1) Python and 2) Java or C++.
Need help with this assignment?Get an original answer from a qualified tutor — from $10/page.
Get it written →In this problem, you will learn and practice OO programming concepts with
1) Python and 2) Java or C++.
We would like to process some standard geometric shapes. Each figure will be one of three standard shapes (rectangle, circle, and right triangle). We would like to be able to do standard computations, such as finding the area and perimeter, for any of these shapes.
A shape has a name. In addition, each rectangle has two other properties–width and height; each circle has one more property–radius, and each right triangle has two other properties– base and height. Choose appropriate data types for the information.
Program design requirements
=====================
The assignment will be graded based on the following requirements:
a. When appropriate, demonstrate appropriate use of access controls for the class and its members.
b. When appropriate, demonstrate method overloading and/or method overridden.
c. When appropriate, override/redefine inherited methods, instead of creating new ones. d. Make sure input values are checked, for example, radius should not be negative or zero. e. Demonstrate the use of abstract methods.
f. Be sure to professionally document your source code.
Get a plagiarism-free answer to this question
Send us your instructions and we’ll match you with the best writer in your subject.
- 100% human-written, zero AI
- Turnitin report included
- Confidential — we never share your data
- Free revisions & refunds