Answer:
The Decimal Number System is a number system for which every real number x can be written in terms of the ten digits 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9 as the sum of powers of 10. A number in the decimal number system is said to be of base 10 and to specify this we attach a subscript 10 to x, written (x)10.
The Binary Number System is a number system for which every real number x can be written in terms of the two digits 0 and 1 as the sum of powers of 2. A number written in the binary number system is said to be of base 2, and to specify this we attach a subscript 2 to x, written (x)2.
Answer:
import random
print("Hello! I have a random number from 1 to 100! It is your job to try and guess it!")
number = random.randint(1,101)
guess = int(input("start to guess: "))
num_guesses = 1
while guess != number:
if guess > number:
print("lower")
guess = int(input("try again: "))
num_guesses +=1
elif guess < number:
print ("higher")
guess = int(input("start to guess: "))
num_guesses +=1
print("congrats it took you", num_guesses, "tries")
Explanation:
Answer:
Conflict of interest is a common issue in the workplace. Most of us have heard someone say, “It’s who you know, not what you know.” We have heard co-workers complain that a manager’s relative always gets the biggest raise or the best assignment. We might have seen colleagues accept gifts from potential vendors. Maybe a co-worker leaves work 20 minutes early every day so she can get to her second job. A supervisor may give a co-worker time off from work to do volunteer work or might allow employees to solicit donations and funds in the workplace, whether for the Girl Scouts or a local school function. Even though these situations are very different, they all fall under the heading of “conflict of interest.”
Explanation:are a clash that most often occurs between requirements and interests. Various types of conflicts of interest can occur because of the nature of relationships versus rules of organizations or federal and state laws. People can easily become biased (have an unfair preference) because of small things like friendship, food, or flattery, or they may be influenced to make a decision because of the potential to gain power, prestige, or money. Conflicts can occur when an individual makes or influences a decision and does so for some personal gain that may be unfair, unethical, or even illegal. The important part is what you do in each of those situations. Do you allow your family, friendship, financial, or inside knowledge affect your actions? If you do, you could be violating state statute and university policy.
In our work lives, we also have interests that could influence the way we do our jobs and the decisions we make. Even if we never act on them, there may be an appearance that a conflict of interest has influenced our decisions. Consider this example. Your supervisor is promoted to department director. His daughter-in-law is hired as a new supervisor within the college but is not reporting to him. Maybe the new supervisor is the best candidate for that position, and maybe the new department director had nothing to do with her hire. Even if this hire met all of the requirements under our Employment of Relatives policy, the situation appears suspicious and employees may think that something was unfair or unethical about her hire.
Transparency (being completely open and frank) becomes important when dealing with both actual and potentially perceived conflicts of interest. Perception happens when an individual observes something (behavior or activity) and comes to a conclusion. Perceiving a conflict of interest does not make it a conflict of interest. The true test of verifying whether a matter is just a potentially perceived conflict of interest, or an actual conflict of interest, is disclosure.
def func():
money = int(input("How much money will you have on holiday? "))
print("You will have {} euros.".format(int(money * 1.11)))
money = int(money * 1.11)
fifty = 0
twenty = 0
ten = 0
five = 0
while True:
if money - 50 >= 0:
fifty += 1
money -= 50
elif money - 20 >= 0:
twenty += 1
money -= 20
elif money - 10 >= 0:
ten += 1
money -= 10
elif money - 5 >= 0:
five += 1
money -= 5
if money < 5:
print("You will have {} fifties, {} twenties, {} tens, {} fives, and {} ones".format(fifty, twenty, ten, five, money))
return
func()
I hope this helps!
Answer:
Check the explanation
Explanation:
Please find the code down
def selection_sort_descend_trace(numbers):
i=len(numbers)
print("Output: ")
for num in range(0,i-1):# traversing from 0 to N-2, total N-1 iterations
val=numbers[num]
start=num+1
end=i
t=0
for j in range(start,end):
if(val<numbers[j]):
remember=j
val=numbers[j]
t=1
if(t==1):# swaping onlf if greater number is available
temp=numbers[num]
numbers[num]=val
numbers[remember]=temp
for p in range(i):# printing
print(numbers[p],end=' ')
print("\n")
if __name__ == "__main__":
print("Enter the integers separated by space: ")
numbers=[int(x) for x in input().split(' ')]
selection_sort_descend_trace(numbers)
Taking input as string and splitting with space as delimiter , converting the split part to integer , finally append in the list.