subject

The kings and queens of england are listed in a relation kings (name, nickname, house, beginreign, endreign). their name is unique, either using a roman numeral to distinguish them, e. g., 'edward i' or 'edward ii', or in a few cases using their nickname, e. g., 'edward the confessor'. the attribute nickname is an additional appelation, if they have one and it is not used in their name to distinguish them, e. g., 'the unready'. the value of nickname is null if there is no nickname. the attribute house is the dynasty, e. g., 'tudor'. attribute beginreign and endreign are integers, the first and last years, respectively, that the king or queen was on the throne. there is also a relation parents(child, parent). both attributes are the names of kings or queens, with the obvious connection that the first is a child of the second.
write the following queries:
who was king in the year 1000?
give the name and nickname.
find all the pairs of kings or queens (a, b) such that a was the great grandchild of b.
find the name and nickname of all kings or queens that have a nickname that does not begin with "the". find the names of those kings or queens that were the parent of two or more kings or queens. list each such person only once.
find for each house the number of kings or queens of that house. several times in british history, kings or queens have deposed one another, so that their reigns overlapped.
find all such pairs, listing the pairs in both orders; i. e., list both (a, b) and (b, a). however, be careful not to list pairs a and b where the only overlap is that a's reign ended in the same year that b's began, or vice-versa.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:40
Program using c++ only on visual studio pig is a simple two player dice game, played with one die. the first player to reach or surpass 50 is the winner. each player takes a turn rolling the dice. they add to the pot with each roll, having to decide to roll again and increase the pot, or cash out. the risk being they could lose the amount they’ve accumulated into the pot. the rules for each player’s die roll. 1. roll the dice. a. if user rolled a 1, i. the pot gets set to zero ii. the other player goes to step 1. b. a roll of 2-6 is added to the pot. 2. user can choose to hold or roll again. a. choice roll. return to step 1. b. choice hold. i. increment player score by the pot amount. ii. pot gets set to 0. iii. second player gets to roll and goes to step 1. program requirements: ● before each opponent begins ○ output the score for the person and the computer. ○ output the opponents whose turn is beginning and ask the user to hit enter to continue. ● with each dice roll. ○ output the die value, and amount of the round pot. ○ if it’s the users roll ask if they want to roll again ( r ) or hold ( h ). your program should allow r, r, h or h as valid input. if input is anything else, ask the user again until valid input is obtained. ○ the ai will continue playing until the round pot is 20 or more. ● once a player’s score is greater or equal to 50 then they have won, it will no longer ask if they want to keep rolling the die or not. ● once there is a winner ○ score totals are output along with who the winner was. user or computer ○ player is asked if they want to play again y or n. valid input should be y, y, or n, n. ● when a new game starts the starting roll goes to the player that did not roll last. if the user rolled last in the previous game, then the computer rolls first and vice versa. when the program first begins, the player will make the first roll of the first game. development notes : ● you will need a way to roll dice in your program. the rand() function works well, but returns an integer. if we want numbers 0 – 9 we can get the value modulus 10. ● call srand() with a value to seed it. it’s common to seed it with the current computer clock, include ctime, and then call srand(time(
Answers: 1
question
Computers and Technology, 22.06.2019 16:00
Why should characters such as / \ " ' * ; - ? [ ] ( ) ~ ! $ { } < > # @ & | space, tab, and newline be avoided in file names?
Answers: 2
question
Computers and Technology, 23.06.2019 01:50
Create a class named majors that includes an enumeration for the six majors offered by a college as follows: acc, chem, cis, eng, his, phys. display the enumeration values for the user, then prompt the user to enter a major. display the college division in which the major falls. acc and cis are in the business division, chem and phys are in the science division, and eng and his are in the humanities division. save the file as majors.java.
Answers: 2
question
Computers and Technology, 23.06.2019 03:10
Acomputer has a two-level cache. suppose that 60% of the memory references hit on the first level cache, 35% hit on the second level, and 5% miss. the access times are 5 nsec, 15 nsec, and 60 nsec, respectively, where the times for the level 2 cache and memory start counting at the moment it is known that they are needed (e.g., a level 2 cache access does not even start until the level 1 cache miss occurs). what is the average access time?
Answers: 1
You know the right answer?
The kings and queens of england are listed in a relation kings (name, nickname, house, beginreign, e...
Questions
question
Mathematics, 19.05.2021 19:20
question
Mathematics, 19.05.2021 19:20