While you have not actually asked a question, there are several issues with your code. Here are a few of them.
case 6: price = 1,500.00;
price
is a floating point value and floats can not have commas embedded in them. They must be written without the comma like this :
case 6: price = 1500.00;
The previous five prices must also be written without commas.
I like to use toupper or tolower so I only have to check a character's value one time. That can look like this :
addAnother = getchar();
addAnother = tolower( addAnother );
} while( addAnother == 'y' );
One other thing I noticed is the format specifier for one of your
printf
statements is incorrect. It should look like this :
printf("\nChange\t\t: %.2f", change);
with a percent sign instead of an ampersand.