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
icon
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()

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
.
Transcribed Image Text: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 .
Tips and Tricks
I shouldn't have to tell you to put an __init__() function in your class, it is always required. Look at my hard-coded calls to know how you should structure it.
Hard-Coded
Copy/paste the code below into your M7A1.py document, after your function definition.
#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()
Transcribed Image Text:Tips and Tricks I shouldn't have to tell you to put an __init__() function in your class, it is always required. Look at my hard-coded calls to know how you should structure it. Hard-Coded Copy/paste the code below into your M7A1.py document, after your function definition. #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
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Development strategies
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