Course Solutions Uncategorized (Solved) : Code Java Program Need Uml Diagram Sourcecode Runretailjava Import Javautillogginglevel I Q33140920 . . . .

(Solved) : Code Java Program Need Uml Diagram Sourcecode Runretailjava Import Javautillogginglevel I Q33140920 . . . .

 

Below is the code for a Java program. What I need is the UMLdiagram of it.

SOurceCode:

RunRetail.java

import java.util.logging.Level;
import java.util.logging.Logger;

public class RunRetail {
  
public static void main(String[] args){
  
RetailItem jacket = new RetailItem();
makeRetail(jacket, “Jacket”, 12, -59.95);
try {
jacket.verifyPrice(jacket.getPrice());
} catch (Exception ex) {
System.out.println(ex.getMessage());
}
try {
jacket.verifyUnits(jacket.getUnitsOnHand());
} catch (Exception ex) {
System.out.println(ex.getMessage());
}
  
RetailItem jeans = new RetailItem();
makeRetail(jeans, “Designer Jeans”, 40, 34.95);
try {
jeans.verifyPrice(jeans.getPrice());
} catch (Exception ex) {
System.out.println(ex.getMessage());
}
try {
jeans.verifyUnits(jeans.getUnitsOnHand());
} catch (Exception ex) {
System.out.println(ex.getMessage());
}
  
RetailItem shirt = new RetailItem();
makeRetail(shirt, “Shirt”, -20, 24.95);
try {
shirt.verifyPrice(shirt.getPrice());
} catch (Exception ex) {
System.out.println(ex.getMessage());
}
try {
shirt.verifyUnits(shirt.getUnitsOnHand());
} catch (Exception ex) {
System.out.println(ex.getMessage());
}

  
}
private static void makeRetail(RetailItem retail, Stringdescription, int
unitsOnHand, double price){
retail.setDescription(description);
retail.setUnitsOnHand(unitsOnHand);
retail.setPrice(price);
  
System.out.println(retail.getDescription() + ” “
+ retail.getUnitsOnHand() + ” ” + retail.getPrice());
}
}

RetailItem.java

public class RetailItem{
private String description;
private int unitsOnHand;
private

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Solved) : Chairman Board Directors Nuwave Technology Vegas Attending Company S Annual Meeting Time Q Q32431478 . . . .(Solved) : Chairman Board Directors Nuwave Technology Vegas Attending Company S Annual Meeting Time Q Q32431478 . . . .

<br/><img src="https://media.cheggcdn.com/media%2F5a9%2F5a94dfec-7dda-4c19-92ec-1e3e2367f920%2Fimage.png" alt="You are the chairman of the board of directors of NuWave Technology. You are in Vegas attending the companys annual meeting and it is now time for the