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
Marat540 [252]
3 years ago
7

To implement a small database, a database designer must know the "1" and the "M" sides of each relationship and whether the rela

tionships are mandatory or optional.
Computers and Technology
1 answer:
Marysya12 [62]3 years ago
6 0

Answer:

True.

Explanation:

"1" to "M" or 1 to many is a type of relationship between tables in a relational database. It means that against 1 record in a table, there can be 0 to many rows in the other table. Not that the many or child table doesn't need to have any record against the 1 or parent row, so the many side is optional.

Example can be a Customer and Order relationship. Where Customer is the parent table and Order is the child table. "A customer can have 0 to many orders".

You might be interested in
Write a program to read as many test scores as the user wants from the keyboard (assuming at most 50 scores). Print the scores i
Oksana_A [137]

Answer: Provided in the explanation segment

Explanation:

Below is the code to carry out this program;

/* C++ program helps prompts user to enter the size of the array. To display the array elements, sorts the data from highest to lowest, print the lowest, highest and average value. */

//main.cpp

//include header files

#include<iostream>

#include<iomanip>

using namespace std;

//function prototypes

void displayArray(int arr[], int size);

void selectionSort(int arr[], int size);

int findMax(int arr[], int size);

int findMin(int arr[], int size);

double findAvg(int arr[], int size) ;

//main function

int main()

{

  const int max=50;

  int size;

  int data[max];

  cout<<"Enter # of scores :";

  //Read size

  cin>>size;

  /*Read user data values from user*/

  for(int index=0;index<size;index++)

  {

      cout<<"Score ["<<(index+1)<<"]: ";

      cin>>data[index];

  }

  cout<<"(1) original order"<<endl;

  displayArray(data,size);

  cout<<"(2) sorted from high to low"<<endl;

  selectionSort(data,size);

  displayArray(data,size);

  cout<<"(3) Highest score : ";

  cout<<findMax(data,size)<<endl;

  cout<<"(4) Lowest score : ";

  cout<<findMin(data,size)<<endl;

  cout<<"(5) Lowest scoreAverage score : ";

  cout<<findAvg(data,size)<<endl;

  //pause program on console output

  system("pause");

  return 0;

}

 

/*Function findAvg that takes array and size and returns the average of the array.*/

double findAvg(int arr[], int size)

{

  double total=0;

  for(int index=0;index<size;index++)

  {

      total=total+arr[index];

  }

  return total/size;

}

/*Function that sorts the array from high to low order*/

void selectionSort(int arr[], int size)

{

  int n = size;

  for (int i = 0; i < n-1; i++)

  {

      int minIndex = i;

      for (int j = i+1; j < n; j++)

          if (arr[j] > arr[minIndex])

              minIndex = j;

      int temp = arr[minIndex];

      arr[minIndex] = arr[i];

      arr[i] = temp;

  }

}

/*Function that display the array values */

void displayArray(int arr[], int size)

{

  for(int index=0;index<size;index++)

  {

      cout<<setw(4)<<arr[index];

  }

  cout<<endl;

}

/*Function that finds the maximum array elements */

int findMax(int arr[], int size)

{

  int max=arr[0];

  for(int index=1;index<size;index++)

      if(arr[index]>max)

          max=arr[index];

  return max;

}

/*Function that finds the minimum array elements */

int findMin(int arr[], int size)

{

  int min=arr[0];

  for(int index=1;index<size;index++)

      if(arr[index]<min)

          min=arr[index];

  return min;

}

cheers i hope this help!!!

8 0
3 years ago
In the following statement:
inna [77]

Answer: A. Car

Explanation:

Here  the base class member is being protected which is Vehicle. The base class is the Vehicle class and the derived class is Car class.

As the derived class is created or derived from another existing class. So here the class Car has been created through the process of inheritance from the base class which is vehicle. All the methods and variables in Vehicle class are in protected so the only the derived class is able to get access to those variables and methods.

class Car : protected Vehicle

The class Vehicle has been defined earlier and the class Car is created.

The left side is for derived and right side is for base class.

5 0
4 years ago
Which tool is used to create an interactive web application?
tangare [24]

Answer:

JavaScript is the correct answer

Explanation:

HTML help creates the structural overview, CSS helps in the design and an application software helps in the accessibility, editing, typing of code, but JavaScript helps to make it interactive. Thank you.

7 0
4 years ago
What value will the variable x have when the loop executes for the first time?
tia_tia [17]

The value that x will return when it runs the above loop for the first time is Tom. It is to be noted that the above code is JavaScript.

<h3>What is a JavaScript?</h3>

JavaScript is an object-oriented computer programming language that is used for the creation of effects that are interactive.

Scripts that are written using Java Programming Language can be used to control multimedia, create animated images, control how websites behave etc.

Java is also used in the creation of Games and many more.

Learn more about JavaScript at:
brainly.com/question/16698901

6 0
2 years ago
Which of these is true of blackhat and whitehat hackers?
earnstyle [38]

Answer:

Like all hackers, black hat hackers usually have extensive knowledge about breaking into computer networks and bypassing security protocols. They are also responsible for writing malware, which is a method used to gain access to these systems.

Explanation:

that's all. c:

5 0
3 years ago
Read 2 more answers
Other questions:
  • In these ones all your finding is the mean(average).
    14·1 answer
  • A teacher interested in determining the effect of a new computer program on learning to read conducted a study. One hundred stud
    10·2 answers
  • The next thing Maria wants to do is to indent the first line of her paragraph how dose she do it
    10·2 answers
  • A ________ determines what cpus a system can use, what integrated ports the system can provide without use of third-party produc
    5·1 answer
  • If you have created a document that contains a table that is 10 inches wide and 4 inches high, you will want to print the docume
    6·2 answers
  • The paint 3D program is used for drawing picture true or false​
    10·2 answers
  • This is my paragraph . The type of color is ude in this code line is ..............................
    5·1 answer
  • The ____ data source class that reduce your need for accessing individual Data Provider class when you are connecting to an Acce
    15·1 answer
  • Power supply, keyboard, monitor, mouse,ROM,CPU are belongs to Output, Input or Storage device​
    7·1 answer
  • Discuss how social media can affect social movements and social change.
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!