Programming I COMP 150
Popular in Course
Popular in ComputerScienence
This 1 page Class Notes was uploaded by Ashlynn Bergstrom on Monday October 12, 2015. The Class Notes belongs to COMP 150 at Harding University taught by Staff in Fall. Since its upload, it has received 13 views. For similar materials see /class/222132/comp-150-harding-university in ComputerScienence at Harding University.
Reviews for Programming I
Report this Material
What is Karma?
Karma is the currency of StudySoup.
You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!
Date Created: 10/12/15
Program 1 Credit Card Comp 150170 50 Points Write a flowchart and C program which will calculate the monthly finance charge and monthly balance of a credit card given the initial balance the credit cards APR the monthly amount charged to the card and the monthly payment made on the card The program will produce a table like the one below stopping once the credit card has been paid off balance less than or equal to 0 The total of all the finance charges will be displayed after the table The finance charge FC is computed as the account balance times the MPR before the months charges or payments are made Your program should produce output in the exact same format as the example below same spacing spelling capitalization etc Initial balance 1000 Interest rate 125 Monthly charge 50 Monthly payment 250 Month FC Balance lO42 8l042 2 844 6l886 3 645 42530 4 443 22974 5 239 32l3 6 033 7l6754 Total finance charges 3246 The user may enter any positive dollar amount interest rate monthly charge or monthly payment Make sure your program works with all acceptable input there shouldn t be any infinite loops Don t worry about negative values being entered To create the aligned columns you will need to use the setw function in the iomaniph library There are 7 spaces between quotMonthquot and quotFC and 5 spaces between quotFC and quotBalancequot f for some reason the credit card balance cannot be paid off your program should report this and not produce a table Turn in 1 flowchart matching your program 2 print out of your documented program Submit your program to Easel httpcshardingedueasel before class on the due date Make sure your flowchart and program matchup exactly Half of the points will be based on how well the program runs and howthe program is written good variable names proper indentation etc The other half will be based on how correctly the flow chart and code matchup
Are you sure you want to buy this material for
You're already Subscribed!
Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'