Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please answer and show all work. Thanks! Write pseudocode to do the following: T

ID: 3582538 • Letter: P

Question

Please answer and show all work. Thanks!

Write pseudocode to do the following: The computer user enters his or her name. If the user's name entered contains a character that is not a letter, then the computer must reject that entry and start the process from the beginning. If the name is acceptable (i.e. it only contains letters), the computer program will then tell the user how many letters are in the name, but if the name has more than 6 letters to it, the computer must also tell the user that his or her name is "too long".

Explanation / Answer


string name;
bool check;
int letters;
findChar(name)// return bool value true or false
do{
print("Enter you name:")
take input from user
pass string to findChar(name)
if(findChar==true){
print("You have entered character in your name:")
       print("Enter again")
       take input from user
}else{
       print("How many letters are in the name")
       letters input from user
       if(letters>6)
       print("your name ",name,"is too long")
}
  
  
}
while(findChar!=false)