Recent content by Dili

  1. D

    Calculating Angle of Heel in Barge with Crane

    Can anyone tell what the angle of heel means? (how to calculate it in a barge with a crane)
  2. D

    What is an easy way to write a C program for creating a table using for loops?

    I need to write a c program to get a table like this ______0 ________1 _________2________3 ...(underscore for presentation only) 10 sqrt(0*10) sqrt(1*10) 11 12 .. .. i know how to get the first row while saving it in an array. but i can't find how to write the rest of the lines. is...
  3. D

    Find Prime Numbers in C Program | Quick and Easy Method

    i managed to correct 2 by putting anf if statement in the beginning if(number==2); printf("prime\n") but can you tell where i should put the braces?? Thank you for all the help anyway. you posted a lot of replies to the questions
  4. D

    Find Prime Numbers in C Program | Quick and Easy Method

    prime i modified the code. but there is an error. After 55 every number incremented by 10 is said as prime\ (eg; the program says that 55,65,75... are primes) can anyone have any idea? furthur how do you modify the code so that when 2 is given it is returned prime?? here is the code...
  5. D

    Solving Perfect Number Program in C

    Thank you very much arunbg. I am not good at C programming. I do now understand the placing of brackets and c=0. If no bother can you explain what is the difference between return 1 and return 0 Ive used them but with no real understanding Thanks again
  6. D

    Solving Perfect Number Program in C

    I need to write a program to check whether a number is perfect eg: 6=1+2+3 , 28=1+2+4+7+14 i wrote one, but it doesn't work. also I've seen programs written with different preprocessors, we are required to write it on stdio.h and math.h #include<stdio.h> #include<math.h> int main()...
  7. D

    Find Prime Numbers in C Program | Quick and Easy Method

    Ive wrote a C program to find out whether a number is prime. But it doesn't work on some numbers, eg 25 Any help, ideas are most welcome #include<stdio.h> #include<math.h> int main() { int j,number; scanf("%d",&number); if(number<=1) return 0; else if(number==2) return 1; else...
  8. D

    How much heat is needed to evaporate water at 2 bar?

    I quoted this question from a thermodynamics past paper. This is all that is given. It is a short answer question ie. given only couple of lines to answer.
  9. D

    Solving Irreversible Processes: Q-W=U2-U1

    Thanks vivesdn In the 1st question can you give an example for an isentropic irreversible process? In the second question i was referring in line with efficiency Can you give an equation of 1st law of thermo that applies to the irreversible process? Any replies/opinions from others...
  10. D

    How much heat is needed to evaporate water at 2 bar?

    Homework Statement A vessel of 1m^3 volume is half filled with water. The pressure inside the vessel is 2bar. Steam tables are given Homework Equations How much heat is needed to completely evaporate the water? The Attempt at a Solution I can find the final enthalpy by...
  11. D

    Solving Irreversible Processes: Q-W=U2-U1

    I am having trouble with these questions. Can anyone help please 1. How is it possible to have an isentropic process which is irreversible? 2.Why is it desirable to have processes which are less irreversible? 3. Is the expression for the 1st law of thermodynamics for a closed system...
  12. D

    Is there any way for the entropy to increase in an closed adiabatic sy

    1) Is there any way for the entropy to increase in an closed adiabatic syatem? 2) what are the mechanisms of entropy generation within a closed thermodynamic system? Thank you
Back
Top