Design a class named Circle

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.

2.       2. Complete the following tasks: a. Design a class named Square with fields that hold the length of a side, the length of the perimeter, and the area. Include a constructor that sets the length of a side to 1. Include get methods for each field, but include a set method only for the length of a side, and do not allow a side to be zero or negative. When the side is set, calculate the perimeter length ( four times the side length) and the area ( a side squared). Create the class diagram and write the pseudocode that defines the class.

Don't use plagiarized sources. Get Your Custom Essay on
Design a class named Circle
Just from \$13/Page

b. Design an application that declares two Squares. Set the side length of one manually, but allow the other to use the default value supplied by the constructor. Then, display each Square’s values.

6. Complete the following tasks: a. Design a class named Book that holds a stock number, author, title, price, and number of pages for a book. Include methods to set and get the values for each data field. Also include a displayInfo() method that displays each of the Book’s data fields with explanations.

b. Design a class named TextBook that is a child class of Book. Include a new data field for the grade level of the book. Override the Book class displayInfo() method so that you accommodate the new grade- level field.

c. Design an application that instantiates an object of each type and demonstrates all the methods

Pages (550 words)
Approximate price: -

Why Us

At TheQuizlet.com, you are guaranteed of quality service from our professional writers. We maintain consistent communication with customers after placing an order to avoid missing anything that may compromise the quality of delivered work.

Top Writers

Our hiring process is rigorous to maintain the desired quality that has become the core of our business. We expose potential writers to an uncompromising selection process that enables TheQuizlet to pick the best out of the rest. TheQuizlet boasts of a competent team of writers, editors, and professors who work towards accomplishing your goals.

Plagiarism-Free Papers

TheQuizlet has an in-house plagiarism software that lowers the probability of delivering plagiarized papers to our clients. Referencing is guided by the format specified by a customer when placing an order. Our writers are conversant with all referencing formats that include APA, MLA, Chicago, Harvard, and Vancouver among others.

We understand the importance of effective communication and as such, TheQuizlet has a dedicated customer support department that responds to all client needs. You can easily contact our team through a chat window at the bottom left corner. Additionally, clients can reach us through support’s email or a telephone number available on our contact page. Feel free to contact us at any time and our team of experts will solve all your problems.

Swift Delivery and 100% Money-back Guarantee

When placing an order, ensure that you specify the correct deadline to help our writers work around the provided timeline. At TheQuizlet, we deliver our tasks before the projected deadline to give time for the customer to proofread the work before submission. In the event we cannot deliver a paper on time, we initiate contact with the client to renegotiate a new deadline.

Unlimited and Free Revisions

We urge all our customers to request for a revision whenever they identify a need to amend the paper. Since we understand your concerns, TheQuizlet.com does not charge for revisions. Nonetheless, we encourage customers to be genuine when requesting for revisions.

Try it now!

Calculate the price of your order

Total price:
\$0.00

How it works?

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Our Services

TheQuizlet is a one-stop shop for all your writing needs. We tackle each customer’s needs differently to improve the quality of outcomes and meet your expectations.

TheQuizlet is committed to delivering quality work on time to ensure our clients get the value for their money.