(Solved) : Using Command Rem Write Program Request Positive Interger Input Follows Procedure Number E Q43961583 . . .
using the command ‘ rem ‘write a program that request a positive interger as input andthen follows this procedure; if the number is even, divide it by 2.if not, multiply the number by 3 and the add 1.repeat this process with the resulting number and continuerepeating until the 1 is reached. After the 1 is reached, theprogram should display the number of iterations required to reachthe number 1. when the program requests input, it should check thatthe user inputs a positive integer greater than 1. if not, an errormessage should be generated.
Expert Answer
Answer to using the command ‘ rem ‘write a program that request a positive interger as input and then follows this procedure; if t…
OR