Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that prints an imitation of the Composition II in Red, Blue, and Yellow created in 1930 by Piet Mondrian painting, illustrated below.

image text in transcribed
Write a program that prints an imitation of the Composition II in Red, Blue, and Yellow created in 1930 by Piet Mondrian painting, illustrated below. Use character sequences such as @@a or: to indicate different colors and use - and| to form the black lines. with algorithm public class Solution - public static void main(String[] args) { for(int FI ;12 && 39){ System.out.print("@ "); 3 else if(i--39)\ System.out.print( "-"); } else ifti-39 && j12) { System.out.prinu". "); } else ifj12 && ==15){ System.out.print"-"); } else ifi-39 && -45 System.out.print(" "); } else ifi--45 &&j245){ System.out.print"- "); 3 else iffi>45 && j>45) System.out.print("% "); } else { System.out.print" "); System.out.println); } I I have this java code but it gives me "long output" error in browxy compiler

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

More Books

Students also viewed these Databases questions

Question

What is the status (prevalence) of unions today?

Answered: 1 week ago

Question

Prepare income statement and financial position.

Answered: 1 week ago