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

(Answered) : Supply Chain Management 6e Chopra Meindl Chapter 2 Supply Chain Performance Achieving Stra Q31765258(Answered) : Supply Chain Management 6e Chopra Meindl Chapter 2 Supply Chain Performance Achieving Stra Q31765258

<p>Supply Chain Management, 6e (Chopra/Meindl) Chapter 2 SupplyChain Performance: Achieving Strategic Fit and Scope</p><p><strong>Question1: Explain the following with the help ofdiagram:</strong></p><p><strong>A. Zone of strategic fit.</strong></p><p><img alt="Zone of Strategic Fit Responsive