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

  Method that reflects overloading

Example of a method that reflects overloading, and one that reflects polymorphism

  Finding java code error

Indicate in the given code segment if an error occurs. If so, point to whether it is syntax, runtime or logic and how you would fix it.

  Java program using the net beans ide

For this Assignment, you will update an existing Java program using the NetBeans IDE. You will use the NetBeans Integrated Development Environment to make changes to an existing NetBeans Java Project.

  Promgraming 1 1 there are many different concepts

1. 1 there are many different concepts associated with oop object-oriented programming like class

  Bulloil company is planning a large pipeline from east to

bulloil company is planning a large pipeline from east to west x-axis across its oil fieldbullthe field has n

  Write a program to play a variation of the game

Roll two dice. Each die has six faces representing values 1, 1, ..., and 6. Check the sum of the two dice. If the sum is 2, 3, or 12 you lose; if the sum is 7 or 11, you win. If the sum is another value (4,5,6,8,9, or 10) a point is established.

  Output the number of vowels

Prompt the user to enter a string, and using a loop, count and output the number of vowels, and consonants the string contains. (You have to find methods from class.)

  Information management with computing machines

1. The members of the first professional group devoted to information management with computing machines were known as:

  Design and implement an applet called circles

Design and implement an applet called Circles that draws 50 circles of random diameter in random locations. If the diameter of a circle is less than a certain value, the circle is ?lled with the color yellow.

  Java application to carry out additions and subtractions

Design a Java application to carry out additions and subtractions for numbers of any length. A number is represented as an object which includes a sign and two strings for the whole and decimal parts of the number.

  Convert the while loop

Convert the while loop in the following code segment to a do-while loop

  Calculate and display the mortgage payment amount

Change request7RequestorNinfa Pendleton - Rapid City, SDDescriptionWrite the program in Java (with a graphical user interface) and have it calculate and display the mortgage payment amount from user input of the amount of the mortgage

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