Search results

  1. J

    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. J

    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. J

    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?
  4. J

    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...
  5. J

    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...
  6. J

    Engineering Circuits-Mesh Analysis

    In the last mesh, aren't i3 and ix separate currents ? Or ix= i3?
  7. J

    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.
  8. J

    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
  9. J

    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...
  10. J

    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...
  11. J

    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
  12. J

    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...
  13. J

    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...
  14. J

    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...
  15. J

    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...
  16. J

    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.
  17. J

    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?
  18. J

    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...
  19. J

    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.
  20. J

    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 =...
  21. J

    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...
  22. J

    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...
  23. J

    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...
  24. J

    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)...
  25. J

    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...
  26. J

    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.
  27. J

    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...
  28. J

    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?
  29. J

    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...
Top