Answer:
year = int(input("Enter a year: "))
if (year % 4) == 0:
if (year % 100) == 0:
if (year % 400) == 0:
print(str(year) + " - leap year")
else:
print(str(year) +" - not a leap year")
else:
print(str(year) + " - leap year")
else:
print(str(year) + "- not a leap year")
Explanation:
*The code is in Python.
Ask the user to enter a year
Check if the <u>year mod 4</u> is 0 or not. If it is not 0, then the year is not a leap year. If it is 0 and if the <u>year mod 100</u> is not 0, then the year is a leap year. If the <u>year mod 100</u> is 0, also check if the <u>year mod 400</u> is 0 or not. If it is 0, then the year is a leap year. Otherwise, the year is not a leap year.
Answer:
Please find the attachment files of the queries:
Explanation:
In the all queries the select statement is used that selects the defined columns and use the function like sum, join, orderby, and groupby to perform the various operations, in which the sum is used to add columns or rows values, join is used for joining two or more tables, and orderby is used for return the table into ascending or descending order, and groupby is used for the count the value, calculate average and perform other operation and gives its return value.
Answer: One is smaller than the other.
Answer:
1. Insert a table
2. Setting margins
3. Spelling and grammar correction
4. Header and footer
5. Search a word
Explanation:
1) A table can be inserted in a word document to manage data easily and in a more presentable way.
2) Different margins can be set according to the requirement and rulers can be made visible and invisible.
3) If by chance typo errors happen, a red wavy line indicates spelling mistakes and green indicates grammar mistakes which can be corrected easily.
4) Sometimes writing some professional documents, we need some text to be visible either on top or bottom of every page of that document which can be done with the help of headers and footers.
5) By pressing Ctrl+f we can easily search for a particular word in a document.
Answer:Technology
Explanation: it can be define as process or technique of making something that allows human beings to share their knowledge, perform a task or fulfill a function
-tool or invention that, once created and used, is intended to solve a problem or improve on past understandings of how to do something.