Type 2 diabetes and prediabetes, which are mainly caused by a lack of physical activity and excess weight, put people at an increased risk of cardiovascular disease. This study will compare the effects of a weight loss diet versus a weight loss diet plus an exercise program on body composition and cardiovascular factors that are early predictors of future cardiovascular disease in overweight and obese people with type 2 diabetes and prediabetes.