Search:

Type: Posts; User: jms318

Search: Search took 0.01 seconds.

  1. Thread: function error

    by jms318
    Replies
    5
    Views
    1,395

    ssharish2005 amazingly I didn't get one i...

    ssharish2005
    amazingly I didn't get one

    i think i understand what your saying about an array but how would one write this in order to keep all the values i need to print the correct tabulated...
  2. Thread: function error

    by jms318
    Replies
    5
    Views
    1,395

    ok i've played around with my code and here is...

    ok i've played around with my code and here is the new code without any errors


    #include <stdio.h>

    double calculateCharges (double charge);

    int main()
    {
  3. Thread: function error

    by jms318
    Replies
    5
    Views
    1,395

    function error

    This is the program

    A parking garage charges $2 for minimum fee to park up to 3 hours and then a $.50 per hour charge after the 3rd hour. write a program that calculates and prints the parking...
  4. Thread: payroll problem

    by jms318
    Replies
    5
    Views
    1,658

    thanks sl4nted here is the corection to the...

    thanks sl4nted

    here is the corection to the code it works like a charm


    while (worker != -1) // start whole loop
    {
    worker = 0;// reset paycode
    printf ("Thank You.\n"); // menu prompt...
  5. Thread: payroll problem

    by jms318
    Replies
    5
    Views
    1,658

    that helps with the infinte looping changing all...

    that helps with the infinte looping changing all inner whiles to ifs
    but if i use break it exits the program completly

    is their like a way to use the return command to start the program back to...
  6. Thread: payroll problem

    by jms318
    Replies
    5
    Views
    1,658

    payroll problem

    ok each part of this code works fine but i neeed it to retturn to a certian user prompt and have tried everything i know.



    /* payroll program to calculate weeks pay */
    #include <stdio.h>
    ...
  7. Replies
    13
    Views
    1,644

    thank you thank you thank you kennedy and salem...

    thank you thank you thank you kennedy and salem
    i guess i over thought this one and had to many int's lol
    and had everything equaling
    joe
  8. Replies
    13
    Views
    1,644

    i see but even if i remove this from the code and...

    i see but even if i remove this from the code and then recompile it it still hase the effect of saying


    Our smallest number is "whatever the last number i entered"

    so if i tell it 3 on...
  9. Replies
    13
    Views
    1,644

    ok here i tried new code #include ...

    ok here i tried new code


    #include <stdio.h>

    int main() // start execution
    {
    int enter; // the number that determains specific vaulues remaining
    int counter = 1; // counter used in while...
  10. Replies
    13
    Views
    1,644

    salem i did change it and it aways give the...

    salem i did change it and it aways give the answer of the last number i entered
  11. Replies
    13
    Views
    1,644

    ok but how would i go about setting anumber...

    ok but how would i go about setting anumber outsdie this loop to be entered
  12. Replies
    13
    Views
    1,644

    i'm sorry i meant to type compare = number;...

    i'm sorry i meant to type


    compare = number;


    hope that makes sense now
    but i've been known to be way off before. lol
  13. Replies
    13
    Views
    1,644

    smallest int problem

    I'm to write a program that finds the smallest of several intagers. the first vaulue read specifies the number if values remaing for caculation.

    here is my code that seems to work put gives me a...
  14. Thread: hollow square

    by jms318
    Replies
    5
    Views
    14,790

    thank you so much it works perfect sl4nted the...

    thank you so much it works perfect sl4nted

    the only part of your code i do not understand 100% is


    while (column > 0)
    {
    if ((column == x) || (column == 1))
    ...
  15. Thread: hollow square

    by jms318
    Replies
    5
    Views
    14,790

    hollow square

    Ok here is my exercise ive wrote code that doesn't work prints a square on the screen but not as the patren described below

    Exercise 1: Display a Square Learning Objectives: To verify data entry,...
  16. Thread: stuck in loop

    by jms318
    Replies
    2
    Views
    1,130

    ok here is my fix i was overlooking #include...

    ok here is my fix i was overlooking


    #include <stdio.h>

    /* function main begins program execution */
    int main()
    {
    int row; /* initialize row */
    int column; /* define column */
  17. Thread: stuck in loop

    by jms318
    Replies
    2
    Views
    1,130

    stuck in loop

    i get my code to print columns and row at the number i enter at prompt put the program never breaks the loop. What am I doing wrong??



    #include <stdio.h>

    /* function main begins program...
  18. Replies
    7
    Views
    1,504

    thanks sl4nted your code correction worked perfect

    thanks sl4nted your code correction worked perfect
  19. Replies
    7
    Views
    1,504

    need help with % operator

    My homework was to write a program that reads two integers and determines and prints if the first is a multiple of the second. hint use the reminder operator.

    here is my code that compiles with no...
  20. Replies
    7
    Views
    4,162

    Thanks Adak :-) that extra break code makes for...

    Thanks Adak :-)
    that extra break code makes for a smooth program.

    Joseph
  21. Replies
    7
    Views
    4,162

    thank you DWK found the problem it was in the...

    thank you DWK found the problem it was in the last if function on the fomula it should be


    if ( counter != 0 ) {
    total = ( float ) total / counter; /* grand total */

    ...
  22. Replies
    7
    Views
    4,162

    i did the mpg in the loop fixed some of it and...

    i did the mpg in the loop fixed some of it and i've exited the program with a total but its way off
    any ideas here is the new code


    /* miles per gallon on each tank full */
    #include <stdio.h>
    ...
  23. Replies
    7
    Views
    4,162

    Loop will not complete

    ok all I'm a new c student. So I need eveeryone who post not to use advanced functions I haven't been instructed in.
    here is the homework exercise:

    develop a program that will input the miles...
Results 1 to 23 of 24