Question: write a coding using c language Imagine that you are working as a software developer. You have been assigned to write a software package that
write a coding using c language
Imagine that you are working as a software developer. You have been assigned to write a software package that able to help the electrical engineer to simulate a basic direct current (DC) circuit containing a single resistor (R) and a single capacitor (C) as illustrated in Figure Q4(a). RC Charging Switch Ve = V (1 - e Re Where: Vc is the voltage across capacitor. V, is the supplied voltage e is exponential t is the voltage across capacitor. R is the resistor value in Ohm (12). C is the capacitor value in Farad (F). Figure Q4(a) (Images taken from https://www.electronics-tutorials.w) The software should fulfill the following criteria: 1. Receive three floating values from user for: a) supply voltage, Vs; b) capacitor value, C; and e) resistor value, R. 2. A function called calculate simulateCharging() which takes all three values from (1). The function will print the value of the floating-point numbers in array for voltage across the capacitor, Ve during the charging phenome for a given time t which starts at O second to 10 second with an interval time of 1 second. Formula as provided in Figure 04(a)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
