Recent content by ming2194

  1. M

    Engineering Two EE questions - nodal analysis and circuit modeling

    Thanks so much for your reply. After calculation I find : I1: 2/7(ia) I2: 5/7(ia) I3= -5/7 ia V1= 20/7 (ia) V2= 100/7 ia Then , power of R1 = v1 i1 I get 4000/49 e^-5000t Then I need to integral it to find energy but what should I set for the upper and Lower intergal? Since the...
  2. M

    Engineering Two EE questions - nodal analysis and circuit modeling

    Two EE questions -- nodal analysis and circuit modeling Homework Statement Homework Equations I was given R1, R2, and Iα(t), the time for the switch to closed (50μs<=t<=100μs) The question is asking about the energy associated with 2 sources and dissipated in R1, R2.The Attempt at a...
  3. M

    Software Engineering - cyclomatic complexity

    [PLAIN]http://img822.imageshack.us/img822/1746/image001zqp.jpg Is this time correct? (ii) Cyclomatic Complexity = 7, since there are 7 regions in the whole flow graph. (iii) 8 paths? 1. n-end if-end mymodule 2. n-m-end if-end mymodule 3. n-m-t-a-end if-end mymodule 4. n-m-t-a-x-d-e-q-k-a-end...
  4. M

    Software Engineering - cyclomatic complexity

    Homework Statement http://img17.imageshack.us/img17/651/cyclomaticcomplexity.png Homework Equations Main problem on part (i), am i correct on constructing the flow graph? The If statement after process x makes me quite confused. The Attempt at a Solution...
  5. M

    Simplify Boolean Algebra: A'C' + A'D' Solution Example

    I am trying to extract the A'B'D' from the 1st and 3nd term, what's mistake? and I tried your method and found A'C'(B'D'+B'D+BD)+A'D'(B'C'+BC'+BC). Seemingly not help enough. What can I do?
  6. M

    Simplify Boolean Algebra: A'C' + A'D' Solution Example

    Homework Statement [PLAIN]http://img340.imageshack.us/img340/7690/123rk.gif Homework Equations The answer should be A'C' + A'D'The Attempt at a Solution Shown in above in the question. I want to know how can i get the correct answer. As you see above, in my last step, I wonder whether B'+BD...
  7. M

    Decimal number to floating-point represention?

    how to decimal number to floating-point represention? i did some searches in goolge and found : http://sandbox.mc.edu/~bennet/cs110/flt/dtof.html is it work? thx
  8. M

    My complete attempt of a very difficult c problem

    but why when i run it in compiler, it works fine? and how can i check the number? what correction i need to do in last part?
  9. M

    What Is the Purpose of the C Function in This Image?

    just as you said, i wrote the program above and try to test it. #include<stdio.h> main() { char again; again='y'; while (again=='y'||again=='Y') {printf("would you like to ?"); scanf("\n%c", &again); } } but when i enters a character other than 'y' or 'Y', it really stop. why?
  10. M

    My complete attempt of a very difficult c problem

    1. http://u1.imgupload.co.uk/1258329600/082d_2009_11_16_101645.png 2. http://u1.imgupload.co.uk/1258329600/134a_2009_11_16_101608.png I just find some problems here. When I build and run my code in code:block, it works prefectly. However, when I run the .exe which is generated by compiler...
  11. M

    What Is the Purpose of the C Function in This Image?

    i also feels confused too. actually my friend's question is " what is the purpose (in terms of function) of the program shown in the figure ( picture)." i tried to guess what he is asking and my guess is, he is asking about the the purpose of function "char" and "while".
  12. M

    What Is the Purpose of the C Function in This Image?

    http://u1.imgupload.co.uk/1258243200/e9fd_image.png today my friend gave me this picture and ask me what is the purpose ,in terms of function, of the program shown in the figure. It's really inspired me a lot. The reason is although we always use some functions, did we really know what is...
  13. M

    My complete attempt of a very difficult c problem

    you mean i just need to change "bool" to "int" and "true" to "1" and "false" to "0" ? Then all my word is in C code? bool validchoice = false; while(!validchoice) //The ! means boolean NOT, aka false becomes true, true becomes false. { char choice...
Back
Top