write pseudocode that will inform youtuber the number of "Like"(L) based on 1000 viewer

2 answers

Fthh
Here is one way to write the pseudocode for this task:

START

SET number_of_viewers = 1000
SET number_of_likes = 0

FOR i = 1 TO number_of_viewers
IF viewer[i] liked the video
number_of_likes = number_of_likes + 1
END IF
END FOR

PRINT number_of_likes

END

This pseudocode uses a loop to iterate over each viewer and check whether they liked the video. If they did, it increments the number_of_likes variable by 1. At the end, it prints the final value of number_of_likes.

This is just one way to write the pseudocode, and there are many other ways you could achieve the same result. The important thing is to communicate the steps you are taking in a clear and concise way, using the conventions of pseudocode.
Similar Questions
  1. 3 of 143 of 14 ItemsQuestion Use the sentence to answer the question. Only the elite wear our shoes! Which of the following
    1. answers icon 1 answer
  2. Use the sentence to answer the question.Only the elite wear our shoes! Which of the following describes the purpose of this
    1. answers icon 1 answer
  3. Using pseudocode or a flowchart write a program that does the following:Allow the end user to enter the category the ad will
    1. answers icon 1 answer
    1. answers icon 0 answers
more similar questions