Answer to Question #241781 in Algorithms for Henry

Question #241781
Create a pseudocode that will ask for the user for their First name, Middle name, and Last name. The program will next ask if it is morning or night, and then display a greeting with the user's complete name.
1
Expert's answer
2021-09-24T10:58:23-0400
Start
  Declare variable answer
  Declare variable FirstName
  Declare variable MiddleName
  Declare variable LastName
  Read FirstName
  Read MiddleName
  Read LastName
  Display message: "Is it morning or night: "
  Read answer
  if answer =morning then
     Display message: "Good Morning,"+FirstName+MiddleName+LastName
  else
     Display message: "Good night,"+FirstName+MiddleName+LastName
  end if
Stop

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS