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.
A web-based application that combines HTML code with business logic exists said to be in violation of Protection from variations design principle.
<h3>
What is Html?</h3>
The Hypertext Markup Language or HTML stands for the standard markup language for documents developed to be displayed in a web browser. It can be administered by technologies such as Cascading Style Sheets and scripting languages such as JavaScript. HTML (Hypertext Markup Language) exists as the code that is used to structure a web page and its content. For example, content could be structured within a group of paragraphs, a list of bulleted points, or using photos and data tables
The protected variations pattern protects components from the variations on other elements (objects, systems, subsystems) by wrapping the direction of instability with an interface and operating polymorphism to make various implementations of this interface.
Hence, A web-based application that combines HTML code with business logic exists said to be in violation of Protection from variations design principle.
To learn more about Hypertext Markup Language refer to:
brainly.com/question/5560016
#SPJ4
Using web-safe fonts and colors is something you can do to increase user experience and reliability when creating a web app by ensuring compatibility.
<h3>What are web-safe fonts and colors?</h3>
- Fonts and colors are considered web-safe when they are included in the basic installation of web browsers.
- What this means is that these fonts and colors come preinstalled in browsers.
- This ensured compatibility leads to increased reliability.
- Having a reliable web app improves user experience and makes for a more successful application.
Therefore, given that web-safe fonts and colors are just those that come preinstalled in most web browsers, using these during the development of your web app will ensure that most users will not have any issues. This increases reliability and improves the user experience.
To learn more about web fonts visit:
brainly.com/question/14450275?referrer=searchResults