<span>C)Understand how to protect yourself, think about safety in your surroundings, and plan your possible responses to a violent situation.</span>
Sample size is not taken into account
Answer:
The algorithm is as follows
- Start
- Read the price of unit Pizza, P
- Read the Radius of Pizza, R
- Area = 3.14 * R * R
- Price Per Area = P/Area
- Print Price Per Area
- Stop
Explanation:
The algorithm is self explanatory.
However, take note of the following
- Price Per Square inch is calculated by dividing the price (P) of the pizza by its area
- A pizza has a circular surface, so the area will be calculated using Area = πR²
- So, the formula to calculate the required output is P/Area as shown in the algorithm above.
Answer:
A. (*pStruct).member
Explanation:
pStruct corresponds to a pointer to a structure datatype.
So to get a reference to the actual structure data, we need to dereference the pointer using the * operator. This can be done using (*pStruct).
Now we need to access a field of the structure called member. This can be done using the dot notation. So the syntax for accessing the field 'member' will correspond to:
(*pStruct).member