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

Fff

 

1
Bb
of 1
Q
Bb
|Q |G | A | B | ► │Ð Ð Ð | B
Bb
Bb X
https://learn-us-east-1-prod-fleet01-xythos.content.blackboardcdn.com/blackboard.learn.xythos.prod/5935a3658a06a/907494?X-Blackb...
+
Q
CD Page view A Read aloud | Draw
separate me name, at name, and chemic code. You around remove any CAcra Wincespace from one
beginning and newlines from the end of the parts.
The user name should be created as
●
Bb Bb Bb Bb
You'll need to use some of the string methods that we covered in this lesson
You can test your function by with a main() that is just the function call with the argument typed in.
OTH
Second: write a function make_user (param) that will receive as its arguments three strings - the
first name, last name, and client number and return the username.
Highlight
The first two characters of the first name, in lower case
●
The first two characters of the last name, in lower case
•
The last three characters of the user number
For the example, the username for user Nenya Lin will be neli548
You'll need to use slices, lower() and concatenation.
You can test your function by with a main() that is just the function call with the arguments typed in.
Username
=======
sajo345
neli548
afu000
masm012
Finally: After your functions are working, write a main program to open the file, create usernames for
the clients and print out client names and user names in a neat report format. For example
client
Sally Jones
Nenya Lin.
A Fule
Mary Ann Smythe
Bb
Bb +
Erase |
6
8
0
X
Transcribed Image Text:1 Bb of 1 Q Bb |Q |G | A | B | ► │Ð Ð Ð | B Bb Bb X https://learn-us-east-1-prod-fleet01-xythos.content.blackboardcdn.com/blackboard.learn.xythos.prod/5935a3658a06a/907494?X-Blackb... + Q CD Page view A Read aloud | Draw separate me name, at name, and chemic code. You around remove any CAcra Wincespace from one beginning and newlines from the end of the parts. The user name should be created as ● Bb Bb Bb Bb You'll need to use some of the string methods that we covered in this lesson You can test your function by with a main() that is just the function call with the argument typed in. OTH Second: write a function make_user (param) that will receive as its arguments three strings - the first name, last name, and client number and return the username. Highlight The first two characters of the first name, in lower case ● The first two characters of the last name, in lower case • The last three characters of the user number For the example, the username for user Nenya Lin will be neli548 You'll need to use slices, lower() and concatenation. You can test your function by with a main() that is just the function call with the arguments typed in. Username ======= sajo345 neli548 afu000 masm012 Finally: After your functions are working, write a main program to open the file, create usernames for the clients and print out client names and user names in a neat report format. For example client Sally Jones Nenya Lin. A Fule Mary Ann Smythe Bb Bb + Erase | 6 8 0 X
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Binary numbers
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