Answer:
Algorithms are a process or set of rules to be followed in calculations or other problem-solving operations, especially by a computer.
Pseudo code is an informal description of an algorithm or how a program will function.
a. An example of an algorithm using coding terminology would be a function to find the largest or smallest number in a user-defined array.
b. A function that could include an algorithm would be a function that compares input.
c. Pseudo code could be used to outline a part of a program that has to carry out a specific function.
I hope that helped! If you have any questions I am glad to help.
Answer:
The correct answer to the following question will be "Web tracking".
Explanation:
This is indeed a business operation to keep an eye on the subscribers or visitors to the business. So what web trackers do is much more than that. They check up on your web activity.
A tracker generally seems to be a database script programmed to extract sets of data on your interests and how you are when you communicate through their database.
There are four types of Web trackers such as:
- Embedded scripts.
- Cookies.
- Finger printers.
- Supercookies.
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.