# Question About My Homework Pls Help Me İmmediately

Show 80 post(s) from this thread on one page
Page 1 of 2 12 Last
• 03-12-2008
jennyyyy
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
• 03-12-2008
xuftugulus
Can you think of something more specific than a paste of your assignment?
• 03-12-2008
mike_g
• 03-12-2008
jennyyyy
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
• 03-12-2008
tabstop
Quote:

Originally Posted by jennyyyy
i dont want to do this i just want to help

Oh brother.
Quote:

Originally Posted by jennyyyy
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.
• 03-12-2008
xuftugulus
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.
• 03-12-2008
mike_g
Quote:

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 ;)
• 03-12-2008
xuftugulus
mike, she might be hopeless but do we not give a chance?
• 03-12-2008
mike_g
Yeah, sure when she can come up with a coherent sentence. Or even better; a question.
• 03-12-2008
jennyyyy
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 :D:D
• 03-12-2008
jennyyyy
Quote:

Originally Posted by jennyyyy
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 :):)
• 03-12-2008
xuftugulus
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.
• 03-12-2008
zacs7
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 :)
• 03-12-2008
jennyyyy
i know but i didnt understand how i write functions called get_rate_drop_factor and fig_drops_min
• 03-12-2008
zacs7
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.
Show 80 post(s) from this thread on one page
Page 1 of 2 12 Last