Question: Build a basic C++ application that will determine the total amount of cash, in dollars, within a piggy bank that contains only quarters. The application

Build a basic C++ application that will determine the total amount of cash, in dollars, within a piggy bank that contains only quarters. The application will perform a basic calculation and provide concatenated output with variable values embedded.

Be sure to name all variables and constants properly as per the style guide

You must include complete program documentation:

Block comment at the top of your code with Application Author, Application Name, Date of Creation, and a detailed Description

Single line comments describing each variable/constant

Block comments calling attention to your processing/output sections

Other single line comments as necessary

Declare a variable of an appropriate data type with an appropriate name to store a whole number value for the number of coins in your piggy bank. Initialize this variable with any allowable value of your choosing.

Declare a variable of an appropriate data type with an appropriate name to store a decimal value for the total money in your piggy bank.

Declare a constant of an appropriate data type with an appropriate name to store the floating point value of a quarter in cents.

Perform a calculation using your variables and constant that will determine the total amount of cash in the piggy bank.

Output the total number of quarters on one line, and the total cash on another line. Each line of output should have a prompting label, followed by the colon character and a space, followed by the relevant value of a variable.

You are only permitted to use a single line of code for the cout statement.

Prompt the user to press any key, and then exit the application.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!