Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Managerial Economics

Authors: Paul Keat, Philip K Young, Steve Erfle

7th edition

0133020266, 978-0133020267

More Books

Students also viewed these Databases questions

Question

Explain the various methods of job evaluation

Answered: 1 week ago

Question

Differentiate Personnel Management and Human Resource Management

Answered: 1 week ago

Question

Describe the functions of Human resource management

Answered: 1 week ago

Question

What is the objective of capital budgeting?

Answered: 1 week ago