Answered step by step
Verified Expert Solution
Question
1 Approved Answer
January.txt file values 21728392 1200.56 19.18,29.15,78.75,212.10 100,20,410.29 String & Files Practice Problem Complete the following program: 1. Read in and store the data from the
January.txt file values
21728392 1200.56 19.18,29.15,78.75,212.10 100,20,410.29
String & Files Practice Problem Complete the following program: 1. 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! 2. Prompt the user for his/her name and age. 3. 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 4. Convert the account number to the following format: XXX-XX-XXX 5. Calculate the total of the deposits, the total of the withdrawals, and the ending balance in the account. 6. Write a report similar to the following to both the screen and a file called "JanuaryStatement.txt": Broward College National Bank January Bank Statement Name User Name Account Number Michael Jordan mjorda37 217-28-392 Beginning Balance: Total Withdrawals: Total Deposits: Ending Balance: $1200.56 $339.18 $530.29 $1391.67 %%%3DStep 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