Create a coin counter machine program

Assignment Help C/C++ Programming
Reference no: EM132609299

Assignment

1. Create a coin counter machine program.

2. First, run, the program will ask for each denomination one at a time

3. After entering the number for each domination, at the end calculate the total for each domination and print it to the screen.

Example Output format
Coins                 Amount             Total
5¢                x10            $0.50
10¢                x5            $0.50
25¢                x2            $0.50
50¢                x1            $0.50
$1                x1            $1.00
$2                x1            $2.00

Denominations


10¢
25¢
50¢
$1
$2

A. use three classes
B. use methods
C. use arrays
D. use fields
E. -----------
F. use constructors
G. use objects
H. all program must be well documented
I. The fee is 15%
Z. Class1 = method calls, local var, objects // Class2 = objects, everything else

Assignment - 5M

4. Use the third class to calculate the total of all Denominations print the full *Example Output below

5. Class3 = any object

Example Output
Coins                 Amount             Total
5¢                x10            $0.05
10¢                x5            $0.50
25¢                x2            $0.50
50¢                x1            $0.50
$1                x1            $1.00
$2               

Number of coins 71
fee amount 88¢
Total value $5

Reference no: EM132609299

Questions Cloud

Leadership and management in complex systems : Our observations from the case study reading in the chapter material, Leadership and Management in Complex Systems research by Jager
What are the 3 important lessons learnt from google : Google car case study: what are the 3 important lessons learnt from Google car case study that can be applied to an organization
Estimate what is the price variance : What is the price variance?Budget cover: 2,000. Budget average check: $8. Actual covers: 2,100. Actual average check: $8.25.
Change and patch management : Analyze IT change management and patch management processes needed within organizations.
Create a coin counter machine program : Create a coin counter machine program and calculate the total for each domination and print it to the screen - program will ask for each denomination
Testing access control : Discuss the purpose of the security development life cycle and how it is used for testing security systems.
What is the journal entry for talbert inc : The increase in the prior year's income before tax as a result of this change is $237,300. The tax rate is 30%. What is the journal entry?
Discuss what is meant by business and financial risk : What is meant by business and financial risk. Suppose Firm A has greater business risk than Firm B. Is it true that Firm A has a higher cost of equity capital
Describe the purpose of the letter of audit inquiry : Describe the purpose of the letter of audit inquiry, who writes it, who it is addressed to, and the important inquiries that are made of the client's lawyer

Reviews

Write a Review

C/C++ Programming Questions & Answers

  We would like to use linear interpolation

Assume that we would like to use linear interpolation to determine the coefficient of lift for additional flight-path angles that are between -4 degrees and 21 degress. write a program that allows the user to enter the data for two points and a.

  The private members of yclass are public members of xclass

Suppose that a class employeeType is derived from the class personType. Give examples of data and function members that can be added to the class employeeType.

  Create a multi-threaded text file

Create a multi-threaded text file indexing command line application that scans text files and counts the occurrences of all the words in them

  Write a program to create two files

Write a C++ program to create two files named abc.txt which contains the text I love C++ Programming and def.txt which contains the text.

  Calculate the total cost of all the coffee bills

Write a function that displays the menu, prompts user for a choice, validates the choice and returns a valid option - Write a function that accepts a type

  Evaluate the circumference of a circle

Write a program that will call a function to calculate the area of a circle, and call another function to calculate the circumference of a circle.

  Build an application that can simulate a garden

CMSC 202 - Build an application that can simulate a garden complete with flowers, vegetables, and fruit trees. Each of these have a common parent - plant

  What benefits do programmers get from doing extra work

Discuss some reasons most programmers declare class data to be private and provide access to that data only through the use of accessor and mutator

  Create a program that uses the vanderwaals equation

Write a program that uses the VanderWaals equation of state and the perfect gas law to display in tabular form the relationship between the pressure and the volume of n moles of a gas at a constant absolute temperature, T, over a range of volumes.

  Implement a class to represent a matrix

Implement a class to represent a matrix. While doing this exercise, you are allowed only to use C++ primitive types and arrays. You may not use STL in your Matrix definition. You must use dynamic memory.

  Output of the given c++ code

What is the output of the given C++ code - You need to find out the output of the given code.

  Crane to unload ship

Two cranes can unload a ship together in 6 hours. The faster crane takes 5 hours less than the slower crane, if each were to unload the same ship alone. How long does it take for each crane to unload this ship?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd