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.
Answer:
Explanation:
Crew members need to remember that blowout prevention equipment is heavy any very unforgiving. Working around BOPs (nippling up or down, ram replacement, etc.) puts workers in a high hazard area. All personnel involved in the operation must be fully alert and knowledgeable in their tasks. All crew members should participate in the Pre-Job Safety meeting. Communications are critical in this operation and all personnel should be aware of the signals to be used.
An author first comes up with a basic idea, like male or female for example. Then personality traits take place. Character design can be decided before personality traits too, sometimes it helps authors come up with different ideas. Next personal relationships can be included.
Answer to my knowledge is d. overlap
Even though your variable x is large enough to hold the answer 40000000000, the constants 200000 are treated as integers, such that the multiplication is first fitted in an integer that is too small.
The solution is to use the 'LL' suffix on the constants, so that the compiler knows to treat them as long longs from the start:
long long x = 200000LL * 200000LL;
The number <span>1345294336 can be explained by ANDing 40000000000 with 0xFFFFFFFF (which is the maximum size of an unsigned long)</span>