112k views
1 vote
Write a Raptor program that will receive a first name and last name from the user. The program will display a "Hello" message with the first name and last name.

User Bushidov
by
5.6k points

1 Answer

5 votes

Answer & Explanation:

Open a New Raptor document and save the file with a name: demo.rap.

Move Input symbol on the drawing area.

Double click on Input symbol.

Write prompt: “Please input your first name: ”

Enter variable name: firstName

Click on Done button.

Move Input symbol on drawing area.

Double click on Input symbol.

Write prompt: “Please input your last name: ”

Enter variable name: lastName

Click on Done button.

Move Output symbol on the drawing area.

Double click on Output symbol.

Write a message with variables: “Hello ” + ” “ + firstName + lastName (+ to join string with variables values.

Click on Done button.

Click Execute to completion in the Run Menu.

User Joseph Ishak
by
5.0k points