Answer:
Please, see the attachment.
Explanation:
First, we have to create two input boxes that allows the user to write the current year in one of them and his/her birth year in the another one. Also, we have to create a label that will show the result of the desired variable. We can write a message "Your age is:" and it will be attached to the result.
For the algorithm, let's call the variables as follows:
CY = Current Year
BY = Birth Year
X = Age of user
When the user inserts the current year and his/her birth year, the program will do the following operation:
X = CY - BY; this operation will give us the age of the user
After this the user will see something like "Your age is:" X.
Answer:
d) Binary
Explanation:
Binary search is a search algorithm that finds the position of a value in an ordered array. It compares the value with the element in the middle of the array, if they are not equal, half in which the value cannot be eliminated and the search continues in the remaining half until the value is found.
Answer:
Since the farmer wants to buy a 10 kg bag of fertilizer, he should buy it from merchant A. However, Merchant A and B are selling at the same price for a unit value. In other words, Both Merchant A and B are selling 1kg of dry fertilizer for $1.
Explanation:
Which merchant has the better deal means which merchant offers the farmer a better deal.
For Merchant A, 10 kg bag = $10
meaning it contains a real 10 kg bag of dry fertilizer which the farmer can use without losing any Kg to drying.
While for Merchant B, 10 kg bag = $8
where the 10kg = 80% dry fertilizer + 20% water content
But the farmer can only use the solid constituents of the bag which means,
Merchant B is giving 80/100 x 10Kg of dry fertilizer for $8
That is, 8kg for $8
Since the farmer wants to buy a 10 kg bag of fertilizer, he should buy it from merchant A. However, Merchant A and B are selling at the same price for a unit value. In other words, Both Merchant A and B are selling 1kg of dry fertilizer for $1.
Answer:
A. Bow
Explanation:
Registration number is an evidence or authentication of registration of a vessel or vehicle. This number is very important when an emergency occurs and there is a need to trace the vessel to the owner. And this should be displayed on a vertical surface or a surface where easy view is achievable.
So it is recommended that registration numbers be displayed on the bow of the vessel. The number should be displayed in such a way that it could be read from left to right.
Answer:
max shear = R = V = 15 kN
Explanation:
given:
load = 10 kn/m
span = 3m
max shear = R = V = wL / 2
max shear = R = V = (10 * 3) / 2
max shear = R = V = 15 kN