1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
astra-53 [7]
3 years ago
8

(On Python/ Edhesive) Test if a date is a payday based on the day of the month (15th or the 30th).

Computers and Technology
1 answer:
Mazyrski [523]3 years ago
7 0

Answer:

day = input("Enter today's day numerically: ")

if "15" in day or "30" in day:

print("It's payday!")

else:

print("Sorry, not a payday.")

Explanation:

Ask the user what day it is and store it in a variable called, day. Write a simple if else statement to check if ut is payday or not. This program can be more advanced by having payday be a variable.

You might be interested in
Write a recursive method called, doMyMath, which takes as input any positive integer and calculates the factorial (use comments
gulaghasi [49]

Answer:

def doMyMath(n):  

    if n == 1:  

         return n  

    else:  

         return n*doMyMath(n-1)  

Explanation:

This line defines the function

def doMyMath(n):  

This line checks if n is 1. If yes, it returns n (1)

    if n == 1:  

         return n  

If otherwise, it calculates the fibonacci recursively

    else:  

         return n*doMyMath(n-1)  

To call the function from main, you can use:

print(doMyMath(5))

or

num = int(input("Number: "))   --- This gets the number from user

print("Result: ",doMyMath(num)) --- This calculates the factorial

<em>This question is answered in Python</em>

6 0
3 years ago
Solesbee v. Balkcom (1950) was one of two cases that challenged the constitutionality of capital punishment prior to 1968. What
Karo-lina-s [1.5K]

Answer:

Whether a governor is allowed to determine an inmates sanity where finding an inmate insane would prevent his or her execution

Explanation:

The Solesbee v. Balkcom (1950) was a case where a state in its policy was against the execution of convicts who goes insane after being convicted and sentenced. According to this case, under the Fourteenth Amendment, such is not considered denial of due process if the governor is vested with the power to determine if a convict is insane after sentence or not, and if he is actually insane, a governor should be the one to say if the convict is to put in an insane asylum.

4 0
3 years ago
The dashboard for the WebFOCUS BI platform in the Travel and Transport case study required client side software to operate. True
Elina [12.6K]

Answer:

True

Explanation:

The WebFOCUS is a platform with the BI and analytics that can be used as an application tool for business transactions and reports. Different kinds of professionals such as those in management or analysis as well as customers could use the platform. Based on the statement provided in the question, the answer is true.

6 0
4 years ago
1. Give state diagrams of DFAs recognizing the following languages. The alphabet is {0, 1}. (a) {w | w is any string except 11 a
storchak [24]

Answer:

Explanation:

The first diagram shows the DFA that accepts that accepts any string except 11 and 111

The second diagram shows every odd position of w is 1

6 0
3 years ago
Modify the FitnessTracker class, created in Chapter 4 Programming Exercise 3AB, so that the default constructor calls the three-
Ivenika [448]

Answer:

Is this coding?

Explanation:

5 0
3 years ago
Other questions:
  • What is a PowerPoint template?
    6·2 answers
  • What is nominal data?
    5·1 answer
  • What the heck is a motherboard and why is my computer not working when i take it out
    14·1 answer
  • Write a function that takes an integer value and returns the number with its digits reversed. for example, given the number 7631
    10·1 answer
  • A file ____ utility is a utility that shrinks the size of a file(s).
    6·1 answer
  • A photographer is reading about how to ensure a high-quality photographic print. Which statements convey the best way to ensure
    5·1 answer
  • Filtering data in Excel Online keeps all data on the screen and highlights the content that fits your criteria.
    9·1 answer
  • What is the difference between ionizing and non-ionizing radiation?
    7·2 answers
  • Pls help I will give points
    11·1 answer
  • List 4 criteria of power your house with wind
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!