Yes, two weeks is enough and if those are the only places you’re going you do not need a car. A car comes in handy if you want to go to places not regularly served by public transportation, but are not needed in the larger cities. Parking is difficult to find, expensive, and many of the older parking garages were built for the small cars in Spain back in the 70s, i.e., they are hard to maneuver in. Andalucia is brutally hot in the summer. Sevilla, Córdoba, and Granada are all major tourist destinations and will be very crowded at all the main sights late May through early September. Depending on the time you get into each town, Sevilla - 3 or 4 nights, Granada - 2 nights, Córdoba - 1 to 2 nights, and Malaga - 3 nights. If you decide to take some day trips, e.g., Ronda, Italica, Jerez, Arcos, Nerja, etc., then you’ll need more time in those places.