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
Yanka [14]
3 years ago
9

Describe how you would define the relation Brother-in-Law whose tuples have the form (x, y) with x being the brother-in-law of y

. b. Give appropriate relational algebra and SQL expressions that return the relation Brother-in-Law.
Computers and Technology
1 answer:
damaskus [11]3 years ago
8 0

Answer:

The expression is :

π[cd) + π(g,h) ],[π(e,f)+π(a,b)])

We will use foreign key and primary key

You might be interested in
What is the most important part of the course that you have learned about so far?
dusya [7]
Well what have you learned that you thought was beneficial to you?
8 0
3 years ago
Read 2 more answers
Imagine that you have access to a class named MyCircle that has void setRadius(double r) and double getRadius() methods. Write a
Nikitich [7]

Code for the method described in the question in java:

public static double averageRadius(MyCircle[] myCircles) {

       double sum = 0;

       for (MyCircle myCircle: myCircles) {

           if(myCircle.getRadius() < 0) myCircle.setRadius(0);

           sum += myCircle.getRadius();

       }

       return sum / myCircles.length;

   }

And the complete program:

import java.util.Random;

public class MyCircle {

   private double radius;

   public double getRadius() {

       return radius;

   }

   public void setRadius(double radius) {

       this.radius = radius;

   }

   public static double averageRadius(MyCircle[] myCircles) {

       double sum = 0;

       for (MyCircle myCircle: myCircles) {

           if(myCircle.getRadius() < 0) myCircle.setRadius(0);

           sum += myCircle.getRadius();

       }

       return sum / myCircles.length;

   }

   public static void main(String[] args) {

       Random random = new Random();

       int N = 10;

       MyCircle[] myCircles = new MyCircle[N];

       for (int i = 0; i < myCircles.length; i++) {

           myCircles[i] = new MyCircle();

           myCircles[i].setRadius(random.nextInt(100));

           System.out.printf("Created MyCircle %d with radius %.2f \n", i, myCircles[i].getRadius());

       }

       System.out.printf("\nAverage radius of %d circles is %.2f \n", N, MyCircle.averageRadius(myCircles));

   }

}

The output was:

Created MyCircle 0 with radius 76.00

Created MyCircle 1 with radius 86.00

Created MyCircle 2 with radius 38.00

Created MyCircle 3 with radius 4.00

Created MyCircle 4 with radius 8.00

Created MyCircle 5 with radius 39.00

Created MyCircle 6 with radius 77.00

Created MyCircle 7 with radius 78.00

Created MyCircle 8 with radius 39.00

Created MyCircle 9 with radius 46.00

Average radius of 10 circles is 49.10

7 0
3 years ago
One way to describe the note-taking tool eNotes is to call it an<br> Someone help ._.
vagabundo [1.1K]

Answer:

Electronic notebook

5 0
3 years ago
Read 2 more answers
Which data type would you ascribe to a pointer? (unsigned) real (unsigned) integer boolean No answer text provided.
poizon [28]

Answer:

The Unsigned Integer

Explanation:

Solution

The data type i would ascribe to a pointer is the unsigned integer because it can be a pointer (int*number).

The unsigned Integer: they are like integers that is whole numbers, but have the property that they don't contain a + or - sign related with them. thus they are seen as non-negative (zero or positive).

6 0
3 years ago
What is BPM in rythm games?
alina1380 [7]

Answer:

BPM: Beats Per Minute.

Explanation:

4 0
3 years ago
Other questions:
  • ____ allow us to store a binary image in code. (1 point)
    9·1 answer
  • PLEASE HELP
    9·2 answers
  • if your instructors teaching style is very different from your learning preference your best choice is to one work on your weake
    10·1 answer
  • Which method do software testers use to isolate new code from the rest of the network during the test stage of the software deve
    15·1 answer
  • Rate monotonic Analysis (RMA) is a model for predicting whether or not a system will meet its timing as well as throughput requi
    6·1 answer
  • Implement a function with signature barGraph(w, h, data) which creates and returns a cs1graphics.Canvas instance that has width
    9·1 answer
  • The programming interface for a legacy motor controller accepts commands as binary strings of variable lengths.
    15·1 answer
  • I need somebody to help me with this question I’ll give points!<br> Please help no funny business
    14·1 answer
  • Why does brainly say im in highschool when im in middle school?
    15·2 answers
  • All Office programs have similar commands on the tab for changing the document view a. File b. View c. Locate d. display ​
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!