Answered step by step
Verified Expert Solution
Question
1 Approved Answer
2. For the following program answer following. a. Draw a control flow chart. b. Generate a control flow graph. c. Generate a hybrid flow
2. For the following program answer following. a. Draw a control flow chart. b. Generate a control flow graph. c. Generate a hybrid flow graph. d. Generate test data for maximum statement coverage. Generate test data for maximum decision coverage. e. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 NNNN 26 8888 27 Program OddandEven A, B: Real; Odd: Integer; Begin 28 29 End Read A Read B C = A + B D A B Odd = 0 If A/2 DIV 2 0 (DIV gives the remainder after division) Then Odd = Odd + 1 Endif If B/2 DIV 2 0 Then Odd Odd + 1 Endif If Odd 1 Then Print ("C is odd") Print ("D is odd") Else Print ("C is even") Print ("D is even") Endif
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started