Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Given the classes above, Implement this class (OrderFascade) using the Fascade p

ID: 3676425 • Letter: G

Question

Given the classes above, Implement this class (OrderFascade) using the Fascade pattern to incorporate the process of ordering behind a simpler interface via the OrderFascade.

class OrderFascade {
// Global in scope
class Time {}
class ServiceClass {}
class CustomerID {}
class ProductID {}

// CODE GOES HERE

}

class CustomerRecordService class Inventoryservice // Global in scope class ProductID () // Global in scope class Time t class Serviceclass t class CustomerID th class ProductID 0 public InventoryService) // Imagine Some Code Here public CustomerRecordService) /Imagine Some Code Here public boolean sellFromInventory (ProductID p) t // Imagine Some Code Here return true; public void recordorder (Time t, ServiceClass s, CustomerID c, ProductID p) f // Imagine Some Code Here class FulfillmentService t // Global in scope class Time th class ShipperDetailst) class ServiceClass class CustomerID ( class ProductID public Fulfillmentservice (ShipperDetails[] s) // Imagine Some Code Here private boolean doableETA(ServiceClass s, CustomerID c, Time t) // Imagine Some Code Here return true; public boolean fulfill (ProductID p, CustomerID c, Serviceclass s, Time t) ( if (doableETA(s,c,t)) return false; // Imagine Some Code Here return true;

Explanation / Answer

#include<iostream.h>

#include<time.h>

class Time

{

void t()

{ ctime curtime;

curtime=time(null);

cout<<"current time"<<asctime(curtime);

}

}

class customerid

{   

void getdetails(string custname,string custadd,string phone)

{

cout<<"customer name"<<custname <<"customer address"<<custadd"<<"contact number"<<phone;

}

}

class productid

{

int prdit(int pid,string prd_name)

{

this.prd_name=prd_name;

this.pid=pid;

}

class service

{ int porder;

  

}

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote