0

write a pseudocode to read a sequence of numbers terminated by 777. the pseudocode should count and print the number of negative values and zero values. the algorithm should also print the product of the positive number.

6
Contributors
6
Replies
7
Views
8 Years
Discussion Span
Last Post by shaiq
0

If you were given the assignment to do it by hand, how would YOU do it?

(The manual process makes a good basis for the pseudo code for the computer.)

0

write a pseudocode to read a sequence of numbers terminated by 777. the pseudocode should count and print the number of negative values and zero values. the algorithm should also print the product of the positive number.

do
read number
if(number == 777) break
while(true);

Now you put some effort for your homework.

0

The statement is running on a particular treadmill you burn 3.9 calories per minute. Design a program that uses a loop to display the number of calories burned agter 10, 15, 20, 25, and 30 minutes.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.