Question

This lab assignment is designed to give you some practice using if statements in a flowchart....

This lab assignment is designed to give you some practice using if statements in a flowchart. You might want to sketch out your flowchart on paper before doing it in Visual Logic. Be sure to review the Visual Logic documentation before attempting this lab. The Assignment The Romance World Cruise Line provides special gifts and celebrations for passengers who are newlyweds as well as for couples who have been married for more than 40 years. Design a VLS flowchart for a program that accepts: • a couples last name • ship cabin number • number of years married. After accepting the data the program always prints it back out as shown below, with a possible additional message. If the years married is one year or less the message is "Please send the Newlywed Gift Package to cabin nnn", where "nnn" is the cabin number. If the number of years married is 40 or more the message is "Please send the Deluxe Anniversary Package to cabin nnn". If the number of years married is not one or less, or 40 or more, then print no additional message. Please use the Console for input and output (click the "More >>" button in the Visual Logic dialog box that is used to create your input or output parallelogram, then then click the Input Type "Console" radio button). A sample run of the program will look something like this: Enter couples last name: Taylor Enter ships cabin number: 125 Enter number of years married: .5 Passengers Taylor are assigned cabin 125. Please send the Newlywed Gift Package to cabin 125.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer:-

Flow Chart:-

Code:-

Sample Output:-

Enter couples last name: "Harrison"
Enter ships cabin number: 225
Enter number of years married:41
Harrison are assigned cabin 225.Please send the Deluxe Anniversary Package to cabin 225.

Hope this answer will helps you. If you have even any small doubt, please let me know by comments. I am there to help you. Please give Thumbs Up,Thank You!! All the best

Add a comment
Know the answer?
Add Answer to:
This lab assignment is designed to give you some practice using if statements in a flowchart....
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT