Search:

Type: Posts; User: Tarento

Search: Search took 0.01 seconds.

  1. Replies
    11
    Views
    1,876

    Wow, much thanks man. It's the little things that...

    Wow, much thanks man. It's the little things that mess me up. ;)
  2. Replies
    11
    Views
    1,876

    Sorry, but I changed number to integer, and it...

    Sorry, but I changed number to integer, and it still gave a core dump.

    The output should be like...
    Mr/Ms Everhart's sale was 24900.00
    His/Her commission is = 24900.00
  3. Replies
    11
    Views
    1,876

    Reading from an data?

    The data is...


    John Everhart 24900.
    1 car
    Paul Evans 95700.
    4 cars
    Juan Hernandez 45100.
    2 cars
  4. Replies
    5
    Views
    1,852

    Putting in order scanned numbers?

    If I scan 10 numbers, how I put them in increasing order? :confused:
  5. Replies
    1
    Views
    5,371

    Simple double sqrt, pow

    This is a simple programming, but I never really got how to do this.



    printf("Enter 5 doubles: ");
    scanf("%lf %lf %lf %lf %lf", &a, &b, &c, &d, &e);
    printf("v[] = {%11.3lf %11.3lf %11.3lf...
  6. Replies
    7
    Views
    1,578

    doh. Much thanks everyone!

    doh. Much thanks everyone!
  7. Replies
    7
    Views
    1,578

    Hey y'all. I think I've gotten it down a bit...

    Hey y'all. I think I've gotten it down a bit okay. I'm still working on Part A (Finding min and max numbers), but it's not working completely yet.



    #include <stdio.h>
    #include <math.h>

    int...
  8. Replies
    7
    Views
    1,578

    I thought that I had assigned m in min = m, but I...

    I thought that I had assigned m in min = m, but I know that was incorrect, and I don't know the correct way to assign it. :(

    What program are you using to compile the program?
  9. Replies
    7
    Views
    1,578

    Help! Function question!

    main()
    {
    int a, b, c, d;
    double max, min, m, M, x, y;
    printf("Enter four integers: ");
    scanf("%d %d %d %d", &a, &b, &c, &d);
    printf("%d %d %d %d", a, b, c, d);
    printf("\n");

    max = M;
  10. Replies
    2
    Views
    1,918

    Finding the biggest number?

    If I scanned ten numbers, how do I printf the biggest number the program scanned?

    Example: 1 2 3 4 5 6 9 8 7 10

    Your Biggest Integer is: 10.
  11. Thread: Data problem?

    by Tarento
    Replies
    1
    Views
    912

    Data problem?

    I'm not sure if this is a data problem or not, but here's the program.



    #include <stdio.h>
    #include <math.h>

    main()

    {
  12. Replies
    5
    Views
    1,862

    Yeah, it ain't working. My teacher insists the...

    Yeah, it ain't working. My teacher insists the integral is correct, but I don't believe him. :( The integral looks correct, but maybe I'm not seeing something?
  13. Replies
    5
    Views
    1,862

    Integration Problem

    #include <stdio.h>
    #include <math.h>

    main()
    {

    double del_x, x, k, error, flag, f, sum, n_end;
    int n_trap, n1;

    printf("Part B:\n");
  14. Replies
    7
    Views
    1,402

    Very simple problem

    code[
    printf("Type in three integers");
    scanf("%lf %lf %lf", &m, &n, &o);
    printf("%.2f %.2f %.2f", m, n, o);
    [/code]

    Let's say I put 1 2 -3. How do I make the output look like...

    +1.00...
  15. Replies
    3
    Views
    1,633

    double pow not working?

    printf("Approximate cos(%d) = %lf", xdeg, 1-(double pow(radians, 2)/2) + (double pow(radians, 4)/24);

    This is just a part of it, but everything seems to be right except for an error I get.

    ...
  16. Thread: switch?

    by Tarento
    Replies
    5
    Views
    1,227

    I put in while(ch>='0' && ch

    I put in
    while(ch>='0' && ch <= '5');, and the but that doesn't seem to work?
  17. Thread: switch?

    by Tarento
    Replies
    5
    Views
    1,227

    switch?

    {
    char ch;
    do{
    printf("Enter a character 1-4 (0 to exit):\n");
    do{
    ch = getchar();
    }
    while(ch<='0' || ch > '0');
    switch(ch){
    case '1':
  18. Replies
    4
    Views
    1,022

    That would increase the number of even numbers I...

    That would increase the number of even numbers I have by a factor of 2. I meant if I put 5 integers (1,2,3,4,5), then I should get an output.


    Among 5 scanned integers there are:
    2 positive even...
  19. Replies
    4
    Views
    1,022

    Another HW help!

    printf("Enter an integer:\n");
    scanf("%d",&n);
    if(n>0)pluscounteven+2;
    else if (n>0)pluscountodd++;
    else if (n<0)minuscounteven=-2;
    else if (n<0)minuscountodd=-2;
    else zerocount++;


    This...
  20. Replies
    1
    Views
    1,052

    Level 3, homework help!

    int k, m;
    double n, a_n, x;

    printf("Enter a positive integer m:\n");
    scanf("%d", &m);
    printf("Enter a double -1<x<=1:\n");
    scanf("%d", &x);

    for(k=1; k<m+1; k++)
    {
  21. Replies
    7
    Views
    1,120

    Yep, I'm back. :( I've been making really...

    Yep, I'm back. :(

    I've been making really slow, but sure progress, but now I'm stuck.


    {
    int i;
    int k;

    for(i=1; i<21; i++)
  22. Replies
    7
    Views
    1,120

    Much thanks for the help Tonto, it worked! This...

    Much thanks for the help Tonto, it worked! This is a bit harder than I thought. I think I can handle it from here. :)
  23. Replies
    7
    Views
    1,120

    This example has parentheses only to demonstrate...

    This example has parentheses only to demonstrate it. The %2d specifies a field of width 2.


    printf("(%2d) (%2d)", 1, 11);[/QUOTE]

    I get this as a result.


    Sphere ( 1) (11)Sphere ( 1)...
  24. Replies
    7
    Views
    1,120

    Newbie in need of help

    I'm doing homework right now, and it wanted me to do this.


    Sphere ( 1) R = 1.10 A = 15.2053 V = 5.5753
    Sphere ( 2) R = 1.20 A = 18.0956 V = 7.2382...
Results 1 to 24 of 24