Answered step by step
Verified Expert Solution
Question
1 Approved Answer
main calls two methods, triangleDown(); and triangleUp(); that produces output of two triangles forming an hour glass both methods MUST use nested loops desired output
main calls two methods, triangleDown(); and triangleUp(); that produces output of two triangles forming an hour glass both methods MUST use nested loops desired output is shown below // Add useful comments as appropriate // Those who carefully followed Chapter 2 might find these easy, and could be using some existing code from Chapter 2, change a couple things, then be done. // Other students might run out of time. // Just be sure to submit something that works. public static void main (String args[]) { triangleDown(); // write nested loop to print a 10 line triangle as shown below triangelUp(); // write another nested loop, omit single point so it's s hared // your complete code will follow.... Desired output is shown below: ** ** *** ** *** * ** * *************** * ***** * * * * * * * * * * * * * ** * ***** ** *** * ********* *********** * **** **** * ********** ********** **** ** * ** * *****
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started