Shopping cart program

Create a program using classes that does the following using your NetBeans IDE and upload it here:

(1) Create two files to submit:

[url removed, login to view] - Class definition

[url removed, login to view] - Contains main() method

Build the ItemToPurchase class with the following specifications:

Private fields

String itemName - Initialized in default constructor to "none"

int itemPrice - Initialized in default constructor to 0

int itemQuantity - Initialized in default constructor to 0

Default constructor

Public member methods (mutators & accessors)

setName() & getName() (2 pts)

setPrice() & getPrice() (2 pts)

setQuantity() & getQuantity() (2 pts)

(2) In main(), prompt the user for two items and create two objects of the ItemToPurchase class. Before prompting for the second item, call [url removed, login to view](); to allow the user to input a new string. (2 pts)


Item 1

Enter the item name: Chocolate Chips

Enter the item price: 3

Enter the item quantity: 1

Item 2

Enter the item name: Bottled Water

Enter the item price: 1

Enter the item quantity: 10

(3) Add the costs of the two items together and output the total cost. (2 pts)



Chocolate Chips 1 @ $3 = $3

Bottled Water 10 @ $1 = $10

Total: $13

Skills: Java

See more: shopping cart web developer in uae, php shopping cart project quoted in indian rupee by freelancer, cube cart shopping cart, cart shopping cart features failures, powered cart shopping cart software, zen cart shopping cart blank page, cart shopping carts, create objects max life, mobile cart shopping portable, zen cart shopping cart error blank page, change page layout zen cart shopping site, create objects 3dsmax life, zen cart shopping site slow, cart shopping cart, qtvr create objects, auto ship program cart, smart cart shopping project, cart shopping php ajax, zen cart shopping cart hosts, zen cart shopping cart sidebox

About the Employer:
( 4 reviews ) providence, United States

Project ID: #12236953

Awarded to:


.............................. ,,,,,,,,,,,,,,,,,,,,,,,,,, everything discussed..................................

$15 USD in 1 day
(192 Reviews)

8 freelancers are bidding on average $39 for this job

$51 USD in 1 day
(591 Reviews)

Hi I have 3+ experience in web development. I did many job like this. I have strong knowledge of Mysql, Oracle, Database Design and I have also strong knowledge in languages like Java, JSP, PHP, Javascript, Boo More

$25 USD in 1 day
(27 Reviews)

Hi. Contact me to discuss your task over chat. Looking forward to hearing from you as soon as possible

$20 USD in 1 day
(8 Reviews)
$15 USD in 1 day
(1 Review)

I'm native Java Programmer preparing for Oracle Certification. I have experience in Java and comfortable using Netbeans IDE. I have pretty good understanding of the concepts in Java.

$15 USD in 2 days
(0 Reviews)

We are the leading young professional software development organization having extensive technical expertise and knowledge in developing, managing, optimizing and customizing software’s both in Web and Desktop Applicat More

$25 USD in 1 day
(1 Review)

Dear honorable sir, I am a freelancer and one of the web developers whom you can trust here and have completed over ten projects successfully with your blessing. And my account is new but I am not a new developer More

$144 USD in 11 days
(0 Reviews)