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

  Create a credit approval application for retail store

You have been asked to create a credit approval application for retail store. To get approved for credit card customer must meet the following criteria: Should be 18 years of age or older

  Pseudocode for a program to solve mathematical problem

Pseudocode for a program to solve the following problem. A student borrows $3,000 at an interest rate 2% per month on the unpaid balance.

  Determine total cost of order-display it in alert dialog box

After you determine the total cost of the order (purchase plus shipping and handling), display it in an alert dialog box.

  Program to write variable declarations and function calls

Write a program whose main function is merely a collection of variable declarations and function calls. This program reads a text and outputs the letters, together with their counts.

  Pseudocode for linear search by using clrs3e style

Write pseudocode for linear search by using CLRS3e style used in, which scans through the sequence, looking for v.

  Write program to allow two users to play tic-tac-toe

Write a program that will allow two users to play tic-tac-toe. The program should ask for moves alternately from player X and player O.

  Design and implement program catches and handles exception

Design and implement a program that creates an exception class called StringTooLongException, designed to be thrown when a string is discovered that has too many characters in it.

  Create program to calculate amount of paint needed

Create a program to calculate the amount of paint needed to cover one side of a house with a sloped roof . Assume tha this house has a rectangular shape with a rectangular window .

  Designing navigation system for point-and-click system

Design a navigation system or menu allows Access to act like point-and-click system. Write down some of the kinds of navigation.

  Executive committee for alleviating it complexity

You are a consultant brought in by the executive committee to make recommendations for alleviating the "IT complexity" concerns of the executives at the company.

  Design program to calculate amount of money spend

Design a program that calculates the amount of money a person would earn over a period of time if his or her salary is one penny the first day, two pennies the second day.

  Programming problem

Programming Problem can be solved by a program that performs three basic tasks-Input Data, Process Data, and Output Results.

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