Categories: Homework Aiders

CSS 142 University of Washington Loops and Rockets Java Project Hello i have added the file that you need to complete the assignment please review and ask

CSS 142 University of Washington Loops and Rockets Java Project Hello i have added the file that you need to complete the assignment please review and ask any question.

Here is a final checklist of items to run through before you submit your work:

Don't use plagiarized sources. Get Your Custom Essay on
CSS 142 University of Washington Loops and Rockets Java Project Hello i have added the file that you need to complete the assignment please review and ask
Get an essay WRITTEN FOR YOU, Plagiarism free, and by an EXPERT! Just from $10/Page
Order Essay

You should be turning-in only one file (your Java source code file).
Compile and execute your code before turning in your .java file. If it doesn’t work, something is wrong.
Check the extension of the file you are submitting. There is only one file type you are allowed to submit.
Do your filenames follow the correct convention as described in the assignment.
Break up this program into smaller functions and call those.
Remember you can call a function inside of a loop.
Pay extra attention to code formatting, style, comments, and basic programming practices learned so far. CSS142: Homework: Loops – Rockets
Homework: Loops — Rockets
CSS 142: Computer Programming I
Summary
Using your knowledge of loops and boolean expression, you will create a program that will exactly
reproduce the output as in the following. The various subfigures in the middle of this output have a
height of 3. These subfigures have the property that their height determines their width, so only one
size is used. The height also determines the height of the nose of the rocket and the rocket thrust.
You are to use a class constant to make it possible to change a single number in one place in the
program to have it produce a corresponding figure of a different size (note: the code for the class
constant HEIGHT is given in the following example). Design static methods for your solution so that your
program will avoid significant redundancy. For example, the method displayCone() would display the
rocket nose and also the rocket thrust. Structure your program in such a way that the methods match
the structure of the output itself (i.e. method displayCone() displays the rocket’s cone structure.)
Note that the backslash is a control character so to display one backslash, you must use two of them. For
example, System.out.println(“\/”); would display: /
Note: Your program’s methods need to use “for” or “while” loops to complete the given task with
different HEIGHT values.
Sample Code and the display on the next page.
1
CSS142: Homework: Loops – Rockets
public class LastFirstHWLoops {
public static final int HEIGHT = 3;
}
// height of rocket internal subfigures
public static void main(String[] args) {
displayCone();
// display rocket nose

displayCone();
// display rocket thrust
}

/**
//**\
///**\
////**\\
/////**\\
+=*=*=*=*=*=*+
|../…./..|
|.//..//.|
|//////|
|//////|
|.//..//.|
|../…./..|
+=*=*=*=*=*=*+
|//////|
|.//..//.|
|../…./..|
|../…./..|
|.//..//.|
|//////|
+=*=*=*=*=*=*+
/**
//**\
///**\
////**\\
/////**\\
On any given execution, your program will produce just one
version of this figure, but if the constant HEIGHT is changed,
your program produces a figure of a different size. For example,
when HEIGHT is set to 6, the figure would look like the one on the
right:
2
/**
//**\
///**\
////**\\
/////**\\
//////**\\\
///////**\\\
////////**\\\\
/////////**\\\\
//////////**\\\\\
///////////**\\\\\
+=*=*=*=*=*=*=*=*=*=*=*=*+
|…../………./…..|
|….//……..//….|
|…///……///…|
|..////….////..|
|./////../////.|
|////////////|
|////////////|
|./////../////.|
|..////….////..|
|…///……///…|
|….//……..//….|
|…../………./…..|
+=*=*=*=*=*=*=*=*=*=*=*=*+
|////////////|
|./////../////.|
|..////….////..|
|…///……///…|
|….//……..//….|
|…../………./…..|
|…../………./…..|
|….//……..//….|
|…///……///…|
|..////….////..|
|./////../////.|
|////////////|
+=*=*=*=*=*=*=*=*=*=*=*=*+
/**
//**\
///**\
////**\\
/////**\\
//////**\\\
///////**\\\
////////**\\\\
/////////**\\\\
//////////**\\\\\
///////////**\\\\\
CSS142: Homework: Loops – Rockets
Work Items
Write the program described below. Submit the single Java file (i.e., “.java” text file) that contains your
program:
(a) Please submit only a single Java file via Canvas. Do not email your instructor your work.
(b) Name your Java file LastFirstHWLoops.java, where you put in your own last name and first name for
“Last” and “First”. You must name your file this way.
(c) Recall that this means the name of the public class in your code file must be named LastFirst HW
Loops (again, substituting your own name as appropriate).
About this Document
Course taught at the University of Washington Bothell. Assignment by Michael Stiber, Spring 2012. Some
text by Rob Nash is added in. Additional edits by Johnny Lin, September 2014 and Jeffrey Kim, Summer
2019.
3

Purchase answer to see full
attachment

superadmin

Recent Posts

communication MA | Solution Aider

part one For this assignment you are to to watch: Shattered Glass Write a two…

4 years ago

Standard Project – WebServers | Solution Aider

Standard Project - WebServers. Instruction attached. Need all requirements, you do not have to make…

4 years ago

Discussion post 2 | Solution Aider

Read classmates post and respond with 100 words:The International Categorization of Diseases, Tenth Revision, Clinical…

4 years ago

case sttudy | Solution Aider

Most Americans have at least 1 issue that is most important to them. Economic issues…

4 years ago

Methodologies Report | Solution Aider

For this assignment, you are the court intake processor at a federal court where you…

4 years ago

outline about gender equality | Solution Aider

Use a standard outline format to lay out how you are going to write your…

4 years ago