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 https://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

Questions Cloud

The success of the company decides to leave the organization : Create a scenario of a hypothetical company whose situation was similar to that of The Gucci Group. Include company's name, its industry type, and management structure. Then explain what could happen if the CEO, the mastermind behind the success of t..
Estimate the number of repetitions that new service : Estimate the number of repetitions that new service worker Irene will require to achieve “standard” if the standard is 21 minutes per repetition. She took 30 minutes to do the initial repetition and 25 minutes to do the next repetition.
New software with some advanced auditing features : In an audit office, 5 auditors each working 8 hours a day for 250 days completed audit of 1000 accounts. New software with some advanced auditing features was installed on all computers with a promise of 20% increase in productivity. In the meantime,..
Range of output volumes for which each alternative result : A small firm intends to increase the capacity of a bottleneck operation by adding a new machine. Two alternatives, A and B, have been identified, and the associated costs and revenues have been estimated. Annual fixed costs would be $40,000 for A and..
Java shape program console : 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.
Explain the nonfunctional requirements for abs : Explain the design principles and the steps for the design process if ABS has global audience. Explain the nonfunctional requirements for ABS and document those requirements in the requirement document
Describe difference between formal and informal assessment : Describe the difference between formal and informal assessment and give an example of when each might be appropriate for use with an individual with ASD.
Write an essay on what is good sex : Write an essay on What is good sex. Your response should include: An original thesis statement and Two original philosophical arguments that support your thesis.
Describe the characteristics of the worst reports : Describe the characteristics of the worst reports. Consider different aspects of the report that could go wrong such as format, layout and content, and describe what could go wrong with them under different categories

Reviews

Write a Review

JAVA Programming Questions & Answers

  Implement a singly linear linked list

Prepare a C++ using visual studios program to implement a singly linear Linked List - You need to implement singly link list in C++.

  Write a java program to perform matrix multiplication

Write a java program to perform matrix multiplication - Your code will need to be able to read in these files, place the contents of each file into separate two-dimensional arrays and then perform the needed multiplication and place the output of t..

  Create an application in which a user can enter a phone book

Create an application in which a user can enter a phone book entry, including the subsequent elements: First Name, Last Name, Phone Number, email address

  Solution for the problem and mention algorithms

Explain the purpose of the program as detail as possible and develop a solution for the problem and mention algorithms to be used and list data structures to be used in solution.

  Write a recursive method to reverse a string.

write a recursive method to reverse a string. Explain why you would not normally use recursion to solve this problem?

  Exception handling

Write a java program to Facilitates keyboard input by abstracting details about input parsing, conversions, and exception handling.

  Implement a recursive method that evaluates the gcd

Implement a recursive method that evaluates the GCD of the given numbers - Use the above fact to create a recursive method in Java that computes and returns the gcd of two positive integers. Comment the code.

  Typical industrial engineering problem

A company manufactures two products, A and B. Product A can be sold for $145 per unit and B for $75 per unit. Management requires that at least 1850 units be manufactured each month.

  Java program using jgrasp and the software development kit

Design a GUI program to find the weighted average of four test scores. The four test scores and their respective weights are given in the following format:

  Write a java program that will play connect four

Write a java program that will play connect four - Must be a simple program no applets, jframes.

  Build a very straightforward and fully functional machine

Build a very straightforward and fully functional machine learning classifier with the K-Nearest Neighbor (KNN) algorithm. The KNN model will read a set of data specified by the user, decide the appropriate class of the new instance, and finally o..

  Practice using recursion with data structures

Write a recursive method in this class called hasSameStructureAs(BinaryTree tree) that returns whether or not a tree has the same structure as another tree.

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