Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Flash XML Applications Use AS2 And AS3 To Create Photo Galleries Menus And Databases

Authors: Joachim Schnier

1st Edition

0240809173, 978-0240809175

More Books

Students also viewed these Databases questions