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 ?
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?
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...
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...
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
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...
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...
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...
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...
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.
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...
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.
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 =...
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...
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...
" 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...
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)...
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...
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.
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...
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?
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...
Write a program that reads four-digit integer as a string , such as 1998 and then displays it, one digit per line, like so:
1
9
9
8
Attempt:
Scanner keyboard2 = new Scanner (System.in);
String integer2= "Input a 4 digit number:";
System.out.println(integer2);
How do I make it read...
Two containers contain the same gas at different temperatures and pressures, as indicated in the figure. The small container has a volume of 1 L, and the large container has a volume of 2 L. The two containers are then connected to each other using a thin tube, and the pressure and temperature...
Homework Statement
After a spacewalk, a 7-kg tool is left 54 m from the center of gravity of a 21-metric ton space station, orbiting along with it. How much closer to the space station will the tool drift in two hours due to the gravitational attraction of the space station?
Homework...
Yes, I am aware of the Geometric Series test. That was not my question.
My question is how did you derive to answer zero when you replaced n with ∞.
I am aware that (2/3)^n is a geometric series.I am having trouble with taking the limit of (2/3)^n.
i.e. when lim n-->∞ 1/n = 1/∞ = 0...
Homework Statement
summation --> (-1)^n+1 (2/3)^n (I don't know how to do the symbol for sum)
The Attempt at a Solution
I) lim n-->∞ (2/3)^n = limit does not exist ? It diverges ?
P.S I am not sure if this is true. Any explanation will be a great help. Thanks.
Homework Statement
The coordinates of the center of mass for the extended object shown in the figure are (L/4, −L/5). What are the coordinates of m1? (Assume m1 = 4 kg, m2 = 2 kg, and m3 = 3 kg. Use any variable or symbol stated above as necessary.)
Here is the diagram ...
Break the overall velocity into x and y components.
x direction <=> 3cos(20) = ?
y direction <=> 3sin(20) = ?
Use quadratic equation to find the overall time.
0= 1/2 (9.8)t^2 ( value for a) + 3sin(20)t (value for b) + 1.4 (value for c)
Total distance traveled can be...
Homework Statement
Two balls of equal mass collide and stick together as shown in the figure. The initial velocity of ball B is twice that of ball A. (Take θ = 56°.)
(a) Calculate the angle above the horizontal of the motion of mass A + B after the collision.
(b) What is the ratio of the...
The electron-volt, eV, is a unit of energy (1 eV = 1.602 10^-19 J, 1 MeV = 1.602 x 10^-13 J). Since the unit of momentum is an energy unit divided by a velocity unit, nuclear physicists usually specify momenta of nuclei in units of MeV/c, where c is the speed of light (c = 2.998 108 m/s). In the...