Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Why is order of observation important in process control?

Answered: 1 week ago

Question

3. Identify cultural universals in nonverbal communication.

Answered: 1 week ago