00:01
Hello student, here the pseudocode algorithm and a simplified flowchart in java to achieve the task of printing the word cs as a specified number of the time based on the user input.
00:10
So here prompt the user to enter the positive number and store it in the user input.
00:16
So we will take the number from the user and it will stored in the user input.
00:20
Now initialize the variable count equal to zero while count is less than the user input then do the following print the word cs and increment.
00:27
So here we will do this task by the condition and now add the program.
00:32
So cs will be printed according to the user input.
00:35
So here this is the pseudocode.
00:39
So this is pseudocode for the given program.
00:44
And now java program for this.
00:46
So here i have taken the scanner class because i have to take the data from the user.
00:51
So here public class print s is taken and after this input is taken from the user with the help of system .out .println.
01:01
Now this input .next int will be taken from the user and now comparison will be taken place count is initialized to zero.
01:09
If count is less than user input then the number of the cs will be printed according to this and increment.
01:17
After this if input reaches to the user input then we will come out from the loop.
01:24
So it is the flowchart.
01:26
So this is the flowchart of the given java program and i have written the pseudocode...