Reference no: EM13164631
Produce a specific text figure that is supposed to look like Seattle's Space Needle. Use of for loops (nested as appropriate). Use of static methods for structure and elimination of redundancy
Continue to use static methods to structure your solution in such a way that the methods match the structure of the output itself. Avoid significant redundancy; use methods so that no substantial groups of identical statements appear in your code. No println statements should appear in your main method. You do not need to use methods to capture redundancy in partial lines, such as the two groups of colons in the following line:
__/::::::||::::::\__
Give meaningful names to methods and variables in your code. Follow Java's naming standards about the format of ClassNames, methodAndVariableNames, and CONSTANT_NAMES.
Class constant for figure's size:
You should create one (and only one) class constant to represent the size of the pieces of the figure. Use 4 as the value of your constant. Your figure must be based on that exact value to receive full credit.
On any given execution your program will produce just one version of the figure. However, you should refer to the class constant throughout your code, so that by simply changing your constant's value and recompiling, your program would produce a figure of a different size. Your program should scale correctly for any constant value of 2 or greater.
Please note that the height of the needle's midsection grows as the square of the figure size. In the default figure size of 4, the midsection is 16 lines tall. If the size were 7, the midsection would be 49 lines tall.
As a reference, our solution to Part B has 5 methods besides main and occupies around 90-110 lines including comments and blank lines, though you do not have to match this exactly.
Design a class named checkingaccount
: Design a class named CheckingAccount that holds a checking account number, name of the account holder, and balance.include methods to set values for each data field and a method that displays all the account information. Create the class diagram a..
|
Determine the highest bit rate possible for a circuit
: 1. Determine the number of conditions possible for a binary code
|
Investment strategy your knowledge of algorithms
: Planning an investment strategy your knowledge of algorithms helps you obtain an exciting job with the acme computer company, along with a $10,000 signing bonus. you decide to invest this money with the goal of maximizing your return at the end of..
|
Write program using a switch statement that display polygon
: Write a program using a switch statement that displays the name of a polygon with sides between 3 and 12 depending on the number entered by the user
|
On any given execution your program
: On any given execution your program will produce just one version of the figure. However, you should refer to the class constant throughout your code, so that by simply changing your constant's value and recompiling, your program would produce a f..
|
When the jmpc field in the microinstruction is enabled
: Assume that when the JMPC field in the microinstruction is enabled (set), MBR is ORed with NEXT_ADDRESS to determine the address of the next microinstruction to be executed
|
Write a program that prompts for and accepts input of test
: write a program that prompts for and accepts input of test ggrades that are integers between 0 and 100. For each numerical test grade, program should display a corresponding letter grade
|
A robot can take steps of 1 meter
: A robot can take steps of 1 meter, 2 meters, or 3 meters. Write a recursive function to calculate the number of ways the robot can walk n meters. (n is an integer obtained from user.) As example:
|
Code works and does what it is suppose to do
: Please make sure the code works and does what it is suppose to do. I keep getting answers on my other assignments that were copy and pasted from god knows where and had nothing to do with the assignment instructions.
|