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

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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