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:
To add technology and advancements to society and make out community more advanced.
Explanation:
Answer:
If i am correct It should be 1/4 of an inch
Explanation:
Sorry but i can't quite explain
Answer:
Explanation:
Given that
Vrms= 60 V
Vf= 0.7 V
We know that peak value of AC voltage given as
Now by putting the values
The output voltage of the DC current given as
Therefore output voltage of the DC current is 84.15 V.
Answer:
σ =5.39Mpa
Explanation:
step one:
The flexure strength is defined as the tendency with which unreinforced concrete yield to bending forces
Flexural strength test Flexural strength is calculated using the equation:
σ = FL/ (bd^2 )----------1
Where
σ = Flexural strength of concrete in Mpa
F= Failure load (in N).
L= Effective span of the beam
b= Breadth of the beam
step two:
Given data
F=40.45 kN= 40450N
b=0.15m
d=0.15m
L=0.45m
step three:
substituting into the expression we have
σ = 40450*0.45/ (0.15*0.15^2 )
σ =18202.5/ (0.15*0.15^2 )
σ =18202.5/ (0.15*0.0225 )
σ =18202.5/0.003375
σ =5393333.3
σ =5393333.3/1000000
σ =5.39Mpa
Therefore the flexure strength of the concrete is 5.39Mpa