Java shape program console

Assignment Help JAVA Programming
Reference no: EM13759108

Java Shape Program Console

Submit your source code only, uploading to D2L at: Assessments / Dropbox / assignment_5. Please submit
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: EM13759108

Questions Cloud

Important in your firms supply chain : Which type of transportation is most important in your firm's supply chain? Could your firm use a different mix of transportation modes to improve its efficiency?
Prepaid expenses vs unearned revenue : From this week's reading, you were introduced to the concept of unearned revenue and prepaid expenses. Imagine that you are CFO of a company that manufacturers picture frames.
What literature represents about the human experience : Analyzing those more complicated elements can help you discover what literature represents about the human experience and condition.
Benefits of cost accounting : You are a consultant for Blue Sky Consulting in the small town of Centervale. After 30 years of saving for retirement you discuss with your boss the possibility of early retirement.
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 theprogram understandable.
Write paper on the threats and weaknesses for a company : Write paper on the threats and weaknesses for a company
When women affected by what they see in photoshopped images : When women are affected by what they see in photoshopped images of other women, they take matters into their own hands and some resort to plastic surgery.
What differences do you notice between these various sites : Visit the websites of several social media sites (MySpace, Facebook, LinkedIn, Twitter). What differences do you notice between these various sites
Two basic classes of stock : There are two basic classes of stock that exist: common stock and preferred stock. Since more than one class of stock is available to investors, an investor must determine which class of stock they would prefer to invest in. Additionally, a compan..

Reviews

Write a Review

JAVA Programming Questions & Answers

  Java socket hello i need to this assignment done in net

hello i need to this assignment done in net beans . and i want comment in code .also screen shots of running program

  Discuss factors that affect sorting in sediment

Discuss factors that affect sorting in sediment. How could one tell the latitude at which a sediment was originally deposited? Compare and contrast phosphate and manganese nodules.

  Prepare a new object of type airconditioner

Prepare a new object of type AirConditioner using the office_a_c reference variable - turn the air conditioner on using the reference to the new object.

  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

  Program will read parameters plaintext and ciphertextfrom

Specifically, your program will read parameters, plaintext and ciphertextfrom a file named "input.txt" (under the same directory).Then your program needs tocreate a file named "output.txt" (under the same directory) and prints the public key, private..

  Create java application which creates random phone number

Create and implement Java application which creates and prints a random phone number of the form xxx-xxx-xxxx. Include the dashes in the output.

  If you are using the blackboard mobile learn app please

if you are using the blackboard mobile learn app please click view in browser. technical project address bookthis

  Write a method named longestword

Write a method named longestWord that accepts a String as its parameter and returns the length of the longest word in the string.

  Design a program that extends the definition of the class

Design a program that extends the definition of the class JFrame to display a window on the screen. Name your class PropertyTax1, title your window "Calculation of Property Taxes," set the window's width to 400 pixels and height to 300 pixels, and te..

  Write a java application that calculates and displays

The application should ask the user to enter the name of the property owner and the assessed value of the property for each owner (total N owners) and calculate the property tax.

  Application named arithmeticmethods

Create an application named ArithmeticMethods whose main() method holds two integer variables. Assign values to the variables. In turn, pass each value to methods named displayNumberPlus10()

  Write a java program to read sequences of integers

Write a Java program to read sequences of integers from a text file, build a binary search tree for each sequence by inserting numbers in the sequence one after another into the search tree, and plot a picture of the finished 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