import turtle
window = turtle.Screen()
tr = turtle.Turtle()
tr.forward(100)
tr.left(90)
tr.forward(100)
tr.left(90)
tr.forward(100)
tr.left(90)
tr.forward(100)
tr.back(100)
tr.left(120)
tr.forward(75)
tr.right(78)
tr.forward(60)
window.mainloop()
In my code, we use the turtle module for the graphics to draw the house with a roof.
Answer:
rv = "hello"
num_chars = len(rv)
print(num_chars)
Explanation:
*The code is in Python.
Initialize the string rv, in this example I set it to "hello"
Use the len() method to get the number of characters in the rv and set it to the num_chars
Print the num_chars
Note that the result will be 5 in this case, because <em>hello</em> consists of five characters
Answer:
r = 1
Explanation:
Average processing time ( p ) = 3 minutes
Average inter-arrival time ( a ) = 3 minutes
number of servers ( m ) = 3
<u>Determine the value of r </u>
r ( offered load ) = p/a
= 3 / 3 = 1
∴ value of r ( offered load ) = 1
Answer:
The correct option for the given question is option(b) i.e 72 = amount;
Explanation:
In the option(a) the total variable store the value 9 which is a valid assignment
In the option(b) 72 is not a variable because the variable will never start with a numeric number. Therefore it is not a valid assignment statement.
In the option(c) the yourAge variable store the value of myAge variable which is a valid assignment.
So correct answer is an option(b).