Write a program that uses an if-elif-else statement to determine a traveling schedule. 1) request user input for the variable, date, from 1 to 31 inclusive 2) write an if-elif-else statement to do the following: a) if the date is less than 1, print an error message, Invalid input. b) if the date is equal to 1, print a message, No traveling. c) if the date is at least 2 but less than 10, print a message, Travel to Rome! d) if the date is at least 10 but less than 20, print a message, Travel to London! e) if the date is at least 20 but less than 30, print a message, Travel to Paris! f) if the date is 30 or 31, print a message, Travel to New York! g) if the date is more than 31, print a message, Invalid input. Input text can be any content. Just make sure to precisely match the output format below. Write your entire program in the ANSWER area provided below (must include comments if using code is not covered in the course). Example Output: Enter the date(1-31): 31 Travel to New York
Write a program that uses an if-elif-else statement to determine a traveling schedule. 1) request user input for the variable, date, from 1 to 31 inclusive 2) write an if-elif-else statement to do the following: a) if the date is less than 1, print an error message, Invalid input. b) if the date is equal to 1, print a message, No traveling. c) if the date is at least 2 but less than 10, print a message, Travel to Rome! d) if the date is at least 10 but less than 20, print a message, Travel to London! e) if the date is at least 20 but less than 30, print a message, Travel to Paris! f) if the date is 30 or 31, print a message, Travel to New York! g) if the date is more than 31, print a message, Invalid input. Input text can be any content. Just make sure to precisely match the output format below. Write your entire program in the ANSWER area provided below (must include comments if using code is not covered in the course). Example Output: Enter the date(1-31): 31 Travel to New York
C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter3: Input/output
Section: Chapter Questions
Problem 4PE: 4. During each summer, John and Jessica grow vegetables in their backyard and buy seeds and...
Related questions
Question
Python
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 1 images
Knowledge Booster
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.Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT