(adsbygoogle = window.adsbygoogle || []).push({});
So my programming teacher was out so he left us with busy work by having us write different types of programs. The class is programming 1 with Java and he hasn't taught us how to do these two things so I was hoping someone on here could help. I'm not asking for someone to do the work for me. Just help guide me or write me a little tutorial on how to do it. The problems are listed below.
Flags:
National flags are displayed on various web sites, such as
You must login or register to view this content.. The flags of France, Mauritius, and Bulgaria consist of flat, colored areas. Write separate programs that display these flags.
Rectangles:
Write a program that displays a 3-by-3 grid of black and white rectangles. The rectangles should be positioned so that no two rectangles of the same color are adjacent to each other.