[solved] – Question 75313
Which data model is used to build the database?
The Enterprise
The Conceptual
The Physical
The Logical
Expert Answer
[solved] – Question 75322
What is the data model that contains the business requirements for the database?
The Logical
The Enterprise
The Conceptual
The Physical
Expert Answer
[solved] – Question 75323
A Unary relationship involves how many entities?
1
2
0 or more
3
Expert Answer
[solved] – Question 75324
In an entity, an identifier is an attribute that uniquely identifies an instance of the entity. If ID is an integer attribute and is the identifier of entity X, how many times can ID 10 appear?
Once
Up to 10 times only
Never because it is the identifier
As many times as needed because it is the identifier
Expert Answer
[solved] – Question 75325
At company X, an Employee may have none or many Dependents. A Dependent may only be in a single Employee’s insurance. What is the cardinality of the relationship between Employee and Dependent?
Unary
One-to-Many
One-to-One
Many-to-Many
Expert Answer
[solved] – Question 75341
programming and problem solving using IPO charts and algorithm to determine a golf gameplay
Expert Answer
[solved] – Question 75358
1.Write a function hideShow that accepts two string arguments, an input string and a masking string. The masking string is a string consisting of ‘0’s and ‘1’s that has the same length as the input string. The function then returns a new string that is the same as the input string, except that it is masked. That is, in any position where the masking string contains a ‘0’ the input character is replaced by a ‘#’, whereas if the masking string contains a ‘1’, the character is unchanged. See the following sample output:
>>> hideShow( ‘apple’, ‘11001’)
‘ap##e’
>>> hideShow(‘apple’,’00000′)
‘#####’
>>> hideShow(‘apple’,’11111′)
‘apple’
>>> hideShow(‘abcdefghijklmnopqrstuvwxyz’,13*’01’)
‘#b#d#f#h#j#l#n#p#r#t#v#x#z’
>>> hideShow( ‘df###re##’, ‘101010101’ )
‘d#####e##’
>>>
Expert Answer
[solved] – Question 75359
Moderation Exercise 1 – Central Heating
The heating system in a school should be switched on if the average temperature is less than
17 degrees Celsius (˚C). The average temperature is found from the temperatures in the Art,
English and Music Departments. You are required to write a program that allows the user to
input the three temperatures. The program calculates and displays the average temperature
then displays ‘Heating should be on.’ or ‘Heating should be off.’ as appropriate.
You may practice this task at home, but won’t be able to refer to any notes or files when assessed.
Submit the following for marking in 1-word document:-
1. Your code listing
2. Screenshots for suitable test data
Expert Answer
[solved] – Question 75360
2.Write a function moreOdds that accepts one argument, a list of integers. The function then returns a bool that indicates whether the list contains(strictly) more odd numbers than even numbers. Sample output:
>>> moreOdds( [2,3,4,5,7] )
True
Expert Answer
[solved] – Question 75361
Write a function flipSwitches that accepts one argument, a sequence of upper or lower case letters (the sequence can either be a str or a list, if you write your code correctly, it shouldn’t matter). This is a sequence of switches, uppercase means to turn a switch on, and lowercase to turn a switch off. For example, ‘A’ means to turn the switch ‘A’ on, and ‘a’ means to turn the switch ‘A’ off. The function should then return the set of those switches that are still on at the end of the sequence of switches. To receive full credit, your code must use a set that keeps track of the switches that are on.You can then iterate over the sequence and modify the set of switches that are on as appropriate.
>>> flipSwitches( [‘A’,’A’,’a’,’B’] )
{‘B’}
Expert Answer

