Answered step by step
Verified Expert Solution
Question
1 Approved Answer
iGiven two parallel arrays, one of them containing names of persons and the other containing their corresponding heights ( in feet ) , arrange the
iGiven two parallel arrays, one of them containing names of persons and the other containing their corresponding heightsin feet arrange the persons in descending order of their heights and print the names. Both the arrays are of equal size N having unique elements.
Reading from standard input is already given and print the output to the standard output stream.
Input format:
Firstline contains the array size N Secondline contains the name of the persons separated by a comma and the third line contains the height of the respective persons separated by a comma.
Output format:
Print the commaseparated person names depending on the descending order of their heights.
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