[SOLVED] 代写 Java INTRODUCTION TO COMPUTER SCIENCE

30 $

File Name: 代写_Java_INTRODUCTION_TO_COMPUTER_SCIENCE.zip
File Size: 414.48 KB

SKU: 4677996016 Category: Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Or Upload Your Assignment Here:


INTRODUCTION TO COMPUTER SCIENCE
Computer Science Department
Menu
Project ArtCollage – 100 course points
This assignment consists of creating an abstract data type called ArtCollage, where you will create a collage of images.
Refer to our Programming Assignments FAQ for instructions on how to install Sublime, how to use the command line and how to submit your assignments.
PROGRAMMING
We provide this ZIP FILE containing ArtCollage.java . Update and submit the Gle
on Autolab.
Observe the following rules:
DO NOT use System.exit().
DO NOT add the project or package statements.
DO NOT change the class name.
DO NOT add import statements other than the Color class already in the ArtCollage.java =le.
DO NOT change the headers of ANY of the given methods.
DO NOT add any new class =elds.
ONLY display the result as speci=ed by the
example for each problem.
You may USE any of the libraries provided in the zip =le.
1. ArtCollage (100 points). The ArtCollage class create a collage of image tiles and provides methods to transform the tiles individually. See ArtCollage.java for the description of each method.
One-argument Constructor
ArtCollage art = new ArtCollage(args
[0]);
art.showCollagePicture();
The original image (args[0]) has 1536 rows x 1819 columns. The collage resulting from the constructor on the left has 400 rows by 400 columns.
Three-argument Constructor
ArtCollage art = new ArtCollage(a
rgs[0], 200, 3);
art.showCollagePicture();
The original image (args[0]) has 1536 rows x 1819 columns. The collage resulting from the constructor on the left has 600 rows by 600 columns.
MakeCollage method
// Creates a collage of 3×3 tiles
. Each tile dimension is 200×200
pixels.
ArtCollage art = new ArtCollage(a
rgs[0], 200, 3);
art.makeCollage();
art.showCollagePicture();
// Creates a default collage of 4
x4 tiles. Each default tile dimen
sion is 100×100 pixels.
ArtCollage art = new ArtCollage(a
rgs[0]);
art.makeCollage();
art.showCollagePicture();
Change Tile Methods
// Creates a collage of 3×3 tiles
. Each tile dimension is 200×200
pixels
ArtCollage art = new ArtCollage(a
rgs[0], 200, 3);
art.makeCollage();
// Colorize tile at col 2, row 2
to only show the red component
art.colorizeTile(“red”,2,2);
art.showCollagePicture();
// Creates a collage of 3×3 tiles
. Each tile dimension is 200×200
pixels
ArtCollage art = new ArtCollage(a
rgs[0], 200, 3);
art.makeCollage();
// Colorize tile at col 2, row 1
to only show the blue component
art.colorizeTile(“blue”,2,1);
art.showCollagePicture();
// Creates a collage of 3×3 tiles
. Each tile dimension is 200×200
pixels
ArtCollage art = new ArtCollage(a
rgs[0], 200, 3);
art.makeCollage();
// Colorize tile at col 0, row 0
to only show the green component
art.colorizeTile(“green”,0,0);
art.showCollagePicture();
// Creates a collage of 3×3 tiles
. Each tile dimension is 200×200
pixels
ArtCollage art = new ArtCollage(a
rgs[0], 200, 3);
art.makeCollage();
// Converts the tile at col 1, ro
w 0 from color to greyscale
art.greyscaleTile(1, 0);
art.showCollagePicture();
// Creates a collage of 3×3 tiles
. Each tile dimension is 200×200
pixels
ArtCollage art = new ArtCollage(a
rgs[0], 200, 3);
art.makeCollage();
// Replace tile at col 1, row 1 w
ith args[1] image
art.replaceTile(args[1],1,1);
art.showCollagePicture();
Note: Make sure to test colorizeTile() and greyscaleTile() using a collage where each tile has a different image.
ArtCollage art = new ArtCollage(a
rgs[0], 200, 2);
art.makeCollage();
// Replace 3 tiles
art.replaceTile(args[1],0,1);
art.replaceTile(args[2],1,0);
art.replaceTile(args[3],1,1);
art.colorizeTile(“green”,0,0);
art.showCollagePicture();
BEFORE SUBMISSION
2. Collaboration policy. Read our collaboration policy here.
3. Update @author. Update the @author tag of the =les with your name, email and netid.
4. Submitting the assignment. Submit ArtCollage.java via the web submission system called Autolab. To do this, click the Assignments link from the course website; click the Submit link for that assignment.
GETTING HELP
If anything is unclear, don’t hesitate to drop by oQce hours or post a question on Piazza. Find instructors oQce hours by clicking the Staff link from the course website.
For problems or questions about this site, please contact
[email protected]
Rutgers is an equal access/equal opportunity institution. Individuals with disabilities are encouraged to direct suggestions, comments, or complaints concerning any accessibility issues with Rutgers websites to [email protected] or complete the Report Accessibility
Barrier / Provide Feedback form.
Copyright ©2019, Rutgers, The State University of New Jersey, an
equal opportunity, abirmative action institution. All rights reserved. – Login –

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] 代写 Java INTRODUCTION TO COMPUTER SCIENCE
30 $