What is the python code?

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...
icon
Related questions
Question
100%

What is the python code?

November 23rd, 2020 can be written in different formats:
International format: 23-11-2020
United States format: 11-23-202o
• Design a program that asks the user to enter a day (in numeric form), a month,
and a four-digit year.
• Ask the user to enter the number 1 for International format, or 2 for US
format.
The program then should print the date in the desired format.
• Design the program using PSEUDOCODE, follow the rules of pseudocode and
use the keywords we learned in the class. Do not write an essay-like solution.
• Below are 4 sample runs.
• Your output should match exactly the sample runs.
• After designing the program, write the Python code.
Sample run 1:
Enter the day: 21
Enter the month: 10
Enter the year: 2012
Enter 1 for International format, or 2 for US format: 1
The date is: 21-10-2012
Transcribed Image Text:November 23rd, 2020 can be written in different formats: International format: 23-11-2020 United States format: 11-23-202o • Design a program that asks the user to enter a day (in numeric form), a month, and a four-digit year. • Ask the user to enter the number 1 for International format, or 2 for US format. The program then should print the date in the desired format. • Design the program using PSEUDOCODE, follow the rules of pseudocode and use the keywords we learned in the class. Do not write an essay-like solution. • Below are 4 sample runs. • Your output should match exactly the sample runs. • After designing the program, write the Python code. Sample run 1: Enter the day: 21 Enter the month: 10 Enter the year: 2012 Enter 1 for International format, or 2 for US format: 1 The date is: 21-10-2012
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Top down approach design
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
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage