Answer:
#include <iostream>
using namespace std;
struct StudentType{
string studentName;
int studentId;
}
int n;
char answer[20];
int main(){
cout<< "Enter the size of the array: ";
cin >> n;
StudentType *student = new StudentType(n);
for (int i = 0; i < n; i++){
int name;
int number;
cin>> name;
cin >> number;
student[i].studentName = name;
student[i].studentId = number;
}
for (int i = 0; i < 20; i++){
cout<< "Enter answers: ";
cin >> ans;
answer[i] = ans;
}
}
Explanation:
The C++ source code has three global variables namely, answer which is an array of character data type, StudentType which is a structure data type and the integer variable n. The main function declares and initializes the dynamic-spaced student array of the structure datatype with the n variable.
Its perhaps B2
HOPE THIS HELPS
Answer:
c.O(n)
Explanation:
In the array based list implementation of the ADT the worst case time complexity of the getEntry method is O(n).In the worst case it has to travel upto n elements then it has to do the operation.In doing so the time complexity will come out to be O(n).So we conclude that the answer to this question is O(n).
The growing increase in international trade along with the development of technology has fostered globalization.
<h3>What is globalization?</h3>
Globalization is the process of interaction and integration among people, businesses and governments around the world. The term globalization first appeared in the early 20th century, took on its current meaning in the second half of the 20th century, and gained popularity in the 1990s to describe the world's unprecedented international connectivity of the post-Cold War world. Its origins date back to the 18th and 19th centuries due to advances in transport and communication technology. This increase in global interaction has led to growth in international trade and the exchange of ideas, beliefs and cultures. Globalization is first and foremost a process of economic interaction and integration associated with socio-cultural aspects. However, disputes and international diplomacy are also large parts of the history of globalization, and of modern globalization.
Learn more about globalization brainly.com/question/25499191
#SPJ4
Answer:
Explanation:
The objective of this task is to compute a program that involves the usage of Python code to save the data to MongoDB and to query the database.
Due to the error that occur which makes me to be unable to submit this answer, I've created a word document instead and the attached file can be found below.
Thanks!