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?
Instead of combining lines, solid modelling lets the designer shape and sculpt the thing. Explain?
When using solid modelling, the designer has the option of moulding and sculpting the item rather than building it out of a collection of lines. 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
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education