if your a highschool student for the the summer can you go to community college and earn credit for highschool

Perhaps. Check with your high school counselor.