Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Before attempting this project, be sure you have completed all of the reading assignments, nongraded exercises, discussions, and assignments to date. (1) Write Java code

Before attempting this project, be sure you have completed all of the reading assignments, nongraded exercises, discussions, and assignments to date. (1) Write Java code to prompts user for number of rows (e.g. 6) and output the triangle pattern below. Use nested for-loops.

# # # # # # # # # # # # # # # # # # # # #

(2) Write Java code to prompt user for side length (e.g. 6) and output diamond pattern below: Use nested for-loops.

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #

Hint: Check out practice exercise 3 in class materials. Make sure your Java program is using the recommended style such as: Javadoc comment up front with your name as author, date, and brief purpose of the program Comments for variables and blocks of code to describe major functionality Meaningful variable names and prompts Identifiers are written in upper CamelCase Class name starts with upper case letter and variables in lower case letter Constants are written in All Capitals Use proper spacing and empty lines to make code human readable Capture execution: You should capture and label screen captures associated with compiling your code, and running a couple of different inputs for each program.

Submission requirements

Deliverables include Java program(s) (.java) and a single Word (or PDF) document. You can code both exercises in a single java program or in two separate ones. The Java and Word/PDF files should be named appropriately for the assignment (as indicated in the SubmissionRequirements document. The word (or PDF) document should include screen captures showing the successful compiling and running of each of the programs. Each screen capture should be properly labeled clearly indicated what the screen capture represents. Su

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Students also viewed these Databases questions