Objects First with Java: A Practical Introduction Using BlueJ (6th Edition)
Objects First with Java: A Practical Introduction Using BlueJ (6th Edition)
6th Edition
ISBN: 9780134477367
Author: David J. Barnes, Michael Kolling
Publisher: PEARSON
bartleby

Concept explainers

Expert Solution & Answer
Book Icon
Chapter 1, Problem 9E

Explanation of Solution

Given: Refer to the figure 1.8 in Chapter 1 Exercise 1.9.

To find: The steps and recreate any image from figure 1.8 by using the figures project and also identify if it could be done in different ways.

Solution:

The Hilltop Picture-

The hill:

Create a new object for class Circle.

Call makeVisible() method.

Change the color of circle by calling the changeColor (write “green� in the popup window) method.

Change the size of the circle with changeSize() method to a value like 1000.

Move the circle to the left with moveHorizontal(-500) method.

Move circle down with moveVertical(125) method.

The sun:

Create a new Circle object.

Make it visible using makeVisible() method.

Set the size of the object circle to 30 using changeSize() method.

Move it towards right side by 150 pixels using moveHorizontal() function.

Blurred answer
Students have asked these similar questions
As opposed to just joining a series of lines, the designer might use solid modelling to form and sculpt the thing from the ground up. Explain?
please give a very detail explanation of this diagram on the image ?
Instead of building the thing by connecting together a succession of lines, the designer may use solid modelling to create the object by moulding and sculpting it. Explain?
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L
Text book image
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage