1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Butoxors [25]
3 years ago
5

Boardman College maintains two files—one for Sociology majors and another for Anthropology majors. Each file contains students'

ID numbers, last names, first names, and grade point averages. Each file is in student ID number order. The college is merging the two departments into a Department of Sociology and Anthropology. Design the logic for a program that merges the two files into one file containing a list of all students, maintaining ID number order.
Computers and Technology
1 answer:
gregori [183]3 years ago
4 0

Answer:

Explanation:

#say the two files are converted to lists

Sociology major and Anthropology major

#Create new list

SociologyandAnthropology=[]

#loop through sociology list

for x in Sociology major:

     a=[]

     for y in Anthropology major:

        for i in range (0,no.of items,1):

              if x[i] == y[i]:

                    a.append(x[i])

              else:

                   a.append(x[i])

                   a.append(y[i])

SociologyandAnthropology.append(a)

#sort using ID number

z=ID number index

SociologyandAnthropology=sorted(SociologyandAnthropology,key=lambda x:x[z]).

You might be interested in
Select the correct answer.
Dvinal [7]

Answer:

A

Explanation:

because when you make a presentation so you are already use technology

4 0
3 years ago
Which of these printers would be the most suitable for printing a large number of high quality black and white printouts?
Alex777 [14]

Answer:

A laser pointer

Explanation:

A laser printer would be the most suitable printer for printing a large number of high quality black and white printouts

8 0
3 years ago
How to boost audio live ​
Masteriza [31]
Huh


Hzhanajsjjajajans
6 0
3 years ago
How does this happen on brainly????
Trava [24]

what do you mean????

4 0
2 years ago
Read 2 more answers
Once you fix the bug in a code, what is the last thing you should do?
aleksklad [387]

Answer:

Know what the code should do

4 0
2 years ago
Other questions:
  • The condition, ____, entered in the criteria row of a long text field in a query window would retrieve all records where the lon
    8·1 answer
  • Ben works at a top accounting firm in Salt Lake City and his responsibilities include developing individual and departmental goa
    9·1 answer
  • It is generally safe to provide your social security number to
    7·2 answers
  • You put $500 in an interest bearing bank account that pays 2% per year but has a fee of $2 per month. Are you getting ahead?
    14·2 answers
  • What type of font color should Kim select if she chooses a dark-colored design theme for her presentation?
    14·2 answers
  • How we can get NET I'D by IP Address?
    11·1 answer
  • How do you close a file?
    12·2 answers
  • All states that have altered judicial selection techniques in recent years have adopted some form of:
    10·2 answers
  • Pls help... : Slide layouts can be changed by _____.
    9·1 answer
  • This is an example of what type of formula? =average(d1:d17) question 1 options: addition subtraction range average
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!