Question About My Homework Pls Help Me İmmediately

This is a discussion on Question About My Homework Pls Help Me İmmediately within the C Programming forums, part of the General Programming Boards category; A hospital supply company wants to market a program to assist with the calculation of intravenous rates. Design and implement ...

  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    10

    Question About My Homework Pls Help Me İmmediately

    A hospital supply company wants to market a program to assist with the calculation of intravenous rates. Design and implement a program that interacts with the user as follows:

    INTRAVENOUS RATE ASSISTANT


    Enter the number of the problem you wish to solve.

    GIVEN A MEDICAL ORDER INCALCULATE RATE IN

    (1) ml/hr & tubing drop factordrops / min

    (2) 1 L for n hrml / hr

    (3) mh/kg/hr & concentration in mg/mlml / hr

    (4) units/hr & concentration in units/mlml / hr

    (5) QUIT


    Problem => 1

    Enter rate in ml/hr=> 150

    Enter tubing’s drop factor (drops/ml) => 15

    The drop rate per minute is 38.


    Enter the number of the problem you wish to solve.

    GIVEN A MEDICAL ORDER INCALCULATE RATE IN

    (1) ml/hr & tubing drop factordrops / min

    (2) 1 L for n hrml / hr

    (3) mh/kg/hr & concentration in mg/mlml / hr

    (4) units/hr & concentration in units/mlml / hr

    (5) QUIT


    Problem => 2

    Enter number of hours=> 8

    The rate in milliliters per hour is 125.


    Enter the number of the problem you wish to solve.

    GIVEN A MEDICAL ORDER INCALCULATE RATE IN

    (1) ml/hr & tubing drop factordrops / min

    (2) 1 L for n hrml / hr

    (3) mh/kg/hr & concentration in mg/mlml / hr

    (4) units/hr & concentration in units/mlml / hr

    (5) QUIT


    Problem => 3

    Enter rate in mg/kg/hr=> 0.6

    Enter patient weight in kg=> 70

    Enter concentration in mg/ml=> 1

    The rate in milliliters per hour is 42.


    Enter the number of the problem you wish to solve.

    GIVEN A MEDICAL ORDER INCALCULATE RATE IN

    (1) ml/hr & tubing drop factordrops / min

    (2) 1 L for n hrml / hr

    (3) mh/kg/hr & concentration in mg/mlml / hr

    (4) units/hr & concentration in units/mlml / hr

    (5) QUIT


    Problem => 4

    Enter rate in units/hr=> 1000

    Enter concentration in units/ml=> 25

    The rate in milliliters per hour is 40.


    Enter the number of the problem you wish to solve.

    GIVEN A MEDICAL ORDER INCALCULATE RATE IN

    (1) ml/hr & tubing drop factordrops / min

    (2) 1 L for n hrml / hr

    (3) mh/kg/hr & concentration in mg/mlml / hr

    (4) units/hr & concentration in units/mlml / hr

    (5) QUIT


    Problem => 5


    Implement the following functions:

    get_problem – Displays the user menu, then inputs and returns as the function value the problem user selected.

    get_rate_drop_factor – Prompts the user to enter the data required for problem 1, and sends this data back to calling module via output parameters

    get_kg_rate_conc – Prompts the user to enter the data required for problem 3, and sends this data back to calling module via output parameters

    get_units_conc – Prompts the user to enter the data required for problem 4, and sends this data back to calling module via output parameters

    fig_drops_min – Takes rate and drop factor as input parameters and returns drops/min (rounded to nearest whole drop) as function value

    fig_ml_hr – Takes as an input parameter the number of hours over which one liter is to be delivered and returns ml/hr (rounded) as function value

    by_weight - Takes as input parameters rate in mg/kg/hr, patient weight in kg, and concentration of drug in mg/ml and returns ml/hr (rounded) as function value

    by_units - Takes as input parameters rate in units/hr, patient and concentration in units/ml and returns ml/hr (rounded) as function value

  2. #2
    uint64_t...think positive xuftugulus's Avatar
    Join Date
    Feb 2008
    Location
    Pacem
    Posts
    355
    Can you think of something more specific than a paste of your assignment?
    Code:
    ...
        goto johny_walker_red_label;
    johny_walker_blue_label: exit(-149$);
    johny_walker_red_label : exit( -22$);
    A typical example of ...cheap programming practices.

  3. #3
    Dr Dipshi++ mike_g's Avatar
    Join Date
    Oct 2006
    Location
    On me hyperplane
    Posts
    1,218

  4. #4
    Registered User
    Join Date
    Mar 2008
    Posts
    10
    i searched on the Internet and try to solve but i couldnt. i dont want to do this i just want to help how can i do that. give me some direction,.guidance please

  5. #5
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    Quote Originally Posted by jennyyyy View Post
    i dont want to do this i just want to help
    Oh brother.
    Quote Originally Posted by jennyyyy View Post
    how can i do that. give me some direction,.guidance please
    My guidance is to figure out how to break the problem into pieces, and then do those pieces.

  6. #6
    uint64_t...think positive xuftugulus's Avatar
    Join Date
    Feb 2008
    Location
    Pacem
    Posts
    355
    If you searched for the solution you might find it, but the best way is to solve it yourself.
    Start by writing the menu printing function called get_problem.
    Simply use the function printf() to print the menu options and after that use the function scanf() to read a number from the keyboard, and make the function return the entered number, and we can continue after you display that code.
    Code:
    ...
        goto johny_walker_red_label;
    johny_walker_blue_label: exit(-149$);
    johny_walker_red_label : exit( -22$);
    A typical example of ...cheap programming practices.

  7. #7
    Dr Dipshi++ mike_g's Avatar
    Join Date
    Oct 2006
    Location
    On me hyperplane
    Posts
    1,218
    i dont want to do this i just want to help how can i do that.
    Simple: turn off your computer, go do something else. You will soon forget about it

  8. #8
    uint64_t...think positive xuftugulus's Avatar
    Join Date
    Feb 2008
    Location
    Pacem
    Posts
    355
    mike, she might be hopeless but do we not give a chance?
    Code:
    ...
        goto johny_walker_red_label;
    johny_walker_blue_label: exit(-149$);
    johny_walker_red_label : exit( -22$);
    A typical example of ...cheap programming practices.

  9. #9
    Dr Dipshi++ mike_g's Avatar
    Join Date
    Oct 2006
    Location
    On me hyperplane
    Posts
    1,218
    Yeah, sure when she can come up with a coherent sentence. Or even better; a question.

  10. #10
    Registered User
    Join Date
    Mar 2008
    Posts
    10
    i wrote function called get_problem. can you tell me how can i write function called get_rate_drop_factor and how can i use function called fig_drops_min ??? if i write these function, i can wrte another function

  11. #11
    Registered User
    Join Date
    Mar 2008
    Posts
    10
    Quote Originally Posted by jennyyyy View Post
    i dont want to do this i just want to help how can i do that.

    i just want to say this sentences, i do not want to you do that only help me

  12. #12
    uint64_t...think positive xuftugulus's Avatar
    Join Date
    Feb 2008
    Location
    Pacem
    Posts
    355
    Unfortunately very few people could reverse engineer the formulas of your problems just by one example output of data. Of course you probably need to understand what a formula is, but that should be ok for the moment as long as you can figure that you didn't even paste the correct requirements of the problem but a sample run of the solution.
    Code:
    ...
        goto johny_walker_red_label;
    johny_walker_blue_label: exit(-149$);
    johny_walker_red_label : exit( -22$);
    A typical example of ...cheap programming practices.

  13. #13
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    What!?!? If you already wrote one, you must know how to right the others.

    Do your own homework, if you can't ask your teacher/lecturer whatever, if you still can't -- turn off the computer and forget about it

  14. #14
    Registered User
    Join Date
    Mar 2008
    Posts
    10
    i know but i didnt understand how i write functions called get_rate_drop_factor and fig_drops_min

  15. #15
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    How not?

    If you know what they're supposed to do, and how it's supposed to be done -- and you know how to write a function in C. Then the problem is not your programming, but the fact you haven't listened to the content in class. Stop begging, do it yourself (either with help or without) or fail.

    No one on here is a contractor, you can't simply 'get them to write it for you' and claim it as your own. And no, they're not going to 'show you how' either. Ask a specific question or don't bother.

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Algorithm question
    By PJYelton in forum C++ Programming
    Replies: 2
    Last Post: 10-28-2002, 09:52 AM
  2. Urgent - Help - Homework Question
    By Sway2 in forum C++ Programming
    Replies: 12
    Last Post: 10-04-2002, 01:35 PM
  3. I have a homework question?
    By correlcj in forum C++ Programming
    Replies: 4
    Last Post: 10-03-2002, 10:38 PM
  4. Pls Help Me In This Question!!!
    By Joanna in forum Windows Programming
    Replies: 1
    Last Post: 10-20-2001, 02:05 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21