Full Question
1. Correct the following code and
2. Convert the do while loop the following code to a while loop
declare integer product
declare integer number
product = 0
do while product < 100
display ""Type your number""
input number
product = number * 10
loop
display product
End While
Answer:
1. Code Correction
The errors in the code segment are:
a. The use of do while on line 4
You either use do or while product < 100
b. The use of double "" as open and end quotes for the string literal on line 5
c. The use of "loop" statement on line 7
The correction of the code segment is as follows:
declare integer product
declare integer number
product = 0
while product < 100
display "Type your number"
input number
product = number * 10
display product
End While
2. The same code segment using a do-while statement
declare integer product
declare integer number
product = 0
Do
display "Type your number"
input number
product = number * 10
display product
while product < 100
Answer:
A. N type impurities
B. P type impurities
Explanation:
A. The impurities contribute free electrons and changing the conducting property of the semi conductor. When a pentavalent impurities in a semi conductor( impurities with five valence electron) , the impurity atom replace some of the semi conductor atoms in the crystal structure where 4 of the valence electron would be involved in bonding of 4 neighbouring semiconductor while leaving the fifth electron to be free(negative charge carrier) which is available for detachment.
B. When a trivalence impurity is added to semiconductor, instead of excess electron, there will be excess hole created by crystals. Reason for this attribute is the trivalence atom will replace some tetra valence semiconductor atom, when three valence electrons of the 3 valence electrons of the trivalent impurity atom make bond with three neighbouring semiconductor which gives rise to lack of electron in the bond of the fourth neighbouring semiconductor which contribute a whole to the crystalline since trivalent impurity contribute excess holes to the crystal of semi conductor, this holes can accept electrons.
Answer:
See explaination
Explanation:
Please kindly check attachment for the step by step solution of the given problem
Answer:
Preferential stress will cause crystals to rotate into a preferred orientation unless the crystals are Equant