0% found this document useful (1 vote)
49 views

Module 6 Program Assignment

This document provides the requirements for a C++ program that calculates credit card interest using functions. The program will take input for a customer's name, credit card number, balance, payment, and billing cycle dates. It will then calculate the average daily balance, annual percentage rate (APR), and interest charge using defined formulas. The program must utilize separate functions to read input, calculate values, determine the APR, and output results.

Uploaded by

chocolatedoggy12
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
49 views

Module 6 Program Assignment

This document provides the requirements for a C++ program that calculates credit card interest using functions. The program will take input for a customer's name, credit card number, balance, payment, and billing cycle dates. It will then calculate the average daily balance, annual percentage rate (APR), and interest charge using defined formulas. The program must utilize separate functions to read input, calculate values, determine the APR, and output results.

Uploaded by

chocolatedoggy12
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

IT210 Business Applications with C++

Program Assignment
Credit Card Interest Calculator
Purpose
Write a C++ program with functions that will calculate the interest on one or more customers credit cards unpaid
balances using the average daily balance.
Program Input
The standard input for this program which will also be echoed, is:
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)

Calculate the average daily balance, interest, and APR based on the formulas given below:

averageDailyBalance = (netBalance * d1 paynment * d2)/d1

interest = averageDailyBalance *APR/(100*12)

where APR depends on the average daily balance as shown below

averageDailyBalance <$100 APR = 5%


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

Your program will utilize functions to:


1. Read first and last name (void function)
2. Read credit card number (value returning function)
a. Use a void function to verify read credit card number is correct
3. Read the balance shown in bill (netBalance), payment made (payment), days in billing cycle (d1), and number days
payment made before billing cycle (d2) using a void function
4. Calculate the average daily balance using a void function
5. Determine the APR using a value returning function
6. Determine the interest using a void function
7. Output the results using a void function

Your programs input/output must be identical to Module 5 Program Assignment (1) except you will be using
functions. It is assumed that you will be displaying the descriptive header using a void function as shown in class
.

Submission Requirements:
1. Please submit the program on Blackboard

You might also like