Recent content by dect117
-
D
Engineering Question on basic circuit analysis
Technically, I'm supposed to solve an RL circuit. I went ahead and drew the circuit with the inductor and switch (image3). Currently, I'm stuck on the first part: find the currents IL, IO, and the voltage across the inductor at t=0. However, at t=0, the inductor shorts and the wire with the...- dect117
- Post #4
- Forum: Engineering and Comp Sci Homework Help
-
D
Engineering Question on basic circuit analysis
My initial attempt had me combining the 40 and 20 ohm resistors in series, then combining the result with the 120 ohm resistor in parallel (top). However, this was incorrect. According to my answering guide, the correct method was to transform the voltage source into a current source, then...- dect117
- Thread
- Analysis Circuit Circuit analysis
- Replies: 4
- Forum: Engineering and Comp Sci Homework Help
-
D
[Error] too few arguments to function
Never mind, I figured it out.- dect117
- Post #2
- Forum: Engineering and Comp Sci Homework Help
-
D
[Error] too few arguments to function
So I'm writing some code for a project and I'm stuck on the first part. This code is obviously unfinished, but I tried testing it just to see how it was coming along and I kept getting the [Error] too few arguments to function 'output_short_format'. As far as I can tell, I'm passing three...- dect117
- Thread
- Error Function
- Replies: 2
- Forum: Engineering and Comp Sci Homework Help
-
D
Trouble with an array program in C
Wow, thanks a lot guys! I have to pay more attention.- dect117
- Post #4
- Forum: Engineering and Comp Sci Homework Help
-
D
Trouble with an array program in C
Homework Statement Write a function that finds if three arrays of integers are identical. The arrays are identical when they have the same values at the same indices. Below are two samples outputs. Homework Equations N/A The Attempt at a Solution I decided to compare the arrays using a...- dect117
- Thread
- Array Program
- Replies: 5
- Forum: Engineering and Comp Sci Homework Help
-
D
How does "return 0;" work and why is it necessary?
Okay, but why is it ever necessary to put "void" in between the parenthesis? I understand that this signifies that the main function doesn't take any arguments. I'm just confused as to what that means exactly.- dect117
- Post #14
- Forum: Programming and Computer Science
-
D
How does "return 0;" work and why is it necessary?
I'm using Dev C++. Check this out. #include <stdio.h> int main () { int x; x = 0; while(x <= 10) { if (x%2==0) { printf("%d ", x); printf("%d ", x); } else printf("%d ", x); x = x+1; } } Here's some code I wrote for...- dect117
- Post #12
- Forum: Programming and Computer Science
-
D
How does "return 0;" work and why is it necessary?
I thought that there must be an invisible "return 0;" there. Does the returned integer have to be zero? What if it isn't? I just wrote a simple program without writing return at the end and it says that the "Process exited after 2.16 seconds with return value 10."- dect117
- Post #3
- Forum: Programming and Computer Science
-
D
How does "return 0;" work and why is it necessary?
My understanding is that if the main function's return type is an integer, i.e. it looks like this: int main () {...}, then "return 0;" must be written otherwise the function won't work. My professor said that the exception would be if you wrote "void" in the parenthesis like this: "int main...- dect117
- Thread
- Work
- Replies: 17
- Forum: Programming and Computer Science
-
D
What is the maximum capacitance of the device?
Is it because the blue plates are touching the second pole? I honestly didn't even notice that the first time I attempted this problem. Right, so I can just treat this problem as if the green plates were fixed in a fully meshed position and ignore the fact that they can move, no? Well, a...- dect117
- Post #4
- Forum: Introductory Physics Homework Help
-
D
What is the maximum capacitance of the device?
Homework Statement [/B] The figure [attached] below shows a variable "air gap" capacitor for manual tuning. Alternate plates are connected together; one group of plates is fixed in position, and the other group is capable of rotation. Consider a capacitor of n = 4 plates of alternating...- dect117
- Thread
- Capacitance Device Maximum
- Replies: 6
- Forum: Introductory Physics Homework Help
-
D
How Do You Calculate Electric Potential from a Field Graph?
E = -47.5, no? If so, then -47.5 will be squared if h is also equal to -47.5.- dect117
- Post #8
- Forum: Introductory Physics Homework Help
-
D
How Do You Calculate Electric Potential from a Field Graph?
If h = 1, then I get $$V_f-14=-\frac 1 2 \left( -47.5 \right) \left( 2 \right)=47.5$$ $$V_f=47.5+14=61.5$$ which WebAssign says is the correct answer to part (a). I am very confused. lol- dect117
- Post #6
- Forum: Introductory Physics Homework Help
-
D
How Do You Calculate Electric Potential from a Field Graph?
So h = -47.5? If so, I get $$V_f-14=-\frac 1 2 E b h=-\frac 1 2 \left( -47.5 \right)^2 \left( 2 \right)$$ which doesn't yield the correct answer. Isn't the value of E also -47.5?- dect117
- Post #5
- Forum: Introductory Physics Homework Help