Answer:
body {
width: 95%;
min-width: 640px;
max-width: 960px
;
margin-left: auto;
margin-right: auto;
height: 100%
}
Explanation:
represents the HTML tag that you want to style using CSS
There are two major ways to style a text it can either be fixed or fluid.
Fixed layout: The height and width are not flexible, it is specified by using pixels.
Fluid: The height and the width are flexible it makes use of percentages and ems.
<em />
<em> min-width: 640px;
</em>
<em> max-width: 960px
;</em>
sets the width to 95% of the browser window and sets the pixel range from 640 pixels up to 960 pixels.
- <em>margin-left: auto;
</em>
<em> margin-right: auto;
</em>
these lines of code horizontally center the page body within the browser window by automatically setting the margin alignment.
it Set the minimum height of the browser window to 100% , ensuring that the height of the page body is always at least as high as the browser window itself.
Answer:
The following function definition is from C++ programming language.
//define function with arguments
void divide (int numerator, int denominator, int *quotient, int *remainder)
{
*quotient = (int) (numerator/denominator);
*remainder = numerator % denominator;
}
Explanation:
Here, we define a void data type method "divide()" with four arguments in which first two arguments are integer type variables "numerator" and "denominator", next two are pointer type variables "quotient" and "remainder".
After that, we divide the first two integer variables and save result in "*quotient" then, we again use these variables for modulation and save result in "*remainder".
Answer:
from collections import Counter
def anagram(dictionary, query):
newList =[]
for element in dictionary:
for item in query:
word = 0
count = 0
for i in [x for x in item]:
if i in element:
count += 1
if count == len(item):
newList.append(item)
ans = list()
for point in Counter(newList).items():
ans.append(point)
print(ans)
mylist = ['jack', 'run', 'contain', 'reserve','hack','mack', 'cantoneese', 'nurse']
setter = ['ack', 'nur', 'can', 'con', 'reeve', 'serve']
anagram(mylist, setter)
Explanation:
The Counter class is used to create a dictionary that counts the number of anagrams in the created list 'newList' and then the counter is looped through to append the items (tuple of key and value pairs) to the 'ans' list which is printed as output.
Answer:
The algorithm is as follows:
1. Start
2. Input num
3. num = num + 5
4. num = 2 * num
5. num = num - 7
6. Print num
7. Stop
Explanation:
The first and the last line of the algorithm starts and ends the algorithm
Line 2 gets user input;
Assume user input is 9
num = 9
Line 3: adds 5 to the inputted number
num = 9 + 5 = 14
Line 4 doubles the result of line 3
num = 2 * 14 = 28
Line 5 subtracts 7 from the result of 4
num = 28 - 7 = 21
Line 6 prints the output to the screen
Hence, the output of the algorithm is 21 if the user input is 9
Answer:
There is no direct return on investment in building security systems.
Security systems are detrimental to usability and can make IT systems less functional, and therefore less attractive to the customer.
There is pressure to reduce the time it takes to get a new IT product or system onto the market, so security systems are sacrificed in order to reduce the time-to-market.
Explanation:
Cyber security has always been challenging for the organizations. There have been groups which are always looking for loop holes in cyber security and hacks the details and asks the ransom to restore. IT systems have now been more complex in this era. Users are increasing every new day and network accounts security is more demanding. Computer connection are more complex and require special attention to control them. The obstacles in IT systems are of concern as there is need for dynamic IT solution to counter the challenging hackers. New programs and customized demand of IT systems need customized IT security systems.