1. Engineering
  2. Computer Science
  3. lab description used nested loops to print out a letter...

Question: lab description used nested loops to print out a letter...

Question details

Lab Description: Used nested loops to print out a letter pattern as shown below. Wrap around the letters from Z to A Sample Data Files Needed rriangleFive.java TriangleFiveRunner.java B 7 2 8 Sample Output: AAAAA BB33 3339BB CCcecc DDDDD XXXXxX YYYYY 2222 AAA BB C XXxxxx YYYYY 2222 AAA BB XXxxxx YYYYY 2222 AAA XXxxxx YYYYY 2222 22222222 AAAAAAA BBB339 ccccc DDDD EEE FE 22222222 AAAAAAA BB9339B cCCCC DDDD EEE FE 22222222 AAAAAAA BB9339B cCCcC DDDD EEE 22222222 AAAAAAA BBB939 CCCCC DDDD 22222222 AAAAAAA BBB939 CCCCC 22222222 AAAAAAA BBB399 22222222 AAAAAAAimport static java.lang.System.* public class TriangleFive private char letter; private int amount; public TriangleFive() public TriangleFive(char c, int amt) public void setLetter (char c) public void setAmount(int amt) public String toString() String output- return outputimport static java.lang.System.* public class TriangleFiveRunner public static void main(String args[1)

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution