The Romance World Cruise Line provides special gifts for passengers who are newlyweds, as well as for those who have been married more than 40 years. Design a pseudocode for a program that accepts a couple's last name, ship cabin number, and number of years married. Display a couple's data with the message "Newlywed Gift" if the couple has been married a year or less, "Deluxe Anniversary Package" if the couple has been married 40 years or more, and no message if the couple has been married between 2 and 39 years.

So far I have this:

read name,cabin,years
print name,cabin,years
if years < 2, print "Newlywed Gift"
if years >= 40, print "Deluxe Anniversary Package"

Someone help please?

see related questions below

Sure! Here's the pseudocode for the program you described:

```
//Accept couple's last name, ship cabin number, and number of years married.
read name, cabin, years

//Display couple's data.
print name, cabin, years

//Check the number of years married and display corresponding message.
if years <= 1 then
print "Newlywed Gift"
else if years >= 40 then
print "Deluxe Anniversary Package"
endif
```

In this pseudocode, we are first reading the couple's last name, ship cabin number, and number of years married from the user. Then, we are displaying the couple's data using the print statement.

Next, we are using an if-else if-endif statement to check the number of years married. If the number of years is less than or equal to 1, the program will display "Newlywed Gift" using the print statement. If the number of years is greater than or equal to 40, the program will display "Deluxe Anniversary Package". If the number of years is neither 1 nor 40, no message will be displayed.

Please note that this is pseudocode, which means it is a high-level description of the logic without specifying any programming language syntax. You will need to translate this pseudocode into a programming language of your choice in order to run the program.