Write an algorithm to ask the user for a number and then to print all the numbers from 1 to the entered number. input identifiers : number output identifier : counter others : none comment: declare variables number=0 counter=0 comment : get the input print "Enter a positive number -- " get number comment : loop to print the number from 1 to number counter = 1 comment: start printing at 1 repeat while counter is less than or equal to number print counter " " counter = counter+1 Write an algorithm that repeatedly asks the user for a character until the user enters a period (.). After the period is entered the algorithm reports the number of characters entered. input identifiers : character output identifiers : howMany others : none comment: declare variables character=' ' howMany=0 comment: get the initial input print "Enter a character -- " get character comment: loop counting the character and getting another until a . is found repeat while character is not equal to a . howMany=howMany+1 print "Enter a character -- " get character comment: now display the result print "You entered " howMany "characters." Write an algorithm to ask the user for two numbers and then print all the numbers from the first to the second inclusive. input identifiers : first second output identifiers : current others : none comment: declare variables first=0 second=0 current=0 comment: get the input print "Enter first number -- " get first print "Enter the second number -- " get second comment: loop to print the numbers from first to second current=first comment: start printing at first repeat while current is less than or equal to second print current current = current+1 Write an algorithm which asks the user for a number and prints the number in reverse order. input identifiers : number output identifiers : digit others : none comment: declare variables number=0 digit=0 comment : get input print "Enter a positive number -- " get number comment: use remainder and divide to get the digits one at a time and print comment: note the last digit can be obtained by finding the remainder when comment: the number is divided by 10. We can then divide the number by 10 to comment: remove the last digit. We will repeat this until the number is 0 while number is not equal to 0 digit = number%10 comment: this will get the last digit print digit number = number/10 comment: this removes the last digit