Concept explainers
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.
Want to see the full answer?
Check out a sample textbook solutionChapter 1 Solutions
Objects First with Java: A Practical Introduction Using BlueJ (6th Edition)
- When solid modeling is used instead of just lines, it can give images a more three-dimensional and organic look. Explain?arrow_forwardCan you draw on it because I don't understand this problem, I understand it better when someone writes on the photo so I can understandarrow_forwardThe maker of a solid model may instead shape it by moulding and sculpting the data, as opposed to creating the item by putting together a series of lines in order to form it. This is because solid models are more complex. Explain?arrow_forward
- I would like to get a fresh and brand new code for the following scenario (attached as an image). it would be great if you can add comments in your code saying why you have taken those particular algorithms.arrow_forwardAs opposed to just stringing lines together, the use of solid modelling gives designers the ability to mould and sculpt an object from the ground up. Explain?arrow_forwardInstead of drawing a shape by connecting points, a designer using solid modeling may instead mold and shape the thing. Explain?arrow_forward
- When employing solid modelling, a designer may instead make an item by moulding and sculpting it as opposed to putting a sequence of lines together to form the thing. Explain?arrow_forwardSolid modeling allows the designer to create and sculpt the item from the very beginning, as opposed to just combining a sequence of lines, as is the case with traditional modeling. Explain?arrow_forwardInstead of drawing out a set of lines to represent an item, a designer using solid modeling may instead mold and shape the thing. Explain?arrow_forward
- When using solid modelling, the designer may shape the thing by moulding and moulding it instead of connecting together a sequence of lines. Explain?arrow_forwardDraw the flow chart for the following: This project will use an ultrasonic sensor to detect motion and light different leds and sound a buzzer depending on the distance of an object from the sensor: We will use Green, Yellow, Red leds and buzzer to signal distance of object as follows: Light the GREEN LED if the object is greater than 100cm away from sensor Light the YELLOW LED if the object is between 70cm and 100cm away from sensor Light the RED LED if the object is less than 70cm away from the sensor and sound the buzzerarrow_forwardWhen using solid modelling, a creator might not put lines together to make an item, but instead build and shape it. This is different from the usual way of making things by joining lines together. Explain?arrow_forward
- COMPREHENSIVE MICROSOFT OFFICE 365 EXCEComputer ScienceISBN:9780357392676Author:FREUND, StevenPublisher:CENGAGE LNp Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:Cengage