Question

In: Computer Science

A hospital supply company wants to market a program to assist with the calculation of intravenous...

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 IN CALCULATE RATE IN (1) ml/hr & tubing drop factor drops / min (2) 1 L for n hr ml / hr (3) mg/kg/hr & concentration in mg/ml ml / hr (4) units/hr & concentration in units/ml ml / 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....

Solutions

Expert Solution

Copyable Code:

import java.util.Scanner;
public class Cal
{

public static void main(String []args)
{
boolean flag = true;
while (flag)
{
Scanner sc = new Scanner(System.in);
System.out.println("(1) ml/hr & tubing drop factor drops / min\n(2) 1 L for n hr ml / hr\n(3) mg/kg/hr & concentration in mg/ml ml / hr\n(4) units/hr & concentration in units/ml ml / hr\n(5) QUIT Problem\n");
System.out.print("\nEnetr your choice : ");
int choice = sc.nextInt();
  
switch(choice)
{
case 1 :
Scanner sc1 = new Scanner(System.in);
System.out.print("\nEnetr value in ml : ");
float ml = sc1.nextFloat();
System.out.print("\nEnetr value in hr : ");
float hr = sc1.nextFloat();
System.out.println("Result is : " + ml + "/" + hr*60 + " = " + ml/(hr*60) + " drops/min\n\n");
break;
case 2 :
Scanner sc2 = new Scanner(System.in);
System.out.print("\nEnetr value in hr : ");
float n = sc2.nextFloat();

System.out.println("Result is : " + 1*1000 + "/" + n + " = " + 1*1000/n + " ml/hr\n\n");
break;
case 3:
System.out.print("\nUnder Process\n");
break;
case 4:
System.out.print("\nUnder Process\n");
break;
case 5:
flag = false;
break;
default:
System.out.println("Wrong Input\nTry Again.");
  
}
  
}
  
}
}


Related Solutions

A patient in the hospital has an intravenous catheter inserted to allow for the delivery of...
A patient in the hospital has an intravenous catheter inserted to allow for the delivery of medications, fluids, and electrolytes. Four days after the catheter is inserted, the patient develops a fever and an infection in the skin around the catheter. Blood cultures reveal that the patient has a blood-borne infection. Tests in the clinical laboratory identify the blood-borne pathogen as Staphylococcus epidermidis, and antibiotic susceptibility tests are performed to provide doctors with essential information for selecting the best drug...
A patient in the hospital has an intravenous catheter inserted to allow for the delivery of...
A patient in the hospital has an intravenous catheter inserted to allow for the delivery of medications, fluids, and electrolytes. Four days after the catheter is inserted, the patient develops a fever and an infection in the skin around the catheter. Blood cultures reveal that the patient has a blood-borne infection. Tests in the clinical laboratory identify the blood-borne pathogen as Staphylococcus epidermidis, and antibiotic susceptibility tests are performed to provide doctors with essential information for selecting the best drug...
Please assist in the following: Demand, Supply, and Market Equilibrium    Q1. The general demand function...
Please assist in the following: Demand, Supply, and Market Equilibrium    Q1. The general demand function for good A is Qd = 754 + 2PA - 0.05M + 6 PB + 10 T + 3 PE + 2N where Qd = quantity demanded of good A each month, PA = price of good A, M = average household income, PB = price of related good B, T = a consumer taste index ranging in value from 0 to 10 (the...
Consider the calculation of an EOQ at a hospital. The item to be ordered is a...
Consider the calculation of an EOQ at a hospital. The item to be ordered is a specialized syringe. The demand for these syringes, which cost the hospital $14.50 apiece, is forecasted to be 1475 units per month (with a CV of 8%). The annual holding cost rate used at the hospital is 25% and the ordering cost is estimated to be $80. The lead time from order to receipt is 10 days. The desired service level is 99%. a. Calculate...
Question 18 A large hospital uses a certain intravenous solution that it maintains in inventory. Assume...
Question 18 A large hospital uses a certain intravenous solution that it maintains in inventory. Assume the hospital uses reorder point method to control the inventory of this item. Pertinent data about this item are as follows: ------------------------------------------------------------ Forecast of demanda = 1,000 units per week Forecast errora, std. dev. =100 units per week Lead time = 4 weeks Carrying cost = 25 % per year Purchase price, delivered = $52 per unit Replenishment order cost = $20 per order...
A hospital pharmacist prepares an intravenous solution containing 300 mg of DRUG X in 250 mL...
A hospital pharmacist prepares an intravenous solution containing 300 mg of DRUG X in 250 mL normal saline. The infusion rate of DRUG X is 15 mcg/kg/min, and this solution is to be administered to a patient weighing 132 pounds. What would be the appropriate infusion rate of the solution for this patient in mL/hr? The rate is _______ mL/hr.
A company wants a program that will calculate the basic pay information for all of their...
A company wants a program that will calculate the basic pay information for all of their employees. The following requirements are necessary to make the program work as it needs to: This program must allow the user to input whether he or she is hourly or salaried. If salaried, the employee should be prompted to enter a weekly salary. If hourly, the employee should be prompted to enter an hourly wage and the number of hours worked, so that the...
Which two organizations began to assist in establishing patient care standards in hospital?
Which two organizations began to assist in establishing patient care standards in hospital?
When the Fed wants to contract the money supply through open market operations, what would it...
When the Fed wants to contract the money supply through open market operations, what would it do with the government bonds and what would happen to the reserves the Fed or the member banks hold?
Using class, write a program that: Body Mass Index (BMI) calculation - write a program that...
Using class, write a program that: Body Mass Index (BMI) calculation - write a program that takes users' input (weight and Height) and calculates the BMI. If the result is less than 18.5 display "you are underweight", if the result is greater than 18.5 display "you have a normal weight", if the result is greater than 24.9 display "your weight is considered overweight", and the result is greater than 30 display "your weight is considered as obese" (BMI = 703...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT