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:
d
Explanation:
is the because that's the amount of work in making machine can do producing heat
Answer:
nmuda mudaf A certain vehicle loses 3.5% of its value each year. If the vehicle has an initial value of $11,168, construct a model that represents the value of the vehicle after a certain number of years. Use your model to compute the value of the vehicle at the end of 6 years.
Explanation:
Answer: Doctrine of ratification
Explanation:Doctrine of ratification tries to show that a person who is taking so much a time to complain has indicated that he agrees even if he doesn't without a written consent. This is to eliminate undue waste of time in business, legal an other proceedings requiring consent of both parties.
Doctrine of ratification can either be implied or expressed
Implied ratification is the type of ratification where a persons actions or body language can be seen that he has accepted.
Express ratification is a ratification where a person intentionally accept by showing either through written or verbally.
Answer:
r = 1.922 mm
Explanation:
We are given;
Yield stress; σ = 250 MPa = 250 N/mm²
Force; F = 29 KN = 29000 N
Now, formula for yield stress is;
σ = F/A
A = F/σ
Where A is area = πr²
Thus;
r² = 2900/250π
r² = 3.6924
r = √3.6924
r = 1.922 mm