Answer:
Following are the code to this question:
#include<stdio.h>//defining header file
//using namespace std;
int main()//defining main method
{
float MTBF, MTTR, Total_up;//defining float variable
Total_up = (4 * 24) - 9;//defining Total_up variable that calculate Total uptime value
MTBF = Total_up / 3.0;//defining MTBF variable that calculate its value
MTTR = 9 / 3;//defining MTTR that calculate its value
printf("\n The total value of MTBF: %f",MTBF);//print value with message
printf(" \n The total value of MTTR: %f ",MTTR);//print value with message
return 0;
}
Output:
The total value of MTBF: 29.000000
The total value of MTTR: 3.000000
Explanation:
In the above-given code, three float variable "MTBF, MTTR, and Total_up" is defined, in the next step the "Total_up" variable is defined, that holds a value to calculate its value.
In the next step, the "MTBF, and MTTR" variable is defined, and in the "MTBF" variable, it uses Total_up variable value to calculate its value and use the print method to print the "MTBF and MTTR" value.