Write a Python Program that will simulate a registration system, as follows: Welcome: Display a message to welcome the user and ask for their info Capture user input: Ask the user to input the following information: o First name (String) o Last name (String) o Age (integer) you must adjust value by subtracting 2 years o Current GPA (float) you must adjust by adding 0.5 o Hobbies (only 3) (a string Collection containing 3 items) (all strings) Hint: you can ask user to specify each hobby one by one, and then you can update (or add) each item to the Collection - Display user information: thank user for registration & show their info Goodbye: Display a Goodbye message and end Program

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Write a Python Program that will simulate a registration system, as follows:
Welcome: Display a message to welcome the user and ask for their info
Capture user input: Ask the user to input the following information:
o First name (String)
Last name (String)
o Age (integer) you must adjust value by subtracting 2 years
Current GPA (float) you must adjust by adding 0.5
o Hobbies (only 3) (a string Collection containing 3 items) (all strings)
Hint: you can ask user to specify each hobby one by one, and then you can
update (or add) each item to the Collection
Display user information: thank user for registration & show their info
Goodbye: Display a Goodbye message and end Program
Transcribed Image Text:Write a Python Program that will simulate a registration system, as follows: Welcome: Display a message to welcome the user and ask for their info Capture user input: Ask the user to input the following information: o First name (String) Last name (String) o Age (integer) you must adjust value by subtracting 2 years Current GPA (float) you must adjust by adding 0.5 o Hobbies (only 3) (a string Collection containing 3 items) (all strings) Hint: you can ask user to specify each hobby one by one, and then you can update (or add) each item to the Collection Display user information: thank user for registration & show their info Goodbye: Display a Goodbye message and end Program
Expert Solution
Step 1
print("Welcome to the program!")

firstName = input("Enter your first name: ")
lastName = input("Enter your last name: ")
age = input("Enter your age: ")
gpa = input("Enter your gpa: ")

print("Enter your three hobbies")
hobbies = []

hobbies.append(input("Enter hobby: "))
hobbies.append(input("Enter hobby: "))
hobbies.append(input("Enter hobby: "))

print("Thank you for registration")

print("First name:",firstName)
print("Last name:",lastName)
print("Age:",age)
print("GPA:",gpa)
print("hobbies:",hobbies)

print("Good bye!")

 

Output :

Welcome to the program!
Enter your first name:
ronaldo
Enter your last name: christiano
Enter your age: 26
Enter your gpa:
5

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Random Class and its operations
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
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education