Fix the flawed scanf_s() call to be like below:
double getdouble(char item[], double min)
{
...
printf("\nEnter a ticket %s greater than or equal to %d: ", item, min);
scanf_s("%[B]lf[/B]%*c", &ticketquan);
...
Some calls to printf() are erroneous in the same way, i.e. you use %d to output a value of type double.