Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I have seen this in cout and cin. I just want to know how to write this in print

ID: 3890072 • Letter: I

Question

I have seen this in cout and cin. I just want to know how to write this in printf and scanf for C programming.
Thanks Hospitals use programmable pumps to deliver medications and fluids to intravenous lines at a set number of milliliters per hour. Write a program to output information for the labels the hospital pharmacy places on bags of I.V. medications indicating the volume of medication to be infused and the rate at which the pump should be set The program should prompt the user to enter the quantity of fluid in the bag and the number of minutes over which it should be infused. Output the VTBI (volume to be infused) in ml and the infusion rate in mi/hr sample run: Volume to be infused (ml) => 100 Minutes over which to infuse => 20 VTBI: 100 ml Rate: 300 ml/hn

Explanation / Answer

#include <stdio.h>

int main()
{
float volume=100;
int min=30;
float rate;
printf("Enter volume to be infused:");
scanf("%f", &volume);
  
printf(" Enter minutes over which to infuse:")
scanf("%d", min);
  
rate = (volume*60)/min;
  
printf(" VTBI: %d ml",volume);
printf("Rate: %f ml/hr",rate);
  
return 0;
}