Object oriented Programming, programming homework help

1. Identify three objects that might belong to each of the following classes: a. Building b. Artist c. BankLoan

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

2.  Identify three different classes that might contain each of these objects: a. William Shakespeare b. My favorite red sweater c. Public School 23 in New York City

3. Design a class named TermPaper that holds an author’s name, the subject of the paper, and an assigned letter grade. Include methods to set the values for each data field and display the values for each data field. Create the class diagram and write the pseudocode that defines the class.

Pseudo code is compulsory

Assignment 2

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

1. Complete the following tasks:
a. Design a class named Circle with fields named radius, area, and diameter.
Include a constructor that sets the radius to 1. Include get methods for each
field, but include a set method only for the radius. When the radius is set, do not
allow it to be zero or a negative number. When the radius is set, calculate the
diameter (twice the radius) and the area (the radius squared times pi, which is
approximately 3.14). Create the class diagram and write the pseudocode that
defines the class.
b. Design an application that declares two Circles. Set the radius of one manually,
but allow the other to use the default value supplied by the constructor. Then,
display each Circle’s values.

Still stressed from student homework?
Get quality assistance from academic writers!

Order your essay today and save 25% with the discount code LAVENDER