blob: 71b4393cb0a2a79b087a83c3dc8de6ba3890f61d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
//Chapter 7, Example 7.9, page 324
clc
//Initialisation
h=24 //hours
m=60 //minutes
s=60 //seconds
//Calculation
dm=0.004*h*m*(1250*2500**-1) //Maximum degraded minutes
ses=0.00054*h*m*s*(1250*2500**-1) //Severely errored seconds
//Results
printf("(1) Maximum degraded minutes per day = %.2f min",dm)
printf("\n(2) Severely errored seconds per day = %.2f s",ses)
|