Answer:
see explaination
Explanation:
import random
def number_guess(num):
n = random.randint(1, 100)
if num < n:
print(num, "is too low. Random number was " + str(n) + ".")
elif num > n:
print(num, "is too high. Random number was " + str(n) + ".")
else:
print(num, "is correct!")
if __name__ == '__main__':
# Use the seed 900 to get the same pseudo random numbers every time
random.seed(900)
# Convert the string tokens into integers
user_input = input()
tokens = user_input.split()
for token in tokens:
num = int(token)
number_guess(num)
Specialized search engines indexes content specialized by topic or location and are used to deliver more relevant results to the user. It indexes pages for particular topics. Examples of specialized search engines and their applications include;
1. Uquery.com – This new search engine focuses more on the emergence of iPhone and iPod touch applications
2. Taptu.com – A downloadable search engine that helps the user find items specific to fit on a mobile screen
3. Yahooligans – A sub-domain of yahoo that focuses on kid friendly games.
4. Pubmed.com – This is specifically meant for students in medical schools
5. Zillow.com – Online real estate service that provides information regarding home purchase.
Answer:
Each time you insert a new node, call the function to adjust the sum.
This method has to be called each time we insert new node to the tree since the sum at all the
parent nodes from the newly inserted node changes when we insert the node.
// toSumTree method will convert the tree into sum tree.
int toSumTree(struct node *node)
{
if(node == NULL)
return 0;
// Store the old value
int old_val = node->data;
// Recursively call for left and right subtrees and store the sum as new value of this node
node->data = toSumTree(node->left) + toSumTree(node->right);
// Return the sum of values of nodes in left and right subtrees and
// old_value of this node
return node->data + old_val;
}
This has the complexity of O(n).
Explanation:
Answer:
b.Make every attempt to recover the data
Explanation:
If you have important data on your hard drive that is not backed up and your Windows installation is so corrupted you know that you must refresh the entire installation you should make every attempt to recover the data.
Answer:
d. by increasing their customer knowledge and leveraging that information to improve customer experience
Explanation:
Consumers are at the heart of all businesses as they are the ones who our product are targeted. They purchase these goods and the company makes profit. Therefore, it is paramount for businesses to identify their target consumers in other to understand their preference and serve them accordingly. With data analytics, a consumers purchase history, likes and viewed products may be used to improve relationship between consumers and service providers. Once a consumer's preference is anlysed using data, then this is leveraged to improve the kind of service offered to such consumer leasing to better consumer experience.