Skip to content

This repository contains a collection of programming assignments and projects created for the University of Wisconsin - Madison's computer science courses.

Notifications You must be signed in to change notification settings

SiddAneja/JAVA-Programs

Repository files navigation

Project Descriptions

A description of all the projects above is givem below:

ShoppingCart

In this project, we created and implemented a simple version of a Shopping Cart using JAVA Arrays. The following is a demo of the program:
============= Welcome to the Shopping Cart App =============


COMMAND MENU:
[P] print the market catalog
[A ] add one occurrence of an item to the cart given its identifier
[C] checkout
[D] display the cart content
[O ] number of occurrences of an item in the cart given its identifier
[R ] remove one occurrence of an item from the cart given its identifier
[Q]uit the application

ENTER COMMAND: p
+++++++++++++++++++++++++++++++++++++++++++++
Item id Description Price
+++++++++++++++++++++++++++++++++++++++++++++
0 Apple $1.59
1 Avocado $0.59
2 Banana $0.49
3 Beef $3.79
4 Blueberry $6.89
5 Broccoli $1.79
6 Butter $4.59
7 Carrot $1.19
8 Cereal $3.69
9 Cheese $3.49
10 Chicken $5.09
11 Chocolate $3.19
12 Cookie $9.5
13 Cucumber $0.79
14 Eggs $3.09
15 Grape $2.29
16 Ice Cream $5.39
17 Milk $2.09
18 Mushroom $1.79
19 Onion $0.79
20 Pepper $1.99
21 Pizza $11.5
22 Potato $0.69
23 Spinach $3.09
24 Tomato $1.79
+++++++++++++++++++++++++++++++++++++++++++++

COMMAND MENU:
[P] print the market catalog
[A ] add one occurrence of an item to the cart given its identifier
[C] checkout
[D] display the cart content
[O ] number of occurrences of an item in the cart given its identifier
[R ] remove one occurrence of an item from the cart given its identifier
[Q]uit the application

ENTER COMMAND: a 0

COMMAND MENU:
[P] print the market catalog
[A ] add one occurrence of an item to the cart given its identifier
[C] checkout
[D] display the cart content
[O ] number of occurrences of an item in the cart given its identifier
[R ] remove one occurrence of an item from the cart given its identifier
[Q]uit the application

ENTER COMMAND: a 24

COMMAND MENU:
[P] print the market catalog
[A ] add one occurrence of an item to the cart given its identifier
[C] checkout
[D] display the cart content
[O ] number of occurrences of an item in the cart given its identifier
[R ] remove one occurrence of an item from the cart given its identifier
[Q]uit the application

ENTER COMMAND: a 0

COMMAND MENU:
[P] print the market catalog
[A ] add one occurrence of an item to the cart given its identifier
[C] checkout
[D] display the cart content
[O ] number of occurrences of an item in the cart given its identifier
[R ] remove one occurrence of an item from the cart given its identifier
[Q]uit the application

ENTER COMMAND: A 17

COMMAND MENU:
[P] print the market catalog
[A ] add one occurrence of an item to the cart given its identifier
[C] checkout
[D] display the cart content
[O ] number of occurrences of an item in the cart given its identifier
[R ] remove one occurrence of an item from the cart given its identifier
[Q]uit the application

ENTER COMMAND: d
Cart Content: Apple, Tomato, Apple, Milk,

COMMAND MENU:
[P] print the market catalog
[A ] add one occurrence of an item to the cart given its identifier
[C] checkout
[D] display the cart content
[O ] number of occurrences of an item in the cart given its identifier
[R ] remove one occurrence of an item from the cart given its identifier
[Q]uit the application

ENTER COMMAND: O 0
The number of occurrences of Apple (id #0) is: 2

COMMAND MENU:
[P] print the market catalog
[A ] add one occurrence of an item to the cart given its identifier
[C] checkout
[D] display the cart content
[O ] number of occurrences of an item in the cart given its identifier
[R ] remove one occurrence of an item from the cart given its identifier
[Q]uit the application

ENTER COMMAND: Q
============= Thank you for using this App!!!!! =============

Fountain

This project involves developing a graphical implementation of a particle system. The idea behind this project is to use several small images or shapes that together give the appearance of a large amorphous object that does not neccessarily have a clearly defined surface.
Gained experience working with data that is organized within several instatiable objects.
Additionally, got experience working with a real time graphical simulation, and developing unit test methods.

Book Library

This program involves the design, implementation, and testing of a simplified version for a public library management system named Book Library.
We distinguish two users for this application: (i) the subscriber who can borrow books, and (ii) the librarian who is responsible for managing the books in the library and helping the library subscribers to check out or return books. Further display options are also available.
The following is the demo of the program:
--------------------------------------------------------
Welcome to our Book Library Management System
--------------------------------------------------------
Enter one of the following options:
[1 ] Login as a librarian
[2 <4-digits pin>] Login as a Subscriber
[3] Exit
--------------------------------------------------------
ENTER COMMAND: 1 abc

--------------------------------------------------------
Welcome to Librarian's Space
--------------------------------------------------------
Enter one of the following options:
[1 <title> ] Add new Book
[2

] Add new subscriber
[3 ] Check out a Book
[4 ] Return a Book for a subscriber
[5 ] Display Personal Info of a Subscriber
[6 ] Display Books Checked out by a Subscriber
[7] Display All Books
[8 ] Remove a Book
[9] Logout
--------------------------------------------------------
ENTER COMMAND: 1 Java Mouna
Book with Title Java is successfully added to the library.

--------------------------------------------------------
Welcome to Librarian's Space
--------------------------------------------------------
Enter one of the following options:
[1 <title> ] Add new Book
[2 ] Add new subscriber
[3 ] Check out a Book
[4 ] Return a Book for a subscriber
[5 ] Display Personal Info of a Subscriber
[6 ] Display Books Checked out by a Subscriber
[7] Display All Books
[8 ] Remove a Book
[9] Logout
--------------------------------------------------------
ENTER COMMAND: 1 Python Gary
Book with Title Python is successfully added to the library.

--------------------------------------------------------
Welcome to Librarian's Space
--------------------------------------------------------
Enter one of the following options:
[1 <title> ] Add new Book
[2 ] Add new subscriber
[3 ] Check out a Book
[4 ] Return a Book for a subscriber
[5 ] Display Personal Info of a Subscriber
[6 ] Display Books Checked out by a Subscriber
[7] Display All Books
[8 ] Remove a Book
[9] Logout
--------------------------------------------------------
ENTER COMMAND: 2 Ryan 1111 Madison 765432890
Library card with bar code 2019000001 is successfully issued to the new subscriber Ryan.

--------------------------------------------------------
Welcome to Librarian's Space
--------------------------------------------------------
Enter one of the following options:
[1 <title> ] Add new Book
[2 ] Add new subscriber
[3 ] Check out a Book
[4 ] Return a Book for a subscriber
[5 ] Display Personal Info of a Subscriber
[6 ] Display Books Checked out by a Subscriber
[7] Display All Books
[8 ] Remove a Book
[9] Logout
--------------------------------------------------------
ENTER COMMAND: 5 2019000001
Personal information of the subscriber: 2019000001
Name: Ryan
Address: Madison
Phone number: 765432890

--------------------------------------------------------
Welcome to Librarian's Space
--------------------------------------------------------
Enter one of the following options:
[1 <title> ] Add new Book
[2 ] Add new subscriber
[3 ] Check out a Book
[4 ] Return a Book for a subscriber
[5 ] Display Personal Info of a Subscriber
[6 ] Display Books Checked out by a Subscriber
[7] Display All Books
[8 ] Remove a Book
[9] Logout
--------------------------------------------------------
ENTER COMMAND: 9

--------------------------------------------------------
Welcome to our Book Library Management System
--------------------------------------------------------
Enter one of the following options:
[1 ] Login as a librarian
[2 <4-digits pin>] Login as a Subscriber
[3] Exit
--------------------------------------------------------
ENTER COMMAND: 2 2019000001 1111

--------------------------------------------------------
Welcome to Subscriber's Space
--------------------------------------------------------
Enter one of the following options:
[1 ] Check out a book
[2 ] Return a book
[3 <title>] Search a Book by title
[4 ] Search a Book by author
[5] Print list of books checked out
[6] Print history of returned books
[7 ] Update address
[8 ] Update phone number
[9] Logout
--------------------------------------------------------
ENTER COMMAND: 4 Mouna
: 1 <Title>: Java : Mouna : true

--------------------------------------------------------
Welcome to Subscriber's Space
--------------------------------------------------------
Enter one of the following options:
[1 ] Check out a book
[2 ] Return a book
[3 <title>] Search a Book by title
[4 ] Search a Book by author
[5] Print list of books checked out
[6] Print history of returned books
[7 ] Update address
[8 ] Update phone number
[9] Logout
--------------------------------------------------------
ENTER COMMAND: 1 1

--------------------------------------------------------
Welcome to Subscriber's Space
--------------------------------------------------------
Enter one of the following options:
[1 ] Check out a book
[2 ] Return a book
[3 <title>] Search a Book by title
[4 ] Search a Book by author
[5] Print list of books checked out
[6] Print history of returned books
[7 ] Update address
[8 ] Update phone number
[9] Logout
--------------------------------------------------------
ENTER COMMAND: 5
Book ID: 1 Title: Java Author: Mouna

--------------------------------------------------------
Welcome to Subscriber's Space
--------------------------------------------------------
Enter one of the following options:
[1 ] Check out a book
[2 ] Return a book
[3 <title>] Search a Book by title
[4 ] Search a Book by author
[5] Print list of books checked out
[6] Print history of returned books
[7 ] Update address
[8 ] Update phone number
[9] Logout
--------------------------------------------------------
ENTER COMMAND: 6
No books returned by this subscriber

--------------------------------------------------------
Welcome to Subscriber's Space
--------------------------------------------------------
Enter one of the following options:
[1 ] Check out a book
[2 ] Return a book
[3 <title>] Search a Book by title
[4 ] Search a Book by author
[5] Print list of books checked out
[6] Print history of returned books
[7 ] Update address
[8 ] Update phone number
[9] Logout
--------------------------------------------------------
ENTER COMMAND: 9

--------------------------------------------------------
Welcome to our Book Library Management System
--------------------------------------------------------
Enter one of the following options:
[1 ] Login as a librarian
[2 <4-digits pin>] Login as a Subscriber
[3] Exit
--------------------------------------------------------
ENTER COMMAND: 3

--------------------------------------------------------
Thanks for Using our Book Library App!!!!
--------------------------------------------------------

ExceptionalLibrary

Completely revamp the book library (previous project) to make it super robust and stop it from crashing incase of invalid inputs.
It has an added functionality o load books to the books Arraylist of a library from a file and save its content to a file too.

EscapeRoom

This project involves developing an escapr room style adventure game.
This game will include graphical elements that the user can click on, and can drag onto others to solve puzzles and eventually win the game.

StorageUnit

In this project we implement a storage unit as a sorted singly linked list
This storage unit lists stores boxes of different colors and weights. It also has a capacity that can be easily expanded.
A graphic application of this storage unit is also developed.

Iterating to philosophy

This project involves developing increasingly general Iterators using both the Iterator and Iterable interfaces from the Java API.
Rather than iterating through a pre-existing collection of data, the code will be generating this data on demand.
The final generalization of this pattern will be used to explore the structure of Wikipedia and the significance of its Philosophy page.

Dessert Queue

This Assignment involves implementing a queue using an array with circular indexing.
Once developed and tested this queue implementation, will be used to develop solutions for three different kinds of problems that involve peculiar seating and serving arrangements at a friend’s monthly dinner parties.
The main purpose of this project was to gain experience using circular indexing and analyzing time-complexities.

Dictionary

This project involves the implementation of a dictionary using Binary Search Trees (BST).
The dictionary stores a collection of Dictionary words or definitions (words and their meanings). The user can add one or more word definitions to this dictionary.
He/She can also use this dictionary to retrieve the meaning of any word already added.
The objective of this program was to becmome familiar with BSTs. Learn how BSTs can be used to store keys to facilitate insertion and retrieval operations to and from a collection of ordered elements, in an efficient way.

Help Desk

This project involves developing a system to prioritize support tickets for a help desk of a local business.
Implemented a priority queue using the heap data structure, for this purpose.

About

This repository contains a collection of programming assignments and projects created for the University of Wisconsin - Madison's computer science courses.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published