Last year I bought a house that had this planted in the flower bed in my front yard. This spring, it grew pretty big and also grew flowers. Then almost as soon as the flowers grew, it started dying. I have no gardening skills whatsoever, so I'd like to read up on the best way to care for it and to get it to look better. But, first I need to know what plant it is:
Yesterday, I was walking through Lowe's home and garden to pick up some weed killer and happened to walk past a tree with similar looking leaves, and it said it was a Yucca tree, so I'm guessing this is a Yucca plant? Not sure though.
Bonus points if you can also tell me how to get it looking less dead

Yesterday, I was walking through Lowe's home and garden to pick up some weed killer and happened to walk past a tree with similar looking leaves, and it said it was a Yucca tree, so I'm guessing this is a Yucca plant? Not sure though.
Bonus points if you can also tell me how to get it looking less dead