Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program to prompt the user to input a string, which consists of a student's full name and birth year, then print out

Write a program to prompt the user to input a string, which consists of a student's full name and birth year,

Write a program to prompt the user to input a string, which consists of a student's full name and birth year, then print out his/her first name, last name and current age with exact format as below: Sample Run: Enter your info: AN THUY THI NGUYN 2004 Result: AN NGUYEN 18-year-old Note: The full name is inputted in the order of first name - middle name (if available) - last name, and people may have none or many words in the middle name (e.g. An Nguyen, An Thi Thuy Nguyen). The user may input many whitespaces before and after each words.

Step by Step Solution

3.46 Rating (146 Votes )

There are 3 Steps involved in it

Step: 1

the code is as follow from datetime import datetime d... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Systems analysis and design

Authors: kenneth e. kendall, julie e. kendall

8th Edition

135094909, 013608916X, 9780135094907, 978-0136089162

More Books

Students also viewed these Computer Network questions

Question

Describe the difference between formal and informal mediation.

Answered: 1 week ago

Question

List some of the likely sources of distress in peoples lives.

Answered: 1 week ago