# Search results

1. ### Engineering Basic Circuit - KVL

Homework Statement Find the value of Vk http://oi54.tinypic.com/2s6x005.jpg Homework Equations The Attempt at a Solution Assuming dependent Vk = 12i -60 + 4i + 12i + 12i = 0 -60 + 28i = 0 i = 2.14 Vk = 12 * 2.14 = 25 .68 ? Answer is 18. Can someone tell me where I am going wrong ?
2. ### Engineering Badic Circuit - Nodal Analysis

Yeah .2 resitors in parallel give .1.I think decimals keep messing me up. I tried using conductance to avoid decimals. Still going wrong somewhere. Node1 -3+ 5v1 + 10 v1 -10 v1=0 V1 = 10v2 + 3/ 15 Substituting v1 in Node 2 -6 + 2v2 + 10 ( v2 - v1) =0 -6 + 12v2- 10( 10v2 + 3 /...
3. ### Engineering Badic Circuit - Nodal Analysis

But I assumed the direction of current entering node 1 to be - so + 3 will become -3. Wouldn't that make the current leaving node 2 to be + so -6 stayed the same?

Bump ...
5. ### Engineering Badic Circuit - Nodal Analysis

Basic Circuit - Nodal Analysis Homework Statement I am trying to find ix and iy. Here is the figure http://tinypic.com/view.php?pic=x2mr93&s=7 The Attempt at a Solution Node 1 -3 + V1/0.2 + (V1-V2/0.5) = 0 -.06 + 0.1V1 +0.2V1 - 0.2V2 =0 -.06 + 0.3V1 -0.2V2 = 0...
6. ### Engineering Basic circuit - power supplied

Homework Statement In the Figure below if V 1=10 V and i x= -2 A, what is the power supplied by the dependent current source? Homework Equations The Attempt at a Solution The answer is -60. But I am getting 60. whenever It's power supplied doesn't it mean the current is...
7. ### Engineering Circuits-Mesh Analysis

In the last mesh, aren't i3 and ix separate currents ? Or ix= i3?
8. ### Engineering Electricity - Solving unknown variables for mixed circuits

You can't add them because they are in different loops. R1 and R2 are in parallel, so start from there.
9. ### Engineering Circuits-Mesh Analysis

Homework Statement About this circuit: http://oi54.tinypic.com/eqwktd.jpg If I were to find ix. Would I be using supermesh? Homework Equations The Attempt at a Solution
10. ### Java Java-Bit Binary Number

Lol, Grep. Yeah, sure will try to swear by Mark's advise. Yeah, I am trying to retain as much information possible from here. Quick question: In the very last line " System.out.println(value);" I threw in value to be printed out. Do all the characters add with each other vertically? Since...
11. ### Java Java-Bit Binary Number

int value; String number; System.out.print("Enter Number"); number=keyboard.nextLine(); number=keyboard.nextLine(); value=0; value= value+(number.charAt(0)-'0')*8; value=value+(number.charAt(1)-'0')*4; value=value+(number.charAt(2)-'0')*2...
12. ### Java Java-Bit Binary Number

Sorry about the *3 in the last line. I just noticed it. Subtracting? I thought that was an expression ? As Mark stated on the previous page
13. ### Java Java-Bit Binary Number

int value; String number; System.out.print("Enter Number"); number=keyboard.nextLine(); value=0; value=value + (number.charAt(0)-'0')*8; value=value + (number.charAt(1)-'1')*4; value=value + (number.charAt(2)-'2')*2...
14. ### Java Java-Bit Binary Number

Thank you, Mark. Here is what I did. int value,sum,t,x,y,z; String number; System.out.print("Enter Number"); number=keyboard.nextLine(); value=0; t=value=value+ (number.charAt(0) - '0')*8; x=value=value+(number.charAt(1)-'1')*4...
15. ### Java Java-Bit Binary Number

Thanks Grep. I don't know, because we haven't even touched on if statement till now. This problem is from chapter 2. He goes by the book. He wants us to use the information in chapter 2 only to figure the problems out. I showed him what we did last time and he rejected it. So, I don't know...
16. ### Java Java-Bit Binary Number

So, something like this int value; String number; System.out.print("Enter Number"); number=keyboard.nextLine(); value=number.charAt(0)*8; System.out.println(value); Output: Enter number 1 392 Grep- I get what you are saying. I guess...
17. ### Java Java-Bit Binary Number

Mark-not to use loops in general. Since this is like the first chapter. He introduced us to loops today. Grep- where exactly do I go on that page? binaryString? He told me to use charAt or go about converting each substring to a value of bit.
18. ### Java Java-Bit Binary Number

The problem is , he is not letting me use loop for this problem. Grep- is there a way to implement charAT in the method without the use of loop?
19. ### Java Java-Bit Binary Number

Question: Write a program that reads a four-bit binary number from the keyboard as a string and then converts it into decimal. For example if the input is 1100 the output should be 12. Attempt: import java.util.Scanner; public class run { private static final String number = null...
20. ### Java Java- reverse sentence

Oh nice, got it. Thanks a lot Grep. I need to read up and practice what you have mentioned. I appreciate your help. Thanks to Tyler as well for the help.
21. ### Java Java- reverse sentence

It works now. import java.util.Scanner; public class WordReverser { public static void main(String[] args) { String line, result[]; Scanner keyboard = new Scanner (System.in); line=keyboard.nextLine(); { result = line.split("\\s"); for (int i =...
22. ### Java Java- reverse sentence

I think I am getting there. I finally got a correct output using substrings import java.util.Scanner; public class Assign2 { public static void main (String [] args) { String line, a,c; Scanner keyboard = new Scanner (System.in); System.out.println("Enter a line of...
23. ### Java Java- reverse sentence

Something like this: import java.util.Scanner; public class WordReverser { public static void main(String[] args) { String line; String[] result = line.split("\\s"); Scanner keyboard = new Scanner (System.in); for (int i = result.length-1; i >= 0...
24. ### Java Java- reverse sentence

" word=lastchar + word.substring(0, word.length ()-1);" Discards that last character that is not recognized by using the "word.length()-1 method? I tried using the substring method to do the reversal, but it didn't work out. Here is what I did: public class Assign2 { public static void...
25. ### Java Java- reverse sentence

Thank you for an elaborate explanation. Starting to make some sense now. Another question, if you don't mind. Can you explain these lines as well: lastchar= word.charAT (word.length ()-1); if (!Character.isLetter(lastchar)) word=lastchar + word.substring(0, word.length ()-1)...
26. ### Java Java- reverse sentence

I think you have misunderstood me. The code has already been written. That is not my concern. I want to understand what is going on in it. No, I am not too lazy to read up on it. I have read up on it. It's just the tone of the explanation in book is not in layman terms. Also, it takes time to...
27. ### Java Java- reverse sentence

I meant , if the program prompts the user to input a sentence, will this way still work? Can you give an example? I am not able to grasp what you are saying.
28. ### Java Java- reverse sentence

Thank you , Mark and Jared. Mark- Yes, that is correct. I have used substring . When I assign a substring a number value like in the given example ; it gives out an error. Yes, another person used a loop for my problem . Here is the code for that: http://tinypic.com/view.php?pic=jai2dl&s=7...
29. ### Java Java- reverse sentence

Well , what I did reversed the order of the letters along with the sentence. I just want the sentence to be reversed. Sorry, I didn't quite get what you said there. Can you give me an example? Thanks. I want to know, if I can reverse just the sentence not letters without the use of loop?
30. ### Java Java- reverse sentence

We are asked to reverse a sentence , example: I am going. ==> .going am I Attempt: import java.util.Scanner; public class Assign2 { public static void main (String [] args) { String line= new StringBuffer().reverse().toString(); String line2 = new...