Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I want a c program for this question . First, user is prompted to enter two capacitance values representing capacitors C1 and C2. Use a

I want a c program for this question . First, user is prompted to enter two capacitance values representing capacitors C1 and C2. Use a user-defined function to receive these values. The values entered must then be passed to the menu function. 2. The menu function must display the following: 1. Calculate and display the total capacitance (CT) 2. Calculate and display the voltage drops for each resistor (VC1, VC2) 3. Calculate and display the electrical charge (QT) User is asked to enter 1, 2 or 3 to select one of the options displayed on the screen. PRG 155 Programming Fundamentals Using C 3. For the following, you must use the switch statement. If option 1, 2, or 3 is entered, total capacitance, voltage drops, or electrical charge is calculated using formulas shown on the next page. If any character other than 1, 2, or 3 is entered, the program will display an error message: o This is not a valid option! Capacitors in Series The total capacitance for capacitors in series is calculated as follows: Online Image. sparkfun. 20 Mar, 2017. . If there are only two capacitors in series, the total capacitance is calculated based on a simpler formula: The sum of all the voltage drops across the each capacitor will be equal to the applied voltage VS : VS = VC1 + VC2 where: VC1 = VS x ( CT / C1 ) VC2 = VS x ( CT / C2 ) Capacitors in series all have the same current flowing through them. As result, each capacitor will store the same amount of electrical charge Q on its plates regardless of its capacitance: QT = QC1 = QC2 = Charge stored in a capacitor is the product of its capacitance and the voltage applied to it: QC1 = VC1 x C1 QC2 = VC2 x C2 PRG 155 Programming Fundamentals Using C 3 Capacitance Units The standard unit of capacitance is called farad (F). 1F is a very large unit of capacitance. Usually we use capacitors rated in the pico- (10-12) to microfarad (10-6) range. Prefix name Abbreviation Weight Equivalent Farads picofarad pF 10-12 0.000000000001 F nanofarad nF 10-9 0.000000001 F microfarad F 10-6 0.000001 F milifarad mF 10-3 0.001 F

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle RMAN For Absolute Beginners

Authors: Darl Kuhn

1st Edition

1484207637, 9781484207635

More Books

Students also viewed these Databases questions