Common examples are ATMs, POS terminals, and airport ticket vending machines. Cashierless checkout technologies like “Scan and Go,” inventory scanning, corporate-owned work profile devices, self-ordering kiosks, mobile devices, and POS/m POS are some of the most common examples of dedicated devices in use today.
Bookstore and BookSearch are the two entities for the given scenario.
Explanation:
- For the given Book.com virtual store, there can be two entities like Bookstore and BookSearch.
- Bookstore can have all the details of the books in the virtual store. hence the attributes can be
- Bookstore attributes: bookname, Authorname, Publisher, Publishedyear, Agegroup, category.
- BookSearch entity can be used to search the books in the virtual store.
- Booksearch attributes: bookname, category, bookid, authorname.
You'll need a helper variable for this, so depending on your programming language, the solution becomes:
int helper;
helper = arr[i];
arr[i] = arr[j];
arr[j] = helper;