Question: IT205 Intro to Object Oriented Programming File Input Output Program Assignment Credit Card Interest Calculator Purpose Write a C++ program that will read customer information

IT205 Intro to Object Oriented Programming

File Input Output Program Assignment Credit Card Interest Calculator

Purpose

Write a C++ program that will read customer information from an input text file and calculate the interest on unpaid credit card balances of one or more customers of a bank using the average daily balance. Results will be output to the monitor and text file.

Program Input

You are provided an input text file where each record consists of:

Customers first and last name ;

Credit card number

Balance shown in the bill (netBalance)

Payment made (payment)

Days in the billing cycle (d1)

Number of days payment made before billing cycle (d2)

Program Objective

You are required to write a program with one and two-dimensional arrays where you will read all the records in the input text file into arrays, then perform all calculations, and finally output all results to both monitor and text file. Your output must be similar to the output text file provided to you. You will receive 10 bonus points if your output is formatted using output manipulators and identical to the output text file provided

You are required to use the following arrays to read the data: string names[7][2], int ccn[7], float payments[7][2], int days[7][2]

The equations for the calculations are

Calculate the average daily balance averageDailyBalance = (netBalance * d1 paynment * d2)/d1

APR which is based on the average daily balance as shown below averageDailyBalance <$100: APR = 5

averageDailyBalance between $100 and $1000 : APR = 10 averageDailyBalance >$1000: APR = 15

Interest interest = averageDailyBalance *APR/(100*12)

You may modify your previous assignment to achieve the objective.

Submission Requirements:

Please submit the well-documented program (font size 12, line numbers in margin, word wrap), and output text file to blackboard by midnight Monday November 20, 2017 and bring a printout of the same to class Tuesday

Screen shot of output to monitor

Screen shot of output text file

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!