Overview Make a class called User). Create two attributes called first_name and last_name, and then create several other attributes that are typically stored in a user profile (user_id, last_login, and password). Make a method called describe_user() that prints a summary of the user's information. Make another method called greet_user() that prints a personalized greeting to the user. Cut and paste my hard-coded calls that will create several instances of User and call their functions. There is no user input on this assignment. Expected Output Example 1 Accessing user 1000: Jim Bob last logged in on June 12, 1998 Welcome to the jungle Jim Bob, you gonna die Welcome to the jungle Joe Bob, you gonna die Accessing user 1001: Joe Bob last logged in on July 4, 2001 Specifications • You should submit a single file called M7A1.py • It should follow the submission standards outlined here: Submission Standards • Your program must define a class called User which has two functions; describe_user() and greet_user() which behave as descirbed above. • Your program must create and assign the appropriate attributes (first_name, last_name, user_id, last_login, and password) Your program must end with the hard-coded code below
Overview Make a class called User). Create two attributes called first_name and last_name, and then create several other attributes that are typically stored in a user profile (user_id, last_login, and password). Make a method called describe_user() that prints a summary of the user's information. Make another method called greet_user() that prints a personalized greeting to the user. Cut and paste my hard-coded calls that will create several instances of User and call their functions. There is no user input on this assignment. Expected Output Example 1 Accessing user 1000: Jim Bob last logged in on June 12, 1998 Welcome to the jungle Jim Bob, you gonna die Welcome to the jungle Joe Bob, you gonna die Accessing user 1001: Joe Bob last logged in on July 4, 2001 Specifications • You should submit a single file called M7A1.py • It should follow the submission standards outlined here: Submission Standards • Your program must define a class called User which has two functions; describe_user() and greet_user() which behave as descirbed above. • Your program must create and assign the appropriate attributes (first_name, last_name, user_id, last_login, and password) Your program must end with the hard-coded code below
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
Related questions
Question
this is the information that has to be hard-coded:
# hard-coded calls jim = User(first_name='Jim', last_name='Bob', user_id=1000, last_login='June 12, 1998', password='password123') jim.describe_user() jim.greet_user() joe = User('Joe', 'Bob', 1001, 'July 4, 2001', 'babygirl') joe.greet_user() joe.describe_user()
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 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
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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education