Answer:
def newton(n):
#Define the variables.
t = 0.000001
esti = 1.0
#Calculate the square root
#using newton method.
while True:
esti = (esti + n / esti) / 2
dif = abs(n - esti ** 2)
if dif <= t:
break
#Return the result.
return esti
#Define the main function.
def main():
#Continue until user press enters.
while True:
try:
#Prompt the user for input.
n = int(input("Enter a number (Press Enter to stop):"))
#display the results.
print("newton = %0.15f" % newton(n))
except:
return
#Call the main function.
main()
Answer:
D
Explanation:
pecialisation - departments focus on one area of work. productivity - specialism means that staff are skilled in the tasks they do. accountability - there are clear lines of management. clarity - employees understand their own and others' roles.
Answer:
a) the Statement is Invalid
b) the Statement is Invalid
Explanation:
a)
lets Consider, s: student of my class
A(x): Getting an A
Let b: john
I have a student in my class who is getting ab A: Зs, A(s)
John need not be the student i.e b ≠ s could be true
Hence ¬A(b) could be true and the given statement is invalid
b)
Lets Consider G: girl scout
C: selling 50 boxes of cookies
P: getting prize
s: Suzy
Now every girl scout who sells at least 50 boxes of cookies will get a prize: ∀x ∈ G, C(x) -> P(x)
Suzy, a girl scout, got a prize: s ∈ G, P(s)
since P(s) is true, C(s) need not be true
Main Reason: false → true is also true
Therefore the Statement is Invalid
The answers are 3,5, and 6
Animation Programmer
In this situation, the subject of "Game Creation", has nothing to do with animations, that would be the work of the animation team. A programmer would be the one programming the tools, the AI, and even the graphics, but not the animations.
Good Luck!