Create a class-how to cash goods-give change to customers

Assignment Help Programming Languages
Reference no: EM1367016

Q1) Write a class called Cashier that directs a cashier how to cash goods and give change to customers. The typical cashier operations are as follows:

(a) Enter the name of and price of each item in the cash registering machine.
(b) The machine totals the cost of the items as they are entered.
(c) The customer tenders an amount to pay for the goods (We assume the amount covers the total).
(d) The cash machine computes:

i. The number of items purchased

ii. The total amount of purchase

iii. The average price of each item

iv. The number of coin denominations that the customer should receive. That is, the number of silver dollars, quarters, dimes, nickels, and cents the customer should receive in turn. In addition.

Reference no: EM1367016

Questions Cloud

Determining sources of economic profit : How do the concepts of accounting profit and economic profit differ? Why is economic profit smaller than accounting profit? What are the three basic sources of the economic profit? Classify each of following according to those sources:
Calculate the current market price of bond : Omega or Alpha Limited sold a Preferred stock issue three years ago. This Preferred stock has a  maturity twenty years from its issue date and pays a $3.00 yearly dividend
Healthcare industry through three levels of care : A patient consists of a brain tumour and you must trace his or her interaction with the Healthcare industry via the three levels of care.
Stockpiled lobster-price elasticity : Describe the effect of increase from 1998-1999. How would the increase in demand affect the price? How would the price effect depend upon the price elasticity of supply? Please describe how. (Explain the illustration instead of actually drawing it)
Create a class-how to cash goods-give change to customers : Write class called Cashier that directs a cashier how to cash goods and give change to customers. Typical cashier operations are as follows.
Calculate the current value of the bond : Due to a number of lawsuits related to toxic wastes, major chemical producre has recently experienced a market revaluation. The company has a bond issue outstanding with fifteen years to maturity and a coupon rate of 8 percent,
Demand and supply of cigarettes : What are some ways public policymakers can reduce demand of cigarettes (shift of the demand curve)? Assume the government decides to implement the tax on cigarette manufacturers in order to raise the price of cigarettes. How much does the amount of..
Create inheritance hierarchy for customer-s bank account : Create inheritance hierarchy which a bank might use to represent customer's bank accounts. All customers at this bank can deposit money into their accounts and withdraw money from accounts.
Calculating breakeven point and operating leverage : Schweser Satellites Corporation manufactures satellite earth stations that sell for $100,000 each. The company's fixed costs, F, are $2 million; 50 earth stations are produced and sold every year;

Reviews

Write a Review

Programming Languages Questions & Answers

  Develop a program to input miles driven and gallons for tank

Develop a program in C++ that will input the miles driven and gallons used (both as integers) for each tankful. The program should calculate and display the miles per gallon obtained for each tankful.

  Program to prompt a user for hourly pay rate

Create program called "calculatePay" which will prompt user for their hourly pay rate.

  Issues into account for collecting user data via forms

In addition to making our forms easy to use we need to consider user privacy and the use of data. What are some of the issues which you believe you require to take into account for collecting user data via forms?

  Program using ten radio buttons to show five states

It is program using 10 Radio Buttons to show 5 States and 5 Capitals to user's interface. Also, there is text box to print "Correct" and "Incorrect" when Sate and the Capital is a correct match.

  Write program using to take input two integers by while loop

Write a program which uses while loops to perform following steps: Prompts user to input two integers: firstNum and secondNum. (firstNum must be less than secondNum).

  Explaining variable in an arrays of ints

Assume that variable A is an arrays of ints. Consider the following code segment.

  Write program using while loop to output squares of integers

Write a program that uses while loop to perform the following steps:Output the sum of all the even numbers between firstnum and secondnum inclusive. Output all the numbers and their squares between firstnum and secondnum inclusive.

  Design logic for application for company to store breakdown

Design the logic for an application for a company that wants a report containing a breakdown of payroll by department. Input includes each employee's last name.

  Explaining risk in fixed-price contracts

It is recognized that fixed-price contracts offer obvious advantages to buyer organizations because they transfer almost all of the risk to the contractor.

  Program that prompts user to enter five test scores

Write the algorithm for a program that prompts the user to enter five test scores.

  Design program to ecode message using caesar cypher

Design a program which decodes messages. Messages will be encoded using Caesar cypher, with each letter being decoded by replacing it with previous letter in alphabet.

  Design program which models worms behavior

Design a program that models the worms behavior in the following scenario: A worm is moving toward an apple. Each time it moves, the worm cuts the distance between itself and the apple.

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