Write a function named test_sqrt that prints a table like the following using a while loop, where "diff" is the absolute value of the difference between my_sqrt(a) and math.sqrt(a).
a = 1 | my_sqrt(a) = 1 | math.sqrt(a) = 1.0 | diff = 0.0
a = 2 | my_sqrt(a) = 1.41421356237 | math.sqrt(a) = 1.41421356237 | diff = 2.22044604925e-16
a = 3 | my_sqrt(a) = 1.73205080757 | math.sqrt(a) = 1.73205080757 | diff = 0.0
a = 4 | my_sqrt(a) = 2.0 | math.sqrt(a) = 2.0 | diff = 0.0
a = 5 | my_sqrt(a) = 2.2360679775 | math.sqrt(a) = 2.2360679775 | diff = 0.0
a = 6 | my_sqrt(a) = 2.44948974278 | math.sqrt(a) = 2.44948974278 | diff = 0.0
a = 7 | my_sqrt(a) = 2.64575131106 | math.sqrt(a) = 2.64575131106 | diff = 0.0
a = 8 | my_sqrt(a) = 2.82842712475 | math.sqrt(a) = 2.82842712475 | diff = 4.4408920985e-16
a = 9 | my_sqrt(a) = 3.0 | math.sqrt(a) = 3.0 | diff = 0.0
Modify your program so that it outputs lines for a values from 1 to 25 instead of just 1 to 9.
how SAP’s Ariba suite of solutions can aid CQ in managing their relationship with the overseas suppliers.
Briefly describe any five types of Network/ Cyberattacks faced by individuals and organisations around the world, and provide recommendations on how to prevent each of the attacks discussed
A user’s laptop is shutting down unexpectedly. As a Network Technician, you discovered the “shutdowns” only happen when the laptop is moved from one room to another. You “reseat” the hard drive, memory, battery, and LCD cable, but the laptop continues to shut down.
Explain what could be the cause of this issue, and how would you resolve it.
you are required to design, implement, and document a database system for Comics and Novels Rental Company.
a. Produce a complete Entity-Relationship (ER) diagram (include keys and participation constraints) for the above-mentioned scenario.
b. Map your ER diagram to its corresponding relational schema.
c. Identify the attributes, data types, and constraints of each table and document in the data dictionary.
d. Implement the set of entities/ tables using Data Definition Language (DDL).
Write a program that recommends whether you should bring an umbrella to school. Your program should ask the user to enter the probability for rain in today’s weather forecast. If the probability is greater than 30% then output “Bring your umbrella today”. Otherwise, output “Leave your umbrella at home today”. Test your program using the values 50 and 20.