Given a Program Design Language (PDL) to find the final value
and quality :
START
int FinalValue ;
char Quality
INPUT FinalValue;
IF (FinalValue < 50) Quality = 'E';
ELSE IF (FinalValue < 65)
Quality = 'D';
ELSE
IF(FinalValue < 75) Quality ='C';
ELSE
IF (FinalValue < 85) Quality
='B';
ELSE Quality = 'A';
ENDIF
ENDIF
ENDIF
ENDIF
PRINT FinalValue;
PRINT Quality;
END
Please create the flowgraph and find the cyclometic complexity
Given a Program Design Language (PDL) to find the final value and quality : START int FinalValue ; char Quality
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am