Find Us On: Facebook Twitter Rss Feed Blog
Need To Register? Sign Up Login

Assignment 3

lordransom
lordransom 


Concepts Utilized in this Project • UML diagrams • Menu driven program • Java fundamentals, including decision structures, loops • Constructors, Overloaded constructors • toString method • Formatting output with DecimalFormat • Random Class • Java objects & classes Attachments Tags Clarifications

Answers

Amazon demo

twillenbring
twillenbring 



Does everything in the handout. There is even a UML of the Book class generated inside an eclipse plugin called ObjectAid. Only thing I didn't do was the write up of what you learned.

Let me know if you have questions
Attachments
AmazonDemo.zip (2 K) Download

Preview
String hardCover = " "; price = Double.parseDouble(JOptionPane.showInputDialog(null, "Enter Book Price: ")); String hcAnswer = JOptionPane.showInputDialog("Is this Hardcover (y or n)? "); if(hcAnswer.toLowerCase().charAt(0) != 'y'){ hardCover = "no"; }else { hardCover = "yes"; } book = new Book(title, author, price, hardCover);

Preview
ratingSum = 0; private double price; private String hardCover; private final double startPrice = 1.0; private final double endPrice = 10.0; public Book(String title, String author){ this.title = title; this.author = author; double random = new Random().nextDouble(); price = startPrice

Screenshots
Purchase Answer