Professional Documents
Culture Documents
Final Project IPT
Final Project IPT
in
INTEGRATIVE PROGRAMMING & TECHNOLOGIES
Submitted to:
ARLYN L. AQUINO
Instructor
Submitted by:
December 2023
Objectives: Apply knowledge of Object-Oriented Programming and all of the topics for the whole
semester.
Task: Create a Mini-System Project using Object-Oriented Programming.
▪ Choose a Mini-System:
- Select a mini-system to develop, such as a simple ordering system, inventory
management system, or any other relevant system that involves multiple interacting
entities.
▪ Use OOP Principles:
- Apply Object-Oriented Programming principles, including encapsulation, inheritance,
and polymorphism, to design and structure your classes.
▪ Create Class Methods:
- Implement methods within your classes to represent actions that can be performed
on objects. For example, if you're building an ordering system, you might have
methods like placeOrder(), calculateTotal(), etc.
Additional Announcement:
▪ Be prepared to present your project to the class, explaining the concepts, processes and
functionality.
The first process of the code displayed a list of product categories available for shopping. Each category is listed
with a corresponding number. Categories include "Electronics" (1), "Clothing" (2), and "Shoes" (3). The user is
prompted to select by entering the number they are interested in.
In the second process, after the user selects a category, the program displays the products available in the
category selected by the user. The program displays the products that are available in the category of "clothes,"
which are "T-shirts," short pants, and jeans. After the products are displayed, the user selects and enters the
number they are interested in.
In the third process, after the user selects and enters the number of the product they want to buy, they will be
asked the quantity they would like to purchase. After they enter the quantity of the product, the total price of
the user's order will be displayed, and after the total price is displayed, the user will be asked if they want to
continue shopping or not. If yes, the user will repeat the selection from the first process, and if not, the customer
will be told, "Please proceed to payment. Thank you for shopping with us."
Source Code:
PASTE HERE YOUR SOURCE CODE
import java.util.Scanner;
class Item {
protected String name;
class Order {
private Product product;
private int quantity;
class ShoppingSystem {
private Category[] categories;
char continueShopping;
do {
int selectedCategory, selectedProductIndex, quantity;
// Display categories
shoppingSystem.displayCategories();
System.out.println("Enter the category number:");
selectedCategory = scanner.nextInt() - 1;