You are on page 1of 2

BASIC ELECTRONICS ASSIGNMENT 2

This assignment comprises implementation of concepts of Current & Voltage division and resistance combination through programming. Make a program in C/C++ as per the instructions given below. Program 1: Your program should have two basic functions. First part is about implementing VDR. Your program should take input from the user consisting of value of resistances connected in series and the voltage applied across them, then divide the voltage using VDR and calculate the current using ohms law. Show the individual voltages across each resistor along with the current through all of them.

Second part is similar to first one. Take input of resistances connected in parallel and the total current. Using CDR, divide the current and show the individual currents and net voltage across the parallel branches.

Your program should be able to handle any number of resistances the user enters. Extra credit will be given to those who make an interface of above mentioned program.

Program 2: Make a program for calculation of equivalent resistance of resistive network using parallel and series combinations of resistors. Your program should take the value of each resistance(with or without suffix) and the two node numbers across which it is connected as well as the two node numbers at which the resistance is to be calculated. Your program should be able to handle any number of resistances and show the result with proper suffix.

Deadline : 08/04/2012

1130pm

You might also like