Java shape program console

Assignment Help JAVA Programming
Reference no: EM13759213

Java Shape Program Console

only a single .java file.
Your score is divided among the following items:
• Program is adequately documented. It's comments identifies its name, purpose, author and date. Throughout the code, comments and/or relevant component names should attempt to make the program understandable.
• Code carefully addresses each task in the assignment.
• The program compiles without error and pertains to the assignment.
Tasks
Use loops and conditions in Java to produce shapes out of Unicode characters. The program's user menu affects a switch-statement, which in turn affects the program's action. A menu is displayed which asks a user to select a shape:
1 triangle
2 square
3 diamond
The program then asks the user to enter any character with which to fill the shape, such as *, or enter nothing for the program's default character set. This default entails filling the shape with the characters of the alphabet according to their sequential Unicode decimal value (see http://unicodelookup.com ). Therefore, the number of characters in each shape should at least accommodate the entire alphabet. For example, a square might look like:
A B C D E F
G H I J K L
M N O P Q R
S T U V W X
Y Z a b c d
e f g h I j
Your program must draw these shapes iteratively and use at least each of the following loop types at least once: for, while, do while.
You do not get to use Swing's pre-built shape methods. For output in applet form, you must adjust the coordinates in g.drawString(" ", x, y) with each loop iteration. You may alternatively submit the program in non-applet (command-line) form, which I recommend. 5% extra credit: Add the choice of a circle to your completed shape generating program.

Reference no: EM13759213

Determine total annual compensation of a salesperson

Write a Java application using NetBeans Integrated Development Environment (IDE) that calculates the total annual compensation of a salesperson. Consider the following facto

Describe how you would design a class for it

A class is a blueprint for an object. A class may have a default constructor, a constructor with arguments, accessor methods, public fields, private fields, and mutator meth

Provide java code to create and initialize an array

Provide Java code to create and initialize an array of integers (Java primitive int), floats or any other Java primitive type of your choice. You pick the array name and leng

Fix the error in personal names

Write a program which will get the personal names from the user and store them in an array list called "personalNames". If there is any other character besides "a-z" or "A-Z

Find and display the max value and the index of the max

Find and display the max value and the index of this max. Display the Even elements. Sorts and displays the numbers from lowest to highest using Arrays.sort()

Create three jlabel and set their icons using the images

Write a Java programs which displays a frame that contains three labels. Each label displays a card, as shown in the figure below. Create three JLabel and set their icons usi

Explain calculating average asdouble

EnhancedTestScoreApp.javacompiles, Uses += onscoreCountandscoreTotalfields, UsesMathclass methods to track minimum and maximum scores, Displays minimum and maximum scores at e

Write a program called inheritancetest java

Write a program called InheritanceTest.java to support an inheritance hierarchy for class Point-Square-Cube. Use Point as the superclass of the hierarchy. Specify the instan

Reviews

Write a Review

 
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd