You're using flush keyboard after getting a char option from the user, but not after getting the weight. When you enter the weight, \n is still in the input buffer. Adding the keyboard flush after...