String Practice Problem Complete the following program: In Python a) Read in and store the data from the file called"January.txt". This file includes the customer's account number,beginning balance, withdrawals, and deposits. (In that order) Note:Make sure you look at the file before you begin the project! b) Prompt the user for his/her name and age. c) Convert the customer's name to a username that consists ofthe first letter of the first name, the first 5 digits of lastname, and the customer's age.(All letters should be lowercase)Example: Michael Jordan, age 37 should convert to: mjorda37 d) Convert the account number to the following format:XXX-XX-XXX e) Calculate the total of the deposits, the total of thewithdrawals, and the ending balance in the account. f) Write a report similar to the following to both thescreen and a file called "January statement.txt": Broward College National Bank January Bank Statement Name UserName Account Number -------------------------------------------------------------------- Michael Jordan mjorda37 217-28-392 Beginning Balance: $1200.56 Total Withdrawals: $339.18 Total Deposits: $530.29 Ending Balance: $1391.67 Save the file as lastname_statement.py and upload the .py file here.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

String Practice Problem

Complete the following program: In Python

a) Read in and store the data from the file called"January.txt". This file includes the customer's account number,beginning balance, withdrawals, and deposits. (In that order) Note:Make sure you look at the file before you begin the project!

b) Prompt the user for his/her name and age.

c) Convert the customer's name to a username that consists ofthe first letter of the first name, the first 5 digits of lastname, and the customer's age.(All letters should be lowercase)Example: Michael Jordan, age 37 should convert to: mjorda37

d) Convert the account number to the following format:XXX-XX-XXX

e) Calculate the total of the deposits, the total of thewithdrawals, and the ending balance in the account.

f) Write a report similar to the following to both thescreen and a file called "January statement.txt":

Broward College National Bank

January Bank Statement

Name UserName Account Number

--------------------------------------------------------------------

Michael Jordan mjorda37 217-28-392

Beginning Balance: $1200.56

Total Withdrawals: $339.18

Total Deposits: $530.29

Ending Balance: $1391.67

Save the file as lastname_statement.py and upload the .py file here.

 
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Similar questions
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY