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

  Write a shell script to read from the keyboard

Write a shell script called poject. 21 to read from the keyboard and display on the monitor first name, last name and age if the age is less than 50. If the age is greater than 50, it will display your are over 5 instead of the age.

  Development of computer systems track citizens

To help counter terrorism, many countries are planning and development of computer systems that track large number of citizens and their actions.

  Card generator program by linked list

Address Book-Card Generator Program Using a Linked List. This program will have names and addresses saved in a linked list. In addition, a birthday and anniversary date will be saved with each record.

  Computing first seven values of fibonacci number sequence

Write a program that uses a loop to compute the first seven values of the Fibonacci number sequence.

  Program display meal cost and tax amount

The program should then display the meal cost,taxAmt, and total bill respectively and use named constants Tax and tip to initialize the tax and the tip values.

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Program to calculate the electricity bill

Write a program to calculate the electricity bill. The rates of electricity per unit are as follows: If the units consumed are equal or less than 100, then the cost is Rs 8/- per unit.

  Develop logic for program to allow to enter household size

Develop the logic for a program that allows a user to enter each household size and determine the mean and median household size in marengo.

  Writing script for fahrenheit in celsius temperature

Use functions to write script which enables user to enter either Fahrenheit temperature and display Celsius equivalent or enter Celsius temperature.

  Methods to declare and initialize one dimensional arraay

What is an array? Show different methods to declare and initialize one dimensional array. Draw how an integer array of 6 elements having base address 5001 is stored in memory.

  Write a program to print average grade of student

Write a program that read the grades.txt file and then prints the average grade of male and female students and the number of passed students by using the functions.

  Write a driver program to test class

Create a class called Rational for performing arithmetic with fractions. Write a driver program to test your class. Use integer variables to represent the private instance variables of the class-the numerator and the denominator.

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