Loading

[NEW SOLN] CMIS 141 ASSIGNMENT 4 OUTPUT TRIANGLE AND DIAMOND PATTERN

(1) Write Java code to prompts user for number of rows (e.g. 6) and output the triangle pattern below. Use nested for-loops.

CMIS 141 ASSIGNMENT 4 OUTPUT TRIANGLE AND DIAMOND PATTERN

(2) Write Java code to prompt user for side length (e.g. 6) and output diamond pattern below: Use nested for-loops.
CMIS 141 ASSIGNMENT 4 OUTPUT TRIANGLE AND DIAMOND PATTERN

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
CMIS 141 ASSIGNMENT 4 OUTPUT TRIANGLE AND DIAMOND PATTERN Capture execution:

You should capture and label screen captures associated with compiling your code, and running a couple of different inputs for each program.

Related tasks

CMIS 141 Assignment 1 Student GPA,

CMIS 141 Assignment 2 Perform Operation on Two Numbers,

CMIS 141 Assignment 3 Calculate Student Grade,

CMIS 141 Assignment 4 Output Triangle and Diamond Pattern,

CMIS 141 Assignment 6 Highest and Lowest Score,

CMIS 141 Final Project Employee Salary,

Support