Question: Lab 2: User Input and Math Library DUE: By end of day (my dropbox is over by B204) Group size: Individual Deliverables: 1. Hardcopy of

 Lab 2: User Input and Math Library DUE: By end of

Lab 2: User Input and Math Library DUE: By end of day (my dropbox is over by B204) Group size: Individual Deliverables: 1. Hardcopy of your program a. Also upload a softcopy of your cc to the Slate dropbox (for verification) 2. Ensure that the program is well commented: a. Comments at the top of the program name, date, program synopsis b. Key comments through the program c. Ensure that the program is neatly formatted for readability Overview: You will write a program that will solve for a capacitor decay voltage transient determined by the following equation: Vc=Voer Where: Vc is the capacitor voltage, Vo is the initial capacitor voltage, and is the time constant (a value between 1 and 5 ). You will need the math.h library to for some of the math operations - pay particular attention to the exponent functions. Details on the math.h library can be obtained from Wikipedia (type in math.h). Processing requirements: Your program will do the following: Data Entry: - Assume that Vo is 10 volts - Have the use enter the voltage value (in Volts) - Have the user enter the time constant (between 1 and 5) - Ensure that the data entry prompts are well formatted (meaningful) - Ensure that you use meaningful labels for the variables Solve the equation using the above inputs Output: - Display the resultant voltage output on the screen with 4 decimal places

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!