Usir X C Cre X Pro x C Cre x C Cre x b Ans x C Onli x G Cre x a Sho x 6 202 X ME X Bb Blac X ME X O File | /home/chronos/u-9fc763568ce5f82c2f06e33f52ce53e32aecca1e/MyFiles/Downloads/Programming%20lnstructions%20_Dr%20Castillo_curr(2)%2. Q Programming Instructions_Dr Castillo_curr(2) (1).pdf 48 / 53 PROGRAMMING AND MARK UP LANGUAGES UNIT B: C++ 4. Create a C++ program, CREDITCARDBALANCE, to calculate the balance due on a credit card and the penalty to be added to your next month bill, based on the following data: balance The balance: The amount of payment : payment The interest rate : interest_rate start Declare const double interest rate = 0.025 double creditCardBalance double payment Double balance Double total_next_cycle Double penalty = 0.0 Enter creditCardBalance Enter payment Calculate new balance = creditCardBalance - payment yes Balance>0 10:34 C Usir x C Cre X O Pro X C Cre X C Cre x b Ans X Oni G Cre X a Sho X 6 202 X ME X Вы Blac ME X O File /home/chronos/u-9fc763568ce5f82c2f06e33f52ce53e32aeccale/MyFiles/Downloads/Programming%20lnstructions%20_Dr%20Castillo_curr(2)%2. Q Enter payment Calculate new balance = creditCardBalance - payment yes Balance>0 Penalty = balance INTEREST_RATE Output penalty, total_next_cycle = balance + penalty Pause and return Page 48 of 53 Dr. Chris Castillo - All rights reserved. Duplication a/o Reproduction prohibited. Protected under copyright laws. PROGRAMMING AND MARK UP LANGUAGES UNIT B: C++ 5. reate a C++ program GEO_SHAPES to calculate areas of geometric figures by following this 10:35 Σ

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Usir X
C Cre X
Pro x
C Cre x C Cre x
b Ans x
C Onli x G Cre x a Sho x
6 202 X
ME X
Bb Blac X
ME X
O File | /home/chronos/u-9fc763568ce5f82c2f06e33f52ce53e32aecca1e/MyFiles/Downloads/Programming%20lnstructions%20_Dr%20Castillo_curr(2)%2. Q
Programming Instructions_Dr Castillo_curr(2) (1).pdf
48 / 53
PROGRAMMING AND MARK UP LANGUAGES
UNIT B: C++
4. Create a C++ program, CREDITCARDBALANCE, to calculate the balance due on a credit card
and the penalty to be added to your next month bill, based on the following data:
balance
The balance:
The amount of payment :
payment
The interest rate :
interest_rate
start
Declare
const double interest rate = 0.025
double creditCardBalance
double payment
Double balance
Double total_next_cycle
Double penalty = 0.0
Enter
creditCardBalance
Enter payment
Calculate new
balance = creditCardBalance - payment
yes
Balance>0
10:34
Transcribed Image Text:Usir X C Cre X Pro x C Cre x C Cre x b Ans x C Onli x G Cre x a Sho x 6 202 X ME X Bb Blac X ME X O File | /home/chronos/u-9fc763568ce5f82c2f06e33f52ce53e32aecca1e/MyFiles/Downloads/Programming%20lnstructions%20_Dr%20Castillo_curr(2)%2. Q Programming Instructions_Dr Castillo_curr(2) (1).pdf 48 / 53 PROGRAMMING AND MARK UP LANGUAGES UNIT B: C++ 4. Create a C++ program, CREDITCARDBALANCE, to calculate the balance due on a credit card and the penalty to be added to your next month bill, based on the following data: balance The balance: The amount of payment : payment The interest rate : interest_rate start Declare const double interest rate = 0.025 double creditCardBalance double payment Double balance Double total_next_cycle Double penalty = 0.0 Enter creditCardBalance Enter payment Calculate new balance = creditCardBalance - payment yes Balance>0 10:34
C Usir x
C Cre X
O Pro X
C Cre X
C Cre x
b Ans X
Oni
G Cre X
a Sho X
6 202 X
ME X
Вы Blac
ME X
O File
/home/chronos/u-9fc763568ce5f82c2f06e33f52ce53e32aeccale/MyFiles/Downloads/Programming%20lnstructions%20_Dr%20Castillo_curr(2)%2. Q
Enter payment
Calculate new
balance = creditCardBalance - payment
yes
Balance>0
Penalty = balance
INTEREST_RATE
Output penalty, total_next_cycle =
balance + penalty
Pause and
return
Page 48 of 53
Dr. Chris Castillo - All rights reserved. Duplication a/o Reproduction prohibited. Protected under copyright laws.
PROGRAMMING AND MARK UP LANGUAGES
UNIT B: C++
5. reate a C++ program GEO_SHAPES to calculate areas of geometric figures by following this
10:35
Σ
Transcribed Image Text:C Usir x C Cre X O Pro X C Cre X C Cre x b Ans X Oni G Cre X a Sho X 6 202 X ME X Вы Blac ME X O File /home/chronos/u-9fc763568ce5f82c2f06e33f52ce53e32aeccale/MyFiles/Downloads/Programming%20lnstructions%20_Dr%20Castillo_curr(2)%2. Q Enter payment Calculate new balance = creditCardBalance - payment yes Balance>0 Penalty = balance INTEREST_RATE Output penalty, total_next_cycle = balance + penalty Pause and return Page 48 of 53 Dr. Chris Castillo - All rights reserved. Duplication a/o Reproduction prohibited. Protected under copyright laws. PROGRAMMING AND MARK UP LANGUAGES UNIT B: C++ 5. reate a C++ program GEO_SHAPES to calculate areas of geometric figures by following this 10:35 Σ
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education