Highlights
To practice using the Math class and the String class. (Lecture/Workshop 2)
To practice reading from the console and writing to the screen.
To practice using a switch and/or multiway selection branches
To practice using loops (repetition)
In this assignment you will be making some tools to be used by graphic designers to automate placing of graphical overlays on images.
You will need to make the following classes.
Rectangle.java
Oval.java
Triangle.java
ShapeDriver.java
The first three classes MUST ALL have:
A constructor that takes 5 arguments (int x, int y, int sizex, int sizey, Colour colour)
A method public void draw(BufferedImage img);
Only the ShapeDriver class should have a void main()
The driver program will take user input from the command line arguments.
You must not use the Scanner class!
Please read the “how to use command-line arguments” section below.
The shape classes will all operate in a similar manner as described below.
The user will provide the following data via command-line arguments:
The name of an input image. (optional)
The name of the shape (one of “rectangle”, “oval”, “triangle”)
The X (horizontal from the left edge) position of where the shape will sit on the image (in pixels)
The Y (vertical from the top edge) position of where the shape will sit on the image (in pixels)
The width of the shape
The height of the shape.
The name of a colour.
The name of the output image
This CSE1OOF: IT/Computer Science Assignment has been solved by our IT/Computer Science Experts at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our experts are well trained to follow all marking rubrics & referencing style.
Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.
© Copyright 2026 My Uni Papers – Student Hustle Made Hassle Free. All rights reserved.