Write an algorithm that gets as input three data values xy


Write an algorithm that gets as input three data values x,y, and z and outputs the average of these values if the value of x is positive. If the value of x is either 0 or negative, your algorithm should not compute the average but should print the error message "Bad Data" instead.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Write an algorithm that gets as input three data values xy
Reference No:- TGS01574610

Now Priced at $10 (50% Discount)

Recommended (98%)

Rated (4.3/5)