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

  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