Search:

Type: Posts; User: zfite

Search: Search took 0.01 seconds.

  1. Replies
    11
    Views
    4,133

    Ok I think I am getting close to the objective. ...

    Ok I think I am getting close to the objective. I have made this, but it doesn't quite work.
    Just my function:



    double cosine(double rad, double a)
    {
    double cosineofradians=1;
    int n=2;
  2. Replies
    11
    Views
    4,133

    I am in calculus and I have an A with one month...

    I am in calculus and I have an A with one month left in the semester so I think the problem is somewhere else. In the program I included I tested the absolute value up to five terms.
  3. Replies
    11
    Views
    4,133

    I think I have the testing the absolute value of...

    I think I have the testing the absolute value of the terms down. Maybe I am confused on what a term is and the series.
  4. Replies
    11
    Views
    4,133

    What happens when you test the absolute value and...

    What happens when you test the absolute value and when do you do it?
  5. Replies
    11
    Views
    4,133

    User defined cos function

    I am having trouble with this problem. I have attached the assignment. My main problem is understanding what is being asked of me, I must have no idea. My professor told me I must use a loop...
  6. Replies
    19
    Views
    11,217

    Ok I just used a local variable and got did it. ...

    Ok I just used a local variable and got did it. I remember he said we can not use global variables on our assignments but since we haven't learned static it must be the only way.

    Thanks

    My...
  7. Replies
    19
    Views
    11,217

    Is there a way to do this without using static?

    Is there a way to do this without using static?
  8. Replies
    19
    Views
    11,217

    Hmmm well that does work however I have not...

    Hmmm well that does work however I have not learned anything with prompt or %s...
    Is there a way to do it using a counter of some sort?
  9. Replies
    19
    Views
    11,217

    int getInteger(void);

    For extra credit in my class, I have to modify this user defined function to say
    Enter the 1st integer:
    Enter the 2nd integer:
    Enter the 3rd integer:
    Enter the 4th integer:
    Enter the 5th...
  10. Replies
    18
    Views
    23,044

    I figured it out during class today. ...

    I figured it out during class today.


    #include <stdio.h>


    int main()
    {
    //variable declarations
    int h, w;
  11. Replies
    18
    Views
    23,044

    can someone please help me make the box pattern?

    can someone please help me make the box pattern?
  12. Replies
    18
    Views
    23,044

    The box may be easy but that is the one I need...

    The box may be easy but that is the one I need help with now, I have completed the first pattern.
  13. Replies
    18
    Views
    23,044

    What I have attached are the patterns that I need...

    What I have attached are the patterns that I need to make by using for loops. I have attached the code I have, the assignment, and my professor's example.
  14. Replies
    18
    Views
    23,044

    for (row=1;row

    for (row=1;row<=h;row++)
    {
    for (col=1;col<=h;col++)
    {

    if(col<=row)
    {
    printf (" ");
    }
    else
  15. Replies
    18
    Views
    23,044

    The part of the assignment that I can not figure...

    The part of the assignment that I can not figure out is:
    "use a nested loop for the patterns. In the inner loop you may use an if structure to determine what to print on each line."

    The pattern...
  16. Replies
    4
    Views
    3,061

    Thanks quzah, I was in the middle of trying that...

    Thanks quzah, I was in the middle of trying that when you posted. Got it down.
  17. Replies
    4
    Views
    3,061

    well it depends on the inputted numbers, for...

    well it depends on the inputted numbers, for bigger numbers I was getting 25 rows, but with the test value I must use for my homework (c=15 and inc=2.5) I was only getting 20.
  18. Replies
    4
    Views
    3,061

    for loop problem. (again)

    I need help figuring out how to make this for loop print 25 times no matter what. The problem is to: generate a table of conversions from Celsius to Rankin, allow the user to enter starting temp and...
  19. Thread: for loop help

    by zfite
    Replies
    5
    Views
    1,690

    Thanks, I got it.

    Thanks, I got it.
  20. Thread: for loop help

    by zfite
    Replies
    5
    Views
    1,690

    So from what you just said, I should have three...

    So from what you just said, I should have three if statements, something like this?

    if(num2>max)
    {
    max = num2;
    }
    if(max>num2)
    {
    counter2=1;
    }
  21. Thread: for loop help

    by zfite
    Replies
    5
    Views
    1,690

    for loop help

    I am having trouble doing this problem. It is:
    "write a program that asks the user to enter a list of integers. The program will then determine the largest value and the number of times it was...
  22. Replies
    5
    Views
    1,560

    Ok I figured it out. I just changed...

    Ok I figured it out. I just changed }while(sel2=Y); to }while(sel2=='Y');

    Thanks guys, I'll be back again.
  23. Replies
    5
    Views
    1,560

    Thanks for the quick reply, however I have not...

    Thanks for the quick reply, however I have not learned the getchar() function in my class, therefore I can not use it. Is there another way?
  24. Replies
    5
    Views
    1,560

    I forgot to mention that this must be in C.

    I forgot to mention that this must be in C.
  25. Replies
    5
    Views
    1,560

    do while loop to continue program

    The assignment is: Add a do-while loop so that the program will continue prompting the user to see if another calculation is to be done.
    I can't seem to figure out how to do the do-while loop....
Results 1 to 25 of 25