Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedimage text in transcribed

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

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

Implementing Ai And Machine Learning For Business Optimization

Authors: Robert K Wiley

1st Edition

B0CPQJW72N, 979-8870675855

More Books

Students also viewed these Databases questions