Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For given pseudocode, draw a state diagram and Provide a test set that satisfies Edge Coverage on your graph. QUESTION 2 A pseudo code that

For given pseudocode, draw a state diagram and Provide a test set that satisfies Edge Coverage on your graph.
image text in transcribed
QUESTION 2 A pseudo code that reads eleven numbers from the wer and prints the average of these eleven numbers. Also counts the occurrence of number in the program. MAIN MODULE CREATE AVERAGE_OF_NUMBERS an object created to give a call to acher modules CREATE object for AVERAGE_OF_NUMBERS COMPUTE_INITIALIZE_VARIABLES COMPUTE_CALCULATE AVERAGE COMPUTE_DISPLAY_AVERAGE END WINITIALIZATION MODULE CREATE INITIALIZE_VARIABLES create array DECLARE and INITIALIZE MEMORY TO ARRAY ELEVEN_NUMBERS INITIALIZE an integer CLOCK to value INITIALIZE an integer SUM O value DECLARE a decimal variable AVERAGE INITIALIZE an integer i to value END CALCULATION MODULE CREATE CALCULATE_AVERAGE REPEAT READ ELEVEN NUMBERS! paspolate array IF ELEVEN NUMBERS[i] equals 6 check for the occurrence of number 6 INCREMENT CLOCK by 1 counter incremented in case umber found END IF UNTIL I equals 11 Auto increments value of and check the condition SETI =1 REPEAT SE SUM = SUM ELEVEN NUMBERS UNTIL 11 SET AVERAGE = SUM/11 END HOUTPUT MODULE CREATE DISPLAY_AVERAGE PRINT AVERAGE display average of devra umbes PRINT CLOCK display multiple occurrence of number 6 END

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

Step: 3

blur-text-image

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

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Shamkant B. Navathe

7th Edition Global Edition

1292097612, 978-1292097619

More Books

Students also viewed these Databases questions

Question

What are topics included within employee services?

Answered: 1 week ago

Question

5. Discuss the role of the Web in career management.

Answered: 1 week ago

Question

4. Design a career management system.

Answered: 1 week ago

Question

4. Evaluation is ongoing and used to improve the system.

Answered: 1 week ago