Correct the mistakes in the following python programme then save the corrected code in the Word file by copying and pasting it.
a = input(("Type a number here: ")
x = float(a)
b = input("Type another number here: "))
y = float(b)
if a > b:
print("the number " + str(x)+ " is bigger than the number" + str(y))
elseif a == b:
print("the numbers are equal")
else:
print("the number " +str(x)+ " is smaller than the number " + str(b))
Correct the following python programme. then save the corrected code in the Word file by copying and pasting it.
X = int(input(“please enter an integer value : “)
Y = int(input(“Please enter another integer value: “)
a = int(x)
b = int(y)
z = a%x
print(z)
Write a python programme to take two inputs of two different numbers (float) from the user pointed at
by two variables x and y respectively.
Add the numbers and have the result in the variable z.
Print the text “The total of two numbers is” concatenated with the sum of the numbers “z” after
changing it by ‘str’ into string form.
(i)Let U₁ = (p(x) = P₁: p(x)is even) and U₂ {p(x) E P3: p(x)is odd). Can we claim that U₁ U₂ = P3? (ii)Let A be an n x n matrix and A can be factored
as ABC, where Bis an n x p matrix and Cis a px n matrix with np. Can the matrix A be invertible? Justify your answer.
Use linearity and the assumption that 𝑉0=1 𝑉, find the actual value of 𝑉0
Two power stations, A and B, are synchronized at 88 kV. They are interconnected by a transmission line with an inductive reactance of 5.7 Ω and resistance of 1.3 Ω. The voltage of power station A is advanced with an angle of 7.8 degrees with respect to the voltage of power station B. The loading of power station B has a real power of 312.31 MW. The respective loads of the two power stations are as follows:
Power station A: 700 MVA at a power factor of 0.819 lagging.
Power station B: The reactive power consumed by the load is 412 Mvar.
Use the complex power method to calculate the interconnector current (Iij) in kA in polar form
In a three-phase, four-wire system, the currents in lines A, B and C under abnormal conditions of loading were as follows:
Ia = 100∠ 30° A; Ib=50∠ 300° A ; and Ic=30∠ 180 ° A.
Determine the zero-phase sequence current (Iao) in line A in polar form.
An unbalanced, three-phase, three-wire, star-connected load is supplied from a balanced three-phase source at 380 V,50 Hz. The phase sequence impedances of the load are the following:
Za =17.5 ∠ - 34.2°Ω ; Zb=13.9 ∠ 68.15° Ω ; Zc =14.2 ∠ - 49.7° Ω
Take Eab as a reference, with a phase sequence of ACB.
Use Millman’s theorem and determine the phase voltage (Ic) of the load in polar form.
raw the filter of the equation x(t) given below. Design the filter using a Butterworth filter. Verify the filter design and adjust n as needed. - Test the filter and explain what you get? x(t) = 3 sin(51130t)+ 15cos(61250t)
A 208 V, 60 Hz, 4 poles, star connected SCIM gave the following test results
N.L. test: 450W, 208V, 1.562A, B.R. Test : 59.4W, 27V, 2.77A
The stator winding resistance between any two terminals=2.4Ω.
a. Compute the equivalent circuit parameters of the motor.
b. Determine the shaft torque and the efficiency of the motor if it is running at its rated speed of
1710rpm.