Hi, you haven't provided the programing language in which you need the code, I'll just explain how to do it using Python, and you can apply a similar method for any programming language.
Answer:
1. def pyramid_volume(base_length, base_width, pyramid_height):
2. volume = base_length*base_width*pyramid_height/3
3. return(volume)
Explanation step by step:
- In the first line of code, we define the function pyramid_volume and it's input parameters
- In the second line, we perform operations with the input values to get the volume of the pyramid with a rectangular base, the formula is V = l*w*h/3
- In the last line of code, we return the volume
In the image below you can see the result of calling the function with input 4.5, 2.1, 3.0.
Answer:
a)
, b)
, c) 
Explanation:
A turbine is a steady-state devices which transforms fluid energy into mechanical energy and is modelled after the Principle of Mass Conservation and First Law of Thermodynamics, whose expressions are described hereafter:
Mass Balance

Energy Balance

Specific volumes and enthalpies are obtained from property tables for steam:
Inlet (Superheated Steam)


Outlet (Liquid-Vapor Mix)


a) The mass flow rate of the steam is:



b) The exit velocity of steam is:




c) The power output of the steam turbine is:



Answer:
Temperature on the inside ofthe box
Explanation:
The power of the light bulb is the rate of heat conduction of the bulb, 
The thickness of the wall, L = 1.2 cm = 0.012m
Length of the cube's side, x = 20cm = 0.2 m
The area of the cubical box, A = 6x²
A = 6 * 0.2² = 6 * 0.04
A = 0.24 m²
Temperature of the surrounding, 
Temperature of the inside of the box, 
Coefficient of thermal conductivity, k = 0.8 W/m-K
The formula for the rate of heat conduction is given by: