CS506 Assignment No 1 Solution Fall 2019 | Virtual Study Solutions

Adsetra Ads

 

CS506 Assignment No 1 Fall 2019

Dear Students, Here you can read or download CS506 - Web Design and Development Assignment No 1 Solution of Semester Fall 2019.  Assignment Due Date is 15 November 2019. CS506 Solution Video Explanation has also been added.


CS506 Assignment No 1 Solution Fall 2019 -  web design and development
CS506 Assignment No 1 Solution Fall 2019 -  web design and development
We are here to facilitate your learning and we do not appreciate the idea of copying or replicating solutions. CS506 Assignment Solution File has been added. Previously we shared ENG101 Assignment No 1 Solution Fall 2019.

CS506 Assignment Uploading Instructions:


  • You are not allowed to use any IDE tool like NetBeans for this assignment.
  • Use Notepad or Notepad++ for coding and JDK package for Java source code compilation and running.
  • Place all the source code (.java & .class files) in a Zip/RAR file, save with your own Student ID (e.g. bc000000000.zip) and Upload it on VULMS within due date.
  • Your assignment should be in .zip /.rar format. Other file formats will not be accepted.
  • No assignment will be accepted through email.

CS506 Assignment Problem Statement:

You are required to write a Java program, named ShoppingCart, for a typical online shopping system. In which a user can add and remove items to the shopping cart. The program will allow the user to proceed with checkout by displaying all items of the shopping cart along with total bill. Further, user will also be fascinated by giving the option of emptying the shopping cart without buying anything. All will be done by using Java basic GUI component i.e. JOptionPane.

Detailed Description:

At the start, your program should display an Input Dialog (i.e. JOptionPane.showInputDialog) and ask for the following options;
  1. Add Item(s) to Cart
  2. Remove an Item from Cart
  3. Go to Checkout
  4. Empty the Cart
  5. Exit the Program

Required Java Classes:

For this purpose, you have to create three java classes (i.e. Product, Cart and MainClass). Data members, member functions and other details of these classes are given below;

Product Class:
  • id: int
  • name: String
  • price: float
  • quantity: int
  • Constructors: default, parameterized and copy constructor
  • Standard Setters: setId(…), setName(…), setPrice(…), setQuantity(…)
  • Standard Getters getId(), getName(), getPrice(), getQuantity()
Cart Class:
  • cartItems: ArrayList
  • Constructors: default, parameterized and copy constructor
  • Member Functions: addItem(…), removeItem(…), emptyCart(), getItemsList(), getProductIndex(…)
Main Class:
  • myCart: Cart
  • Constructors: default, parameterized and copy constructor
  • Member Functions: main(), showGUI(), addItem(), removeItem(), checkOutCart(), removeAll(), developerInfo()

Important Things to Implement:

  • For GUI, you have to use JOptionPane.showInputDialog and JOptionPane.showMessageDialog for taking input from the user and showing output to users respectively.
  • Use single ArrayList for adding/removing items to/from the shopping cart.
  • We need to make sure that exceptions are managed properly throughout the program; especially NullPointerException and NumberFormatException while taking input from the user.
  • All images and sample data, given in this document, are just for reference purpose only; you have to provide your own implementations. It is not required to be exactly the same.

CS506 Assignment No 1 Solution Fall 2019

You can see the Sample Preview of CS506 Assignment 1 Solution provided by (Virtual Study Solutions) below. Click on Download Button to Download Solution File in Your PC. 

CS506 Assignment No 1 Solution Explained

CS506 Assignment Solution Sample Preview

CS506 Solution File Sample Page Preview has been added below.


CS506 Assignment No 1 Solution Files Preview
CS506 Assignment No 1 Solution Files Preview

Download CS506 Assignment No 1 Solution Fall 2019

File NameDownload Link
 CS506 Assignment No 1 Solution Fall 2019.rar Download

Meanwhile, we recommend you to read:

CS506 Mid Term Past Papers Collection

Download  [  CS506 Mid Term Papers Solved by Moaaz ]  




If CS506 Assignment No 1 Solution Fall 2019 was helpful. Please Share it with your friends. You can also like our Facebook Page or Subscribe Us on Youtube for Latest Updates about Assignments and Past Papers.

Post a Comment

 

Top