Pineapple is a type of tropical fruit that is abundant in a wide variety of nutrients, including carbohydrates, dietary fiber,…