How achmadnabilrs-glitch/studi-kasus-8-bank-sampah works
This is a small Indonesian-language console bank-sampah application. A user enters their name and the weights of plastic, paper, and metal; the app calculates the deposit and any qualifying bonus, adds the amount to the customer’s balance, prints a receipt, and processes a withdrawal. The excerpts show the main workflow and type-specific pricing. No README or external storage/integration is present in the supplied files.
Main entry points: Main.java Console workflow · Sampah.java Waste base type · Setoran.java Deposit calculation · Plastik.java Plastic pricing
Components 8
Deposit workflow
- Console workflow
Main.java
Bank-sampah domain
- Deposit calculation
Setoran.java - Customer balance
Nasabah.java - Waste base type
Sampah.java - Plastic pricing
Plastik.java - Paper pricing
Kertas.java - Metal pricing
Logam.java
Other components
- User
Connections 10
- User → Console workflow: enters transaction
Main.java - Console workflow → Deposit calculation: creates and calculates
Main.java - Console workflow → Customer balance: updates and queries
Main.java - Console workflow → Plastic pricing: creates
Main.java - Console workflow → Paper pricing: creates
Main.java - Console workflow → Metal pricing: creates
Main.java - Deposit calculation → Waste base type: stores and evaluates
Setoran.java - Plastic pricing → Waste base type: extends
Plastik.java - Paper pricing → Waste base type: extends
Kertas.java - Metal pricing → Waste base type: extends
Logam.java