Question: The following programming language is based on C++ programming. Find the ADT Specifications in provided code below and list it down then explain what does

The following programming language is based on C++ programming. Find the ADT Specifications in provided code below and list it down then explain what does the operation do. So it could be understandable.

header.hpp

#ifndef HEADER_HPP #define HEADER_HPP

#include #include #include #include #include using namespace std;

class Customer{ public: string custName; string custPhone; string ic_no; int court_no; string time; string status; public: void enterQuery(); void binarySearch(Customer arr[], int left, int right, string query); void bubbleSort(Customer bookings[], int n); void Sorting(); void displayBookingDetails(); };

class Court { public: int court_no; string courtType; string courtTime; double courtPrice; Court *next;

public: bool checkCourtNumber(int court_no); void editCourt(); void displayCourtDetails(); void deleteCourt(int num); };

class LinkedList { public: Court *head; LinkedList() { head = NULL; }

void insertCourt(int court_no, string courtType, string courtTime, double courtPrice); void printList(); };

class QueueBooking{ public: string custName; string custPhone; string ic_no; int court_no; string time; string confirmation; public: QueueBooking(string custName, string custPhone, string ic_no, int court_no, string time); QueueBooking(); void Enqueue(queue &q, int court_no, string custName, string ic_no, string custPhone, string time); void Dequeue(queue &q); bool checkBookingTimeAndCourt(int court_no,string time); };

#endif

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!