Question 1 The volume of a pyramid is taken from the formula: V = 1/3 x AREA OF BASE x ALTITUDE
Given the dimensions of a pyramid, evaluate the cost of materials for making that pyramid from a solid cinder block with a 16 x 8 x 8 dimensions. Test your algorithm when the pyramid is 40 x 30 meters and cinderblocks cost.
Question 2. Parking charge per hour at Baguio Center Mall underground parking is as follows: P 5.00 - minimum charge for 2 hours parking or less, P 1.50/hr.- additional charge in excess of 2 hours parking, P 25.00 - maximum charge.
Input : number of hours (HRS) the vehicle was parked.
Output : parking charge (CHARGE).
Note: a fraction of an hour is charged 1 hour.
Example: 5 hours and 15 minutes should be entered as 6 hours. LOOPS: 3. There are 5 numbers, determine the factorial of each number.