Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please complete following problems in java , see below for required java file code . Thank you. Natali is a dance choreographer and is designing

Please complete following problems in java, see below for required java file code. Thank you.image text in transcribed

Natali is a dance choreographer and is designing a dabkeh dance for n girls. The girls started by holding each others' hands in a line. But Natali decided to divide the girls into two lines according to their heights. The girls don't want to let go of each other's hands, but will do only if one of them is taller than 150cm. Natali goes through the girls and removes the girls taller than 150cm and lines them up into a new line. Input The first line contains a single integer t(1t100) - the number of testcases. The first line of each testcase contains a single integer n(1n50) - the number of girls in the dance. The second line contains n integers a1,a2,an(100ai200) representing the height of each girl. Output For each testcase, print the line of short girls, followed by the line of taller girls. Separate testcases by a new line. Sample input 2 10 153138149197167135124147158116 15 133161115155148128186197132174132184134158174 Sample output 153197167158 138149135124147116 161155186197174184158174 133115.148128132.132134

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

Modern Database Management

Authors: Heikki Topi, Jeffrey A Hoffer, Ramesh Venkataraman

13th Edition

0134773659, 978-0134773650

More Books

Students also viewed these Databases questions

Question

Ability to work comfortably in a team environment

Answered: 1 week ago

Question

Exposure to SQL desirable but not required

Answered: 1 week ago