Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

any tips for resolving these errors MODULE mdCalc; IMPORT In, Out; VAR d: ARRAY 100 OF REAL; n: INTEGER; v: REAL; PROCEDURE mdev( x: ARRAY

any tips for resolving these errors

image text in transcribed

MODULE mdCalc; IMPORT In, Out; VAR d: ARRAY 100 OF REAL; n: INTEGER; v: REAL;

PROCEDURE mdev( x: ARRAY OF REAL; n: INTEGER): REAL; VAR

PROCEDURE mean( x: ARRAY OF REAL; n: INTEGER): REAL; VAR

BEGIN (* mean *)

RETURN m END mean;

BEGIN (* mdev *)

RETURN md END mdev;

BEGIN (* mdCalc *) n := -1; In.Real( v); WHILE In.Done DO (* exit loop with cntrl-D *) INC( n); d[ n] := v; In.Real( v) END; INC( n); (* so n is now the size of the array *) Out.Real( mdev( d, n)); Out.Ln END mdCalc.

"mdCalc.m", line 20: 'm' has not been declared RETURN m A "mdCalc.m", line 25: 'md' has not been declared RETURN md AA "mdCalc.m", line 14: warning -- mean is declared but not used PROCEDURE mean( x: ARRAY OF REAL; AAAA

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

Joe Celkos Data And Databases Concepts In Practice

Authors: Joe Celko

1st Edition

1558604324, 978-1558604322

More Books

Students also viewed these Databases questions

Question

What were your most important educational experiences?

Answered: 1 week ago

Question

How was your life influenced by those events?

Answered: 1 week ago

Question

Which of these influenced your life most dramatically?

Answered: 1 week ago