Dear doctor my stomach is hurting and it feels upset and I just vomited please tell me what I have and how to cure it?

See a doctor . This sounds like something urgent and could be one of many things, including but not limited to a viral illness, appendicitis, etc. Please make an appt to see a provider ASAP. If your pain is severe and/or you cant keep anything down, you should go to the ER. .
Cure ? This could be as simple as a reaction to something you ate, a self healing virus starting, or the beginning of a significant illness. For the first, consider what you ate. New food, new spices, something to avoid ? Have you been exposed to someone with similar symptoms ? Are you able to take fluids well & keep them down after a while ? If it is worsening seek care. If you can rest it may pass.