Consider a class that keeps track of the sales of an item. An object of this class
Question:
• Number sold
• Total sales
• Total discounts
• Cost per item
• Bulk quantity
• Bulk discount percentage
And the following method:
• registerSale (n) records the sale of n items. It 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.
Implement the class in Java
Write some Java statements that test the class.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 84% (13 reviews)
public class ItemSales private int numberSold private double totalSales private double totalDiscounts private double costPerItem private int bulkQuant...View the full answer
Answered By
JAPHETH KOGEI
Hi there. I'm here to assist you to score the highest marks on your assignments and homework. My areas of specialisation are:
Auditing, Financial Accounting, Macroeconomics, Monetary-economics, Business-administration, Advanced-accounting, Corporate Finance, Professional-accounting-ethics, Corporate governance, Financial-risk-analysis, Financial-budgeting, Corporate-social-responsibility, Statistics, Business management, logic, Critical thinking,
So, I look forward to helping you solve your academic problem.
I enjoy teaching and tutoring university and high school students. During my free time, I also read books on motivation, leadership, comedy, emotional intelligence, critical thinking, nature, human nature, innovation, persuasion, performance, negotiations, goals, power, time management, wealth, debates, sales, and finance. Additionally, I am a panellist on an FM radio program on Sunday mornings where we discuss current affairs.
I travel three times a year either to the USA, Europe and around Africa.
As a university student in the USA, I enjoyed interacting with people from different cultures and ethnic groups. Together with friends, we travelled widely in the USA and in Europe (UK, France, Denmark, Germany, Turkey, etc).
So, I look forward to tutoring you. I believe that it will be exciting to meet them.
3.00+
2+ Reviews
10+ Question Solved
Related Book For
Question Posted:
Students also viewed these Computer Sciences questions
-
Consider the following relations for a database that keeps track of business trips of salespersons in a sales office: SALESPERSON (SSN, Name, Start_Year, Dept_No) TRIP (SSN, From_City, To_City,...
-
Consider the following relations for a database that keeps track of student enrollment in courses and the books adopted for each course: STUDENT (SSN, Name, Major, Bdate) COURSE (Course#, Quarter,...
-
The National Football League (NFL) is the biggest business in sports. Established in 1920, the NFL sets the standard for a successful profit-making sports league. It has been called one of America's...
-
For each of the following, indicate whether the item would be reported on the balance sheet (B/S), reported on the income statement (I/S), or not shown in the financial statements (Not) and whether...
-
The beginning inventory and data on purchases and sales for a three-month period are shown in Problem 7-1B. Instructions 1. Record the inventory, purchases, and cost of merchandise sold data in a...
-
Reporting Earnings per Share Disclosures Siera Inc had 350,000 shares of no par common stock outstanding throughout 2020 that declared and pad dividends of $50.000 in 2020. The company also had...
-
The valuation of stock is at higher price in absorption costing as compared to marginal costing.
-
Carla Hilton is a realtor. She organized the business as a corporation on December 16, 2013. The business received $55,000 cash from Hilton and issued common stock. Consider the following facts as of...
-
please answer 9,10,11,12 and 13. please show work 9. At a sales volume of 25 units the average cost is $200 per unit and the variable cost is $6 per unit. Assuming a linear cost behavior pattern, if...
-
A business issued a 60-day, 9% note for $61,000 to a creditor on account. Illustrate the effects on the accounts and financial statements of recording (a) the issuance of the note and (b) the payment...
-
How does the navigation model differ from the interaction model?
-
The following table represents the addresses and contents (using hexadecimal notation) of some cells in a machine's main memory. Starting with this memory arrangement, follow the sequence of...
-
You have followed up on people who received your catalog mailing. You found that 4% ordered the hat and 6% ordered the mittens. Given that they ordered the hat, 55% also ordered the mittens. a. What...
-
Below are incomplete financial statements for Hurricane, Incorporated Required: Calculate the missing amounts. Complete this question by entering your answers in the tabs below. Income Statement Stmt...
-
TBTF Incorporated purchased equipment on May 1, 2021. The company depreciates its equipment using the double-declining balance method. Other information pertaining to the equipment purchased by TBTF...
-
Coco Ltd. manufactures milk and dark chocolate blocks. Below is the information relating to each type of chocolate. Milk Chocolate Selling price per unit $6 Variable cost per unit $3 Sales mix 4 Dark...
-
Data related to 2018 operations for Constaga Products, a manufacturer of sewing machines: Sales volume 5,000 units Sales price $300.00 per unit Variable production costs Direct materials 75.00 per...
-
6. (20 points) Sections 3.1-3.5, 3.7 Differentiate the following functions, state the regions where the functions are analytic. a. cos(e*) b. 1 ez +1 c. Log (z+1) (Hint: To find where it is analytic,...
-
A laboratory high vacuum system is capable of evacuating a vessel to the point that the amount of gas remaining is 5.0 x 10 9 molecules per cubic meter. What is the residual pressure in pascals?
-
General Electric Capital, a division of General Electric, uses long-term debt extensively. In a recent year, GE Capital issued $11 billion in long-term debt to investors, then within days filed legal...
-
ABC Company engaged in the following transaction in October 2 0 1 7 Oct 7 Sold Merchandise on credit to L Barrett $ 6 0 0 0 8 Purchased merchandise on credit from Bennett Company $ 1 2 , 0 0 0 . 9...
-
Lime Corporation, with E & P of $500,000, distributes land (worth $300,000, adjusted basis of $350,000) to Harry, its sole shareholder. The land is subject to a liability of $120,000, which Harry...
-
A comic store began operations in 2018 and, although it is incorporated as a limited liability company, it decided to be taxed as a corporation. In its first year, the comic store broke even. In...
Study smarter with the SolutionInn App