Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In java. Please show output. Create the necessary JAVA files/functions to solve the problem below. Feel free to explore the JAVA syntax online, we suggest

In java. Please show output.
image text in transcribed
image text in transcribed
Create the necessary JAVA files/functions to solve the problem below. Feel free to explore the JAVA syntax online, we suggest you use java official documentation. Homework Instructions We will implement a Java program that splits the screen into 4 quadrants and draws a random shape in each quadrant. The shapes will be randomly chosen from the bulleted list below. Your code will generate random colors and sizes for each shape. You can have the same shape generate more than once (For example, you might have 3 squares show up). Bonus: +10 points awarded if the shape is created at a random location within that quadrant. The shapes must not go off the screen or overlap with another quadrant! Here are the shapes that you should randomly choose from; - Square (each side is n pixel) - Circle (radius is n pixel) - Rectangle (width =2n pixel, height =n pixel) - Equilateral Triangle (each side is n pixel) For each run; - your code should split the window into four pieces and draw 4 random shapes from the list above [ 50 points] - For each shape; generate a random integer value for n value (for each n25<>

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

3rd Edition

978-1119907466

More Books

Students also viewed these Databases questions