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
Tuesday
4vir4ik [10]

Answer:

?

Explanation:

these are instructions to a question?

7 0
3 years ago
Consider this data sequence: "fish bird reptile reptile bird bird bird mammal fish". There is a CONSECUTIVE REPETITION of length
ioda

Answer:

The code is given below. Follow the question and the code definitions for better understanding.

Explanation:

#include<iostream>

#include<string>

using namespace std;

int main(){

string pastWord="";

string currentWord,nextWord;

int n,t;

int singleton=0;

int consecutive=0;

cout<<"Enter words. ('xxxxx' to exit):\n";

cin>>nextWord;

do{

currentWord=nextWord;

cin>>nextWord;

if ( (currentWord!=pastWord)&&(currentWord!=nextWord) )

singleton++;

else if((currentWord==pastWord)&&(currentWord!=nextWord))

consecutive++;

pastWord=currentWord;

}while(nextWord!="xxxxx");

n=singleton;

t=consecutive;

cout<<"There were "<<n<<" singletons and "<<t<<" consecutive repetitions.";

cin.get();

return 0;

}

8 0
3 years ago
List two use of a word processor software.<br>​
Fed [463]

Explanation:

the Word processor is used to for

* Editing of documents

*Formatting of documents

*Creation of documents

*Saving documents

5 0
3 years ago
India is good country or bed country​
weqwewe [10]

Answer:

india is a

good country...

4 0
3 years ago
Read 2 more answers
6.4 code practice python
mixas84 [53]

Python is a programming language launched in 1991 by Guido van Rossum. It is common as a beginner's language and in teaching, but also as a general programming language with application in many different domains.

It has dynamic typing, which is why it is sometimes described as a scripting language. The language is also characterized by the fact that indentation affects the program flow. This makes the program code compact and is considered to give it good readability.

Learn more about Python in brainly.com/question/22841107

3 0
3 years ago
Read 2 more answers
Other questions:
  • [PROGRAMMING] A ____ signal indicates that a specific amount of time should pass before an action starts.
    13·1 answer
  • What information is not typically included in an e-mail header?​?
    15·1 answer
  • Which part of the cpu stores instructions for high speed access or processing
    14·1 answer
  • The domain in an email message tells you the
    5·1 answer
  • How can you achieve an effect like that shown in the image
    6·2 answers
  • 4013
    15·2 answers
  • After completion of this chapter, you should be able to:  Describe the structure of an IPv4 address.  Describe the purpose of
    5·1 answer
  • Name the different type of vegetation found in India ?​
    8·2 answers
  • If there are 8 opcodes and 10 registers, a. What is the minimum number of bits required to represent the OPCODE? b. What is the
    10·1 answer
  • Importance of computer education​
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!