xxxxxxxxxx
---------------------------- ----------------------------
| AbstractClass | | ConcreteClass |
---------------------------- ----------------------------
| + templateMethod() | -----> | + implementation() |
| + abstractMethod() | ----------------------------
----------------------------
xxxxxxxxxx
+------------------------+
| Produit |
+------------------------+
| - nom: String |
| - description: String |
| - prixDetail: Float |
| - prixGros: Float |
| - categorie: Categorie |
| - image: Image |
+------------------------+
+------------------------+
| Categorie |
+------------------------+
| - nom: String |
| - produits: List<Produit>|
+------------------------+
+------------------------+
| Image |
+------------------------+
| - url: String |
+------------------------+
xxxxxxxxxx
+-----------------------------------------+
| User Interface |
| |
| +-----------------------------+ |
| | Web App | |
| +-----------------------------+ |
| | |
+---------------|-------------------------+
|
v
+-----------------------------------------+
| API Gateway |
| |
| +-------------+ +-------------+ |
| | Service A | | Service B | |
| +-------------+ +-------------+ |
| | | |
| v v |
| +-------------+ +-------------+ |
| | Database | | Database | |
| +-------------+ +-------------+ |
+-----------------------------------------+
xxxxxxxxxx
| Ingrediente | Cantidad | Precio de Compra (por kg) | Costo por Porción |
|-------------------|----------|---------------------------|---------------------|
| Masa | 200g | $2 | $0.40 |
| Salsa de Tomate | 100g | $1 | $0.10 |
| Queso | 150g | $4 | $0.60 |
| Pepperoni | 50g | $5 | $0.25 |
| Costos Indirectos | - | - | $0.50 |
Costo Total por Porción (sin margen de beneficio): $1.85
Margen de Beneficio (30%): $0.56
**Precio de Venta por Porción: $2.41**
xxxxxxxxxx
# requirements.txt
# ... (other dependencies)
# Use pre-built mysqlclient binary wheel
mysqlclient==2.1.0
xxxxxxxxxx
# requirements.txt
# ... (other dependencies)
# Use pre-built mysqlclient binary wheel
mysqlclient==2.1.0
xxxxxxxxxx
FUNCTION displayMenu():
PRINT "1. Rent a car"
PRINT "2. Return a car"
PRINT "3. Display available cars"
PRINT "4. Exit"
FUNCTION rentCar():
INPUT customerName
INPUT carType
IF carType is available THEN
Mark carType as rented
PRINT "Car rented to", customerName
ELSE
PRINT "Sorry, the requested car is not available"
FUNCTION returnCar():
INPUT customerName
INPUT carType
IF carType is rented by customerName THEN
Mark carType as available
PRINT "Car returned by", customerName
ELSE
PRINT "Invalid input. The car is not rented by", customerName
FUNCTION displayAvailableCars():
PRINT "Available cars:"
FOR EACH carType in carInventory
IF carType is available THEN
PRINT carType
# Main program
carInventory = {
"Compact": available,
"Sedan": available,
"SUV": available
}
WHILE True:
displayMenu()
INPUT choice
IF choice is 1 THEN
rentCar()
ELSE IF choice is 2 THEN
returnCar()
ELSE IF choice is 3 THEN
displayAvailableCars()
ELSE IF choice is 4 THEN
EXIT the program
ELSE
PRINT "Invalid choice. Please choose again."
xxxxxxxxxx
/backend
/src
/controllers
/models
/routes
/middlewares
/config
server.js
app.js
package.json
.env
xxxxxxxxxx
RAID 5 Configuration (Example with 4 Disks)
Disk 1 Disk 2 Disk 3 Disk 4
| | | |
+---------+---------+---------+
| Parity
xxxxxxxxxx
+--------------+ +------------------------+ +----------------------+
| Start | --> | Identification of PC | --> | Choose Vendor & |
| | | Requirements | | Products |
+--------------+ +------------------------+ +----------------------+
| | Yes |
v v |
+----------------+ +---------------------+ +---------------------+
| Identify PC | --> | Vendor Quotations | --> | Quotation Approval |
| Requirements | +---------------------+ +---------------------+
+----------------+ | Yes |
| | v |
v v +---------------------+
+----------------+ +---------------------+ | Approval & Tracking|
| Choose Vendor | --> | Quotation Approval | +---------------------+
| & Products | +---------------------+ |
+----------------+ | Yes |
| | v |
v v +---------------------+
+----------------+ +---------------------+ | Product Procurement|
| Vendor Quotations| | Vendor Informs | +---------------------+
| Requested | --> | Product Status | |
+----------------+ +---------------------+ No |
| |--------+
v |
+----------------+ +---------------------+ +----------------------+
| Quotation | --> | Product Reception | --> | Quality Inspection |
| Approval | +---------------------+ +----------------------+
+----------------+ |
| |
v |
+----------------+ |
| Approval & | |
| Tracking | |
+----------------+ |
| |
v |
+----------------+ |
| Product | |
| Procurement | |
+----------------+ |
| |
v |
+----------------+ |
| Operational | ----------------------------------+
| Setup |
+----------------+
xxxxxxxxxx
MyTable.SETRANGE("Field Name", StartValue, EndValue);
IF MyTable.FINDSET THEN
REPEAT
// Process each record in the range
// ...
UNTIL MyTable.NEXT = 0;