Fundamental of computer science

posted by .

Pseudocode CountPositive
integer totalPos,number
Begin loop
Input numbers
If number>0 then totalPos<-totalPos +1
Loop while number<>0
Print totalPos


Convert the above Pseudocode into a pascal program.

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. Intro to Computer Programming - Pseudocode

    This assignment (below) jumped way ahead of my abilities compared to the last assignment. I think I need a parallel array or a 2D array, an accumulator or loop counter, a verification of input, and Boolean something. But I'm not sure …
  2. computer

    A-Asking the user to pick a number between 1 and 20 and having the computer pick a number between 1 and 20 and telling the user if they won or lost B- For finding the logic error in the program C- For finding and fixing the logic error …
  3. computer science

    Your goal is to solve the following programming lab activity. Write a program that prompts & accepts a number between 1 and 12. After getting the input, display the number with the appropriate month. (example: This is the 1st month…January, …
  4. Programming

    Write a pseudocode program that asks the user for an integer between 1 and 12. The program is to calculate the times table for that number. So for example, if the user enters a 2, then the program has to calculate 2x1 and display the …
  5. Computer Science (MATLAB)

    I had a test in my computer science course in which I was asked if any while loop can be replaced with a for loop. I put true. I guess the answer was false. My professor said that if you had a while loop in which you asked the user …
  6. Computer Science (MATLAB)

    I had a test in my computer science course in which I was asked if any while loop can be replaced with a for loop. I put true. I guess the answer was false. My professor said that if you had a while loop in which you asked the user …
  7. JAVA PROGRAMMING

    "POWERS" Compute the power of a number given the base and exponent. Do three versions of this program using a while loop, a do-while loop and a for-loop. Introduction Please help..i don't know how to input this in java...please help.tnx
  8. programming

    Using Raptor, create a condition loop that will ask the user for input of two numbers. The numbers should be added and the sum displayed. The loop should also ask the user if he or she wishes to enter two more numbers and perform the …
  9. computer science

    Mr Ali has given a test to his class. He would like to have the average score for the class as well as the highest and lowest scores. Write a pseudocode to calculate and display these values. Then convert your pseudocode into a program …
  10. Program

    Write a pseudocode and algorithm that to else the user to input 10 numbers in program we display the largest number

More Similar Questions