Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C + + Assignment # 2 1 0 0 points Due Date: Tuesday Jan. 3 0 1 1 : 5 9 pm ( nothing late

C++ Assignment #2100 points
Due Date: Tuesday Jan. 3011:59pm (nothing late accepted)
You are to write a C++ program that calculates a Credit Card balance. You will have three charges against the credit card and one payment. The charges will be added to the beginning credit card balance and the payment will be subtracted from the balance.
You are to "assign" all data. You are NOT to read anything from the keyboard. You may makeup any data you like. Your variable names you define MUST be meaningful. For example, you could define the first charge as "charge1", but NOT "c1".
(Be sure to download the sample code stored with Class notes #1. These samples are very similar to what is meeded in thas assignment)
Code the program using the steps below:
Define all of your variable names at the beginning of your code. Please note that I want the definition statements separate from the assignment statements.
Assign the beginning balance of the credit card to the double variable you defined
Assign a first charge amount to the double variable you defined
Assign a second charge amount to the double variable you defined
Assign a third charge amount to the double variable you defined
Assign a payment amount to the double variable you defined
Calculate the final credit card balance as the beginning balance plus the three charge amount minus the payment amount
Print the beginning credit card balance
Print the first charge amount
10.Print the second charge amount
11.Print the third charge amount
12.Print the payment amount
Print the final credit card balance
Please note that all data is to be printed with a label, for example:
cout "Beginning credit card Balance = begin endl);
image text in transcribed

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

1 2 3 Data Base Techniques

Authors: Dick Andersen

1st Edition

0880223464, 978-0880223461

More Books

Students also viewed these Databases questions