Computer Programming Exercises
1. Write a program that prints a table showing the sin, cos, and tan values for the uncommon angles ( 15, 20, 70 , and 140). Make sure that the values are displayed only up to 4 significant digits
2. The general characteristics of a semiconductor diode can be defined by the following equation
I D= I S(e^ KVD /TK -1)
where k = 11.600K/V for Silicon, VD is the diode voltage in Volts, TK is the temperature in Kelvins, IS is the saturation current in Amperes, and ID is the diode current. Write a program that accepts IS (ranging from 10 ^ -15A upto 10 ^ -9A ), VD (ranging from 0 to 1 Volts) and TK (ranging from -50 C to 150 °C) from the user and calculates ID. 3. Modify the above program to print a table for the voltages and currents for a given temperature (obtained from the user). Take IS = 10 ^ -9A and calculate ID for VD = 0, 0.1, 0.2, ....1V. Do these values agree with the diode curve you saw in electronics class?