Write a public member function string delete_last(). This function deletes the last item added to the parallel arrays. When the item is deleted, it should no longer be included when calculating the total.
How would I go about doing this? If I am using a string array, how would set it up so that when I call it, it would just delete the previous.