Write a class named retailitem that holds data

Assignment Help JAVA Programming
Reference no: EM13876437

Write a class named RetailItem that holds data about an item in a retail store. The class should have the following member variables:
description-a string that holds a brief description of the item.
unitsOnHand-an int that holds the number of units currently in inventory
price- a double that holds the items retail price

write a constructor that accepts arguments for each member variable, appropriate mutator functions that store values in these member variables, and accessor functions that return the values in these member variables. Once you have written the class, write a separate program that creates 3 RetailItem objects and stores the following data in them.
Description Units On Hand Price
Item#1 Jacket 12 59.95
Item#2 Designer Jeans 40 34.95
Item#3 Shirt 20 24.95  

Reference no: EM13876437

Questions Cloud

Prepare a budgeted income statement for bk consulting : BK Consulting is a management consulting firm.
What is the stocks value per share : Smith Technologies is expected to generate $175 million in free cash flow next year, and FCF is expected to grow at a constant rate of 6% per year indefinitely. Smith has no debt or preferred stock, and its WACC is 12%. If smith has 65 million shares..
The employee would be paid : Pickard Company pays its sales staff a base salary of $4,500 a month plus a $3.00 commission for each product sold. If a salesperson sells 800 units of product in January, the employee would be paid:
What is the NPV of this investment : Muncy, Inc., is looking to add a new machine at a cost of $4,133,250. The company expects this equipment will lead to cash flows of $820,322, $863,275, $937,250, $1,017,610, $1,212,960, and $1,225,000 over the next six years. If the appropriate disco..
Write a class named retailitem that holds data : Write a class named RetailItem that holds data about an item in a retail store. The class should have the following member variables:description-a string that holds a brief description of the item.unitsOnHand-an int that holds the number of units cur..
What is the bonds price per face value : Watters Umbrella Corp. issued 15-year bond two years ago at a coupon rate of 6.8 percent. The bonds make semi annual payments. What is the bonds price per $100 face value? If these bonds currently sell for 105 percent of par value, what is the YTM?
Write a java program to list odd numbers : Q1:Scenario: Write a Java program to list Odd numbers between 1 to any user given input number.Typical run of the program
Stock of Crisp Trucking using two-factor APT model : An analyst has modeled the stock of Crisp Trucking using a two-factor APT model. The risk-free rate is 6%, the expected return on the first factor (r1) is 12%, and the expected return on the second factor (r2) is 8%. If Bi1= 0.7 and Bi2= 0.9, what is..
Calculate the price of bond : Microhard has issued a bond with the following characteristics: Calculate the price of this bond if the YTM is 7%

Reviews

Write a Review

JAVA Programming Questions & Answers

  How are they used in javadoc comments

What is a tag and how are they used in Javadoc comments?

  Create a java class called samearraysexception

Create a Java class called SameArraysException that extends the Exception class.

  Design an application to take and process a pizza order

Design an application to take and process a pizza order. The user should be able to make pizza order choices from list boxes, and the application should display the order price.

  Write a program cmsc401 java

Write a program cmsc401.java that receives a sequence of commands (from 1 up to 10000 commands)

  Write an interface for an abstract method

Write an interface, PointingDevice, containing:  an abstract method, getXCoord that returns an int and an abstract method, getYCoord that returns an int.

  Write a piece of code that prints the values

Write a piece of code that prints the values requested in each part, given these variables:

  Each instance of this class will represent one book a book

each instance of this class will represent one book. a book consists of the title of the book a string and the authors.

  Write a java application that allows the user to read

Write a java application that allows the user to read, validate, store, display, sort and search the account number and balance for N bank customers.

  Prepare a basic code to do the followingwrite a program

prepare a basic code to do the following.write a program that shows the current time and date evaluated from the

  Create an application in which a user can enter a phone book

Create an application in which a user can enter a phone book entry, including the subsequent elements: First Name, Last Name, Phone Number, email address

  Difference between sequential access and random access

What is the difference between sequential access and random access? What are BufferedInput/OutputStreams and why are they used? Write some Java code to illustrate how to create a BufferedInputStream

  You are a mighty warrior and armed with your trusty bow and

you are a mighty warrior and armed with your trusty bow and 3 arrows you enter the caves in search of the mighty

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