Question: Write an interactive Java Program named HollowRightAngled Triangle.java which uses the JOptionPane class for input. The program should ask you to input a character

 Write an interactive Java Program named HollowRightAngled Triangle.java which uses the JOptionPane    

Write an interactive Java Program named HollowRightAngled Triangle.java which uses the JOptionPane class for input. The program should ask you to input a character of your choice, as well as the height/Depth of the Triangle. The character can be any character, e.g., a star, an integer, a letter of the alphabet, a $ sign, etc. When the character has been entered by the user, the program should echo using the System.out.println() output scheme, the words, "You have Entered The Character *", according to the character entered. After that, the program should ask you to enter a depth/height. Once the height/depth has been entered, the pogram should then draw / output a right-angled triangle made of the chosen character just entered as shown below: ** *****

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!