Calculate analog output voltage from digital input for 8-bit and 10-bit Digital-to-Analog Converters (DACs) using R-2R binary weighted method.