Answer:
def leap_year(y):
if y % 4 == 0:
return 1
else:
return 0
def number_of_days(m,y):
if m == 2:
return 28 + leap_year(y)
elif m == 1 or m == 3 or m == 5 or m == 7 or m == 8 or m ==10 or m == 12:
return 31
elif m == 4 or m == 6 or m == 9 or m == 11:
return 30
def days(m,d):
if m == 1:
return 0 + d
if m == 2:
return 31 + d
if m == 3:
return 59 + d
if m == 4:
return 90 + d
if m == 5:
return 120 + d
if m == 6:
return 151 + d
if m == 7:
return 181 + d
if m == 8:
return 212 + d
if m == 9:
return 243 + d
if m == 10:
return 273 + d
if m == 11:
return 304 + d
if m == 12:
return 334 + d
def days_left(d,m,y):
if days(m,d) <= 60:
return 365 - days(m,d) + leap_year(y)
else:
return 365 - days(m,d)
print("Please enter a date")
day=int(input("Day: "))
month=int(input("Month: "))
year=int(input("Year: "))
choice=int(input("Menu:\n1) Calculate the number of days in the given month.\n2) Calculate the number of days left in the given year.\n"))
if choice == 1:
print(number_of_days(month, year))
if choice == 2:
print(days_left(day,month,year))
Explanation:
Hoped this helped
The program is an illustration of functions.
Functions are groups of code segments that are executed when called or evoked
The calendar programThe calendar program in Python, where comments are used to explain each line is as follows:
#This checks for leap year
def leap_year(y):
if y % 4 == 0:
return 1
else:
return 0
#This returns the number of days in the month
def number_of_days(m,y):
if m == 2:
return 28 + leap_year(y)
elif m == 1 or m == 3 or m == 5 or m == 7 or m == 8 or m ==10 or m == 12:
return 31
elif m == 4 or m == 6 or m == 9 or m == 11:
return 30
#This returns the number of days left in the month
def days(m,d):
dayList = [0,31,59,90,120,151,181,212,243,273,304,334]
return dayList[m-1] + d
#This returns the number of days left in the year
def days_left(d,m,y):
if days(m,d) <= 60:
return 365 - days(m,d) + leap_year(y)
else:
return 365 - days(m,d)
#The main begins here
#This next three lines gets input for date
day=int(input("Day: "))
month=int(input("Month: "))
year=int(input("Year: "))
#This gets the choice from the user
menu=int(input("Press 1 to calculate the number of days in the given month.\nPress 2 to calculate the number of days left in the given year.\nChoice: "))
#This prints the number of days in the month
if menu == 1:
print(number_of_days(month, year))
#This prints the number of days left in the year
elif menu == 2:
print(days_left(day,month,year))
Read more about Python functions at:
https://brainly.com/question/14284563
You learned that you can use the tags to insert a link to another webpage. One problem that webpage developers face is that, after a time, links may no longer work. Can you think of ways that you can avoid broken links?
Answer:Image Control
We can use the height and width properties to control the size of our image. Let’s say we only want the recipe image to take up approximately one-third of the page. Do you remember from math class what percentage one-third is? Type in the following CSS rule, and watch your picture change size before your very eyes!
img {
height:33%;
width:33%;
}
That wasn’t too difficult, right? Let’s make the image stand out a bit more by adding a border. Inside the img rule, add the following declarations:
border-style:dashed;
border-width: 5px;
Your picture should now have a dashed border around it that is five pixels in width. Play around with the different border styles that are available. You should see a drop-down box of choices, including dotted, dashed, double, groove, inset, and outset. You can also adjust the width of your border. Using your informative guessing skills, can you predict what property you might use to change the color of the border? Try it and see if you’re right!
Explanation:
this is a direct quote from my lesson
Match the following.
1. the process of reducing repetition of data
data normalization
2. individual categories of data you will enter in a database
records
3. a field that is a unique identifier for each record in the table
fields
4. data that is entered in the database
primary key
5. a link between two tables
relationship
Answer:
1192783728439
Explanation:
What are some good digital habits?
One tool under What-If-Analysis is Scenarios. Which best describes the purpose of setting up and using scenarios
1. to quickly combine multiple formulas from different cells into just one
2. to instantly compare results when data in numerous cells change to specified values
3. to conduct automatic complex statistical analysis on a range of cells
4. to constrain some cells to certain values so that the wrong data are rejected if entered
Answer:
Option B, to instantly compare results when data in numerous cells change to specified values
Explanation:
Scenario setting with in the What If Analysis is used to compare various scenarios with in the same excel sheet. Scenarios has set of values that are saves and updated automatically as the values with in the cell changes. Also the scenarios can be switched.
Hence, option B is correct
explain irony and why its ironic in 300 words
I’m not sure if I can do it in 300 words but you could probably stretch this out if you try hard enough.
Irony is like when you say how much you hate planes then the first time you get on a plane it crashes. It’s like when you say something that you don’t like or you don’t want to happen and it ends up happening anyways or something around those means.
This is 181 words sorry I couldn't figure out what else to add...
Explanation:
Verbal Irony occurs when the speakers attention is the opposite of what he or she is saying. Dramatic Irony occurs when the audience knows a key peice of information that the characters in a play or story do not know. There are a few diffrent types of Irony but theses two are the main ones used. It's kinda like when in the Cask of Amontillado Montresor hates Fortunado and leads him into the catacombs to kill him. There was a lot of Verbal and dramatic Irony. Verbal irony is created as the pair journey into the catacombs. Fortunado has a cough, and Montresor asks him to "return," or go out of the catacombs a few times. Fortunado continues in the hopes of sampling the amontillado. After Montresor chains Fortunado to the wall, he says, "Once more, let me implore you to return. No?" This is ironic because Montresor has no intention of letting Fortunado go. Another good representation of Dramatic Irony would be in Romeo and Juliet when the audience knows that Juliet is not dead, but Romeo thinks she is.
whats wrong with my ps4 i cleaned it and it's still overheating and i have 3 fans for it
Answer: If your PS4 is overheating, It must be because of some dust you couldn't reach and piled up.
Explanation: What you need to do is take a can of compressed air and gently navigate it through the openings to the fan on your PS4. Go through and clean out the USB ports.
is a keyboard a software?
Answer:
Yes
Explanation:
Because it's apart of software hope this helps
Which of these factors needs to be considered when filming in HD?
The screen is a rectangle.
The screen is a square.
There are no pixels involved.
There will be less definition in each shot.
Note that the factors that need to be considered when filming in HD is: "
There are no pixels involved. (Option C)There will be fewer definitions in each shot. (Option D)What is HD Filming?High-definition video is greater in resolution and quality than standard-definition video. While there is no accepted definition of high-definition, it is commonly defined as any video picture with much more than 480 vertical scan lines or 576 vertical lines.
High Definition video is of greater quality than standard definition video (or Standard Definition). The image will be crisper in HD than in SD.
Note that the screen being a rectangle or square does not need to be considered when filming in HD. However, the presence of pixels and potential loss of definition in each shot are factors that should be considered.
Learn more about filming:
https://brainly.com/question/14824318
#SPJ1
I really need help with this question, I can’t fail this please :) tysm
Answer:
i think its the third one, i hope this helps
Explanation:
bob has 2 candy bars he is fat what hapennes
Answer:
he eats The candy Bar
Explanation:
I think cause As You told he is fat He might like sugary items
Answer:
It is thought that some people are destined to gain weight because they have inherited “fat genes” from their parents. There can be no doubt that people vary in their genetic makeup and some people are inclined, because of genetic reasons, to become tall, or broad-shouldered, or squat, or fat.
Explanation:
it also has to do that your digest system do not digest it fast enough
Choose the first programming language for personal computers that was released in the 1970s by Microsoft
Answer:
Altair BASIC programming language
Explanation:
The Altair BASIC programming language was built for the Altair 8800 microcomputer by childhood friends, Bill Gates and Paul Allen in March 1975
The interpreter for the Altair BASIC programming language was developed by Bill Gates while Paul Allen worked on the simulator
The newly developed programming language worked without flaw during the demonstration to Micro Instrumentation and Telemetry Systems, MITS
Microsoft was founded by Bill Gates and Paul Allen on the 4th of April 1975
Answer:
C.) Altair BASIC programming language
Explanation:
future quirk ideas for bnha
Multiple Select Which conditions make using an array a better choice than a list? Select 3 options. when your list would contain a mixture of numbers and string values when you have a very large quantities of numeric data values when all your data are string when you will do a great deal of arithmetic calculations when efficiency is of great importance
When you have a very large quantities of numeric data values
When you will do a great deal of arithmetic calculations
When efficiency is of great importance
The conditions that make using an array a better choice than a list are:
When you have very large quantities of numeric data valuesWhen you will do a lot of arithmetic calculationsWhen efficiency is of great importanceWhat are arrays?An array is a set of items, images, or numbers arranged in rows and columns. Any set of rows or columns is referred to as an array. Examples of arrays include rows of seats for a recital, rows of cards laid out for the game of Memory, and rows of numbers in an Excel spreadsheet.
It is important to think of an array as a collection of variables of the same type even though it is used to store a collection of data. An array is a group of identically data-typed elements kept in consecutive memory regions.
Therefore, the correct options are B, when you have very large quantities of numeric data values, D, when you will do a lot of arithmetic calculations, and E. When efficiency is of great importance.
To learn more about arrays, refer to the link:
https://brainly.com/question/13107940
#SPJ5
You have a database with three tables: one each for products, suppliers, and distributors. You need to locate the product ID number for hammers and find out who supplies them. Which database component would perform this task?
A. Form
B. Table
C. Report
D. Query
Answer:
I would say A... But that's just me
Explanation:
Hopefully this helps you :))
Answer:
The answer is C: Query
Explanation: I just did it in Edge 2021. Trust me its right! I hope this helps! :)
Which of the following is NOT true about a flow chart?
A. It is usually created by programmers after writing a program
B. It shows programmers different algorithms before creating a program
C. It uses boxes of different shapes which indicate different types of
instructions
D. It helps programmers pay attention to the logic of the solution to the
problem
The not true of flow chart.
A flow chart is an illustration that shows the several steps of the process or the sequence if events and is a tool that can be used to adapt a wide variety and describes the purposes of the processes. Is basically a type of diagram representation of an algorithm.
This shows the answer is created for the programmers after a program.
The flow chart is a guide and describes the methodology of completing the task and the various steps involved to solve the same.Hence option A is correct.Learn more about the flow chart.
brainly.com/question/15712490.
"There are no longer mature industries; rather, there are mature ways of doing business," he is referring to the high demand of creativity and innovation in the market
Hi, you've asked an incomplete and unclear question. However, I provided the full text below.
Explanation:
The text reads;
"When Porter says “There are no longer mature industries; rather, there are mature ways of doing business,” he is referring to the high demand for creativity and innovation in the market. Earlier we used to be more concerned about the hardware and the physical product rather than its information content, But now as a business, we need to provide more informative content with the product.
Like General Electric offers dedicated customer service for its line of goods which differentiates it from its rivals. Similarly, shipping companies like UPS now offer us to track the location of our package on a live map. This is what we call a mature business and how we can differentiate ourselves and stand out in the highly competitive market by using Information and Technology..."
3.
What is the meaning of *.VBP.
Answer:
The meaning of VBP is Visual Basic Project
Answer:
visual basic projects thankyouu HAHAHAHA
because cute ako
Jiwoo is a professional photographer. Identify and describe a photography scenario where Jiwoo would need to consider the ethics and aesthetics of photography before proceeding. Clearly examine what ethical and aesthetic consideration she would have based on the scenario that you describe and how these relate to photography as a career or art form in general.
Answer:
Photography ethics are the principles that guide the way we take and share photos. Why is photography ethic so important? If we don't have morality in the way we use photography, we risk Aesthetics Ethics deals with the rights and wrongs and Aesthetics deals with beauty or otherwise. When we correct, manipulate or enhance images, the factors of ethics and aesthetics must always be kept in consideration. Where Does One Draw The Line if you add or remove something there that wasn’t in the scene you have crossed from documentary to fictional art. Exceptions In other cases, the only way to present a truer representation of reality is through a composite rather than with a single exposure.
Explanation:
I hope this helps I little
who like the videos where is clown is from :)
Answer:
i hate clowns alot especially pennywise lol
Explanation:
Who is the father of computer
Answer:
Charles Babbage is known as the father of computer.
Explanation:
hope it is helpful to you
How are switches indirectly involved in ARP poisoning?
Answer:
They
are indirectly involved in the attack because they do not verify the the MAC/IP address
association
Explanation:
PLEASE MARK ME AS BRAINLIEST
A free software license allows users to
Answer:
C. use, alter, and distribute the software as desired.
Explanation:
A software can be defined as a computer program or application that comprises of sets of code for performing specific tasks on the system
A free software license allows users to use, alter, and distribute the software as desired.
Which is a preformatted file that can be used to standardize the appearance of exported data?
a database
a spreadsheet
a report
a template
Answer:
D
Explanation:
A preformatted file that can be used to standardize the appearance of exported data is a template. Thus, option D is correct.
What is spreadsheet?A spreadsheet is a preformatted file that can be used to standardize the appearance of exported data. A spreadsheet is a computer program for organizing, calculating, and storing data in tabular form. Spreadsheets were created as digital counterparts to traditional paper accounting spreadsheets.
The data entered into a table's cells is what the program uses to run. Each cell may include text, numeric data, or formula results that automatically calculate and display values based on the contents of neighbouring cells.
Users of spreadsheets can change any stored value and watch the changes in calculated values. This enables quick investigation of numerous scenarios without the need for manual recalculation, making the spreadsheet helpful for "what-if" study.
Thus, A spreadsheet is a preformatted file that can be used to standardize the appearance of exported data.
Learn more about Spreadsheet, refer to the link:
brainly.com/question/8284022
#SPJ3
Kelly has always used "P4ssw0rd” as her password on her online accounts. Why should she change this? Check all that apply.
o Passwords should be used only once.
o It could be easily guessed.
o Passwords must be unique.
o It contains insufficient personal information.
o Passwords should be changed regularly.
Answer:
it could be easily guessed
Why is it a good practice to use functions in programming? Select the best answer.
A.It is faster to run the code using functions.
B.Functions allow us to reuse common code.
C.All of these are correct.
D.It is easier to debug the code using functions.
Answer:
C. All of these are correct answer from the options for the question that u have given...
The good practice to use functions in programming is all of these are correct. The correct option is C.
What are functions in programming?The repetitious codes are removed by breaking a program down into functions, which not only reduces the size of the program but also improves its effectiveness. If there were repetitive codes, we would need to alter the program from several locations rather than just one.
As a result, organizing programs into functions aid in good administration and shortens programs by removing repeated code. A functional programming language is a particular kind of language that allows for the creation and application of pure mathematical functions, along with the use of conditional expressions and recursion to carry out various computations.
Therefore, the correct option is C. All of these are correct.
To learn more about functions in programming, refer to the link:
https://brainly.com/question/24297344
#SPJ6
How do you write a multiplication formula in excel with an absolute refrence?
True or false: Machine learning lets computers
learn how to do things they weren't
specifically programmed to do.
Answer:
True
Explanation:
Which of the following binary numbers is equivalent to decimal 4?
A. 10
B. 100
C. 1010
D. 1111
Answer:
b so easy
Explanation:
Answer:
B. 100
Explanation:
Here is the answer to Edhesive 7.5 code practice
def GPAcalc(grade, weight):
grades = {"A": 4, "B": 3, "C": 2, "D": 1, "F": 0}
if weight == 0:
return grades[grade]
else:
return grades[grade] + 1
def Main(Random):
Print ("hi")
classes = int(input("How many Classes are you taking? "))
total = 0
for x in range(classes):
letter = input("Enter your Letter Grade: ")
user_weight = int(input("Is it weighted? (1 = yes 0 = no) "))
grade = GPAcalc(letter, user_weight)
total += grade
print("Your GPA score is: ", grade)
print("Your weighted GPA is a",(total/classes))
Which of the following is document content that displays at the top of every page?
Choose the answer.
style set
footer
header
title
Answer: Header/Title
Explanation: