Learning Objectives:

This assignment is designed to gain proficiency in the creation of flowcharts and pseudocode that may be used to create JavaScript programs later. The assignment focuses on Decision Statements (IFS)

To earn credit for this assignment:

  • You will solve the problem detailed below by creating a flowchart with corresponding pseudocode.
  • The flowchart should be created using a software tool such as draw.io- or Flowgorithm - and then exported into an image file.
  • The pseudocode should be typed in a text file using a simple text editor like Notepad.
  • Hand drawings or pictures of hand drawings cannot be used as part of the submission.

PROBLEM DESCRIPTION

The Vegas Tour Inc. company offers vacation packages to Las Vegas. The final price depends on the selections regarding Air Travel, Hotel nights and Tour type. A flowchart and pseudocode are required to capture the logic of those selections and to calculate the final price. The pricing information is listed below:

Destination-

Bellagio

  • Air Travel:
    • First Class: $600
    • Economy: $300
  • Hotel: $300 per night
  • Tour:
    • High roller package: $1,500
    • Basic package: $600

Wynn

  • Air Travel:
    • First Class: $700
    • Economy: $350
  • Hotel: $400 per night
  • Tour:
    • High Roller Package: $1,800
    • Basic Package: $650

Inputs:

Destination: Bellagio or Wynn.
Air Travel: First Class or Economy.
Hotel: Number of nights.
Tour: High Roller or Basic.

Outputs:

  • Final price
  • Note: add 8% resort fee to the total price to calculate the final price

SAMPLE TRACES THROUGH THE CORRECT ALGORITHM

Sample 1 Sample 2
Inputs:
Destination Bellagio Wynn
Air Travel Economy First Class
Hotel nights 7 5
Tour High Roller Basic
Output:
Final Price $4212 $3618

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.