Answer:
num_guesses = int(input())
user_guesses = []
for i in range(num_guesses):
x = int(input())
user_guesses.append(x)
print(user_guesses)
Explanation:
This solution is provided in Python
This line prompts the user for a number of guesses
num_guesses = int(input())
This line initializes an empty list
user_guesses = []
This loop lets user input each guess
for i in range(num_guesses):
This line takes user input for each guess
x = int(input())
This appends the input to a list
user_guesses.append(x)
This prints the user guesses
print(user_guesses)
Answer is :
=D3+A3-B3
These Cell address contain following statement:
D3= Olivia saving account balance
A3= Olivia 3 month income
B3= Olivia 3 month expense
so, Expense are also deducted from income and income is added into saving balance.
In this situation we are use this formula:
=D3+A3-B3
Answer:
Algorithm
Explanation:
Algorithm is a set of instructions designed to perform a specific task, an independent sequence of actions to be perform to solve a problem and instruction for performing a computation.
Algorithm is A(n) key set of steps used to convert an unencrypted message into an encrypted sequence of bits that represent the message; it sometimes refers to the programs that enable the cryptographic processes.
Answer:
array = input("Enter the list of computer memory: ").split(',')
int_arr = [int(x) for x in array]
segment = int(input("Enter the length of segment to analyze: "))
list_len = len(int_arr)
segList = []
mini = []
for x,i in enumerate(int_arr):
seg = int_arr[i-1:segment+i-1]
if len(seg) == segment:
segList.append(seg)
for x in segList:
mini.append(min(x))
result = mini.index(min(mini))
print("Segment with the minimum memory is: ",segList[result])
Explanation:
The python program prints out the segment after analysis, with the smallest disk memory space. The code gets the array of computer rows from the user input and segments the array with the number of segment input, then the minimum is compared for all segments in the network.
Answer:
=IF( B7 = 12, ( IF( B10 = 10,"YES", "")), 7) and PRESS ENTER
Explanation:
the above logical if function checks the following
-IF cell B7 is 12, if true, check the value of cell B10, IF cell B10 contains 10 the function should produce YES as output to whatever cell selected, IF B10 is not 10 output of the function should be an empty string, IF B7 is not equal to 12 the the output of the function should be 7.