In the last two years, we have witnessed the millions of people in the world diagnosed with COVID-19. The widespread incidence of COVID-19 makes it an inevitable issue and it creates severe financial and psychological burden to both people and governments. We conducted research on hundreds of patients with suspected COVID-19, who were admitted to the hospital in Iran and collected data with various objective and subjective symptoms. Here, first weighting the features has been done by penalized logistic ridge regression to derive a transformed dataset. Then a new approach based on nearest distance is proposed to predict the class of each query point.