Implement the following: 1) Request a user input for the variable, direction. 2) Write an if-elif-else statement to do the following:     a) if the direction is 'N', print a message, North Zone.     b) if the direction is 'S', print a message, South Zone.     c) if the direction is 'E', print a message, East Zone.     d) if the direction is 'W', print a message, West Zone.     e) if the direction is none of the above, print a message, Invalid Input.     f) uppercase and lowercase should be all acceptable.   Example Output 1 Enter your direction(N/S/E/W): uptown Invalid Input. Example Output 2 Enter your direction(N/S/E/W): e East Zone.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter4: Making Decisions
Section: Chapter Questions
Problem 5E: a. Write a program named CheckMonth that prompts a user to enter a birth month. If the value entered...
icon
Related questions
Question

Implement the following:

1) Request a user input for the variable, direction.
2) Write an if-elif-else statement to do the following:
    a) if the direction is 'N', print a message, North Zone.
    b) if the direction is 'S', print a message, South Zone.
    c) if the direction is 'E', print a message, East Zone.
    d) if the direction is 'W', print a message, West Zone.
    e) if the direction is none of the above, print a message, Invalid Input.
    f) uppercase and lowercase should be all acceptable.

 

Example Output 1
Enter your direction(N/S/E/W): uptown
Invalid Input.


Example Output 2
Enter your direction(N/S/E/W): e
East Zone.

 

NEED HELP WITH PYTHON CODE

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Knowledge Booster
Constants and Variables
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,