Answered step by step
Verified Expert Solution
Link Copied!

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:

  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. Create a report similar to the following toboth the screen and a filecalled "JanuaryStatement.txt":
  7. print("{:30s}${:10.2f}".format("Beginning Balance:", beginBalance) .center(80))

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions

Question

What is sponsorship?

Answered: 1 week ago

Question

Who heads the council of ministers?

Answered: 1 week ago

Question

Who Coined and used the ward non aligned first?

Answered: 1 week ago

Question

Formation of forward bloc by subha bose was .....?

Answered: 1 week ago

Question

The S.I. unit of change is........?

Answered: 1 week ago