Teradata is a tech company that develops and sells database analytics. The company provides three main services: business analytics and web services. It operates in North and Latin America, Europe, the Middle East, Africa and Asia. Teradata wants to recruit graphic designer from the Pakistan for Asia region. Suppose "X" graphic designers are shortlisted, in the shortlisted graphic designers few are males and few are females. All the graphic designers have been allocated IQ levels. Probability of selection is very less if the IQ level is low. Teradata wants to create the FinalSelectionList where it wants the graphic designers sorted according to their IQ levels but with few constraints. Teradata wants to recruit female graphic designers first and then male graphic designers. Your job is to write a tiny software module to make the FinalSelectionList where, first, all female graphic designers are sorted in a descending sequence and then male graphic designers are sorted in a descending sequence. Input Format: The 1st line includes integer value "X" denoting the number of graphic designers. Next "X" lines contain couple of two integer type values, In a couple, 1st value must be 0 or 1. The second value should have lie between 1 to 10. Here 0 denotes female graphic designers and 1 denotes male graphic designers. 1 to 10 is the range of IQ level. a) Use Class/Classes or Structure/Structure Array or 1D Array or 2D Array to store above records. Note: Up to Students choice. b) Only separate the IQ levels of "0" and "1" designers from the record ( a part ). c) First, sort the separated records in descending sequence based upon the IQ levels. Second merge the sorted records in one row. For instance: Print "0" IQ level records in the start (in descending) and "1" IQ level records in the end (also in descending). A visual representation of this requirement is depicted in the following table. Example-1 Input Example-1 output Example-2 input Example-2 output 6. 4 1 7 0 3 0 7 0 9 6 3 4 2 1 2 0 6 9 7 5 9 9 7 1 9 1 9 0 5 1 4

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Teradata is a tech company that develops and sells database analytics. The company provides three main
services: business analytics and web services. It operates in North and Latin America, Europe, the Middle
East, Africa and Asia. Teradata wants to recruit graphic designer from the Pakistan for Asia region.
Suppose “X" graphic designers are shortlisted, in the shortlisted graphic designers few are males and few
are females. All the graphic designers have been allocated IQ levels. Probability of selection is very less if
the IQ level is low. Teradata wants to create the FinalSelectionList where it wants the graphic designers
sorted according to their IQ levels but with few constraints. Teradata wants to recruit female graphic
designers first and then male graphic designers. Your job is to write a tiny software module to make the
FinalSelectionList where, first, all female graphic designers are sorted in a descending sequence and then
male graphic designers are sorted in a descending sequence.
Input Format: The 1st line includes integer value “X" denoting the number of graphic designers. Next “X"
lines contain couple of two integer type values, In a couple, 1st value must be 0 or 1. The second value
should have lie between 1 to 10. Here 0 denotes female graphic designers and 1 denotes male graphic
designers. 1 to 10 is the range of IQ level.
a) Use Class/Classes or Structure/Structure Array or 1D Array or 2D Array to store above records. Note:
Up to Students choice.
b) Only separate the IQ levels of "0" and “1" designers from the record (a part ).
c) First, sort the separated records in descending sequence based upon the IQ levels. Second merge
the sorted records in one row. For instance: Print "0" IQ level records in the start (in descending) and
"1" IQ level records in the end (also in descending). A visual representation of this requirement is
depicted in the following table.
Example-1 Input
Example-1 output
Example-2 input
Example-2 output
6
1 7
0 3
0 7
0 9
1 2
6 3 4 2
9 7 5 9 9 7
0 6
1 9
1 4
1 9
0 5
Transcribed Image Text:Teradata is a tech company that develops and sells database analytics. The company provides three main services: business analytics and web services. It operates in North and Latin America, Europe, the Middle East, Africa and Asia. Teradata wants to recruit graphic designer from the Pakistan for Asia region. Suppose “X" graphic designers are shortlisted, in the shortlisted graphic designers few are males and few are females. All the graphic designers have been allocated IQ levels. Probability of selection is very less if the IQ level is low. Teradata wants to create the FinalSelectionList where it wants the graphic designers sorted according to their IQ levels but with few constraints. Teradata wants to recruit female graphic designers first and then male graphic designers. Your job is to write a tiny software module to make the FinalSelectionList where, first, all female graphic designers are sorted in a descending sequence and then male graphic designers are sorted in a descending sequence. Input Format: The 1st line includes integer value “X" denoting the number of graphic designers. Next “X" lines contain couple of two integer type values, In a couple, 1st value must be 0 or 1. The second value should have lie between 1 to 10. Here 0 denotes female graphic designers and 1 denotes male graphic designers. 1 to 10 is the range of IQ level. a) Use Class/Classes or Structure/Structure Array or 1D Array or 2D Array to store above records. Note: Up to Students choice. b) Only separate the IQ levels of "0" and “1" designers from the record (a part ). c) First, sort the separated records in descending sequence based upon the IQ levels. Second merge the sorted records in one row. For instance: Print "0" IQ level records in the start (in descending) and "1" IQ level records in the end (also in descending). A visual representation of this requirement is depicted in the following table. Example-1 Input Example-1 output Example-2 input Example-2 output 6 1 7 0 3 0 7 0 9 1 2 6 3 4 2 9 7 5 9 9 7 0 6 1 9 1 4 1 9 0 5
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY