Write a program that that keeps track of sales of an item

Assignment Help JAVA Programming
Reference no: EM131062138

Write a program that considers a class that keeps track of the sales of an item. An object of this class will have the following attributes:

Number sold

Total sales

Total discounts

Cost per item

Bulk quantity

Bulk discount percentage

And, the following methods:

registerSale(n) records the sale of n items. If n is larger than the bulk quantity, the cost per item will be reduced by the bulk discount.

displaySales displays the number sold, the total sales, and total discount

Design and implement the class in JavaTM.

Use the appropriate public or private modifiers for the methods and attributes.

Write Java statements that test the class.

Reference no: EM131062138

Questions Cloud

Do think these comments are representative of most consumer : Almost all comments on social media are made by a small percentage of consumers. Do you think these comments are representative of most consumers and what they think of a brand? Why or why not? Further, do you use consumer-generated reviews in mak..
Outlet store wants to forecast chocolate demand : 1. The owner of a chocolate outlet store wants to forecast chocolate demand. Demand for the preceding four years is shown in the following table:
Determine the minimum required thickness tmin : A cylindrical tank with diameter d = 18 in. is subjected to internal gas pressure p = 450 psi. The tank is constructed of steel sections that are welded circumferentially (see figure). The heads of the tank are hemispherical. The allowable tensile..
Conversational english for effective communication : To evaluate students', ability to write simple and conversational English for effective communication. It will test students both subjectively and objectively.
Write a program that that keeps track of sales of an item : Write a program that considers a class that keeps track of the sales of an item. An object of this class will have the attributes.
Advantages and disadvantages of approach to market entry : 1. Identify a foreign company that has expanded internationally using the ‘strategic joint venture model or alliance'. Identify and discuss the key advantages and disadvantages of this approach to market entry.
Develop a detailed tactical marketing mix strategy : Develop a detailed tactical marketing mix strategy (product, price, promotion, place, and service).
Determine the following quantities for the cylindrical part : A pressurized steel tank is constructed with a helical weld that makes an angle α = 55° with the longitudinal axis (see figure). The tank has radius r = 0.6 m, wall thickness t = 18 mm, and internal pressure p = 2.8 MPa. Also, the steel has modulu..
Create the patientper table with the patientid columns : Create the PATIENTPER table with the following columns PatientID, FirstName, LastName, Address, City, State, ZipCode, Phone, Email and MemberID.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Write program to keep track of employees pays per quarter

Write a program to keep track of their employees' pays per each quarter. There are two types of employees: Managers and SalesReps.

  Write down a java program that implements a stack of

write a java program which implements a stack of integers. an integer should only be pushed into the stack if it is

  Productexception class whose constructor

Create a ProductException class whose constructor receives a String that consists of a product number and price. Save the file as ProductException.java. Create a Product class with two fields, productNum and price. The Product constructor requires va..

  Javascript validation - cgi program

CGI mailer script form-mail.pl to your server's cgi-bin directory, and change the permissions on the script to make it executable - BMIS 310

  Project about the time-series data trend prediction

The coding part of the project and concerns with the implementation of a time-series prediction method that you either take from the literature or you have developed by yourself

  Consider the game matrix

Consider the following game in matrix form with two players. Payoffs for the row player Izzy are indicated first in each cell, and payoffs for the column player Jack are second.

  Write a program that converts number from binary to decimal

write a program that Converts a Number from Binary to Decimal  by using reading keyboard input.

  Code the given java application

Using NetBeans, code the following Java application, and run it on Command prompt (Terminal If Linux) with the argument "notepad" (or "gedit" if Linux).

  Prepare a method rearrange that takes a queue

Prepare a method rearrange that takes a queue of integers as a parameter and rearranges the order of the values so that all of the even values appear before the odd values and that otherwise preserves the original order of the list.

  Write a program that prompts for and accepts input of test

write a program that prompts for and accepts input of test ggrades that are integers between 0 and 100. For each numerical test grade,  program should display a corresponding letter grade

  Write a c program that accepts a month and day

Write a C program that accepts a month and day (for example, June 14) from the keyboard as input. Store this information in a string called date

  While loop to count down every odd number from 40 to 0

Uses a while loop to count down every odd number from 40 to 0, printing each off number down to zero, except the number 3 and 33

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