Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Hide Assignment Information Instructions String & Files Practice Problem Complete the following program: Read in and store the data from the file called January.txt.This file
Hide Assignment Information
Instructions
String & Files Practice Problem
Complete the following program:
- 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 contents of the file before you begin the project!
- Prompt the user for his/her name and age.
- Convert the customer's name to a username that consists of the first letter of the first name, the first 5 digits of last name, and the customer's age.All letters of the username should be lowercase. Example: Michael Jordan, age 37 should convert to: mjorda37
- Convert the account number to the following format: XXX-XX-XXX
- Calculate the total of the deposits, the total of the withdrawals, and the ending balance in the account.
- Create a report similar to the following toboth the screen and a filecalled "JanuaryStatement.txt":
- print("{:30s}${:10.2f}".format("Beginning Balance:", beginBalance) .center(80))
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started