I gotta write a program that reads a file and determines a customers priority number. The program then builds a priority queue using hte priority number and prints the list of people waiting. Here is what I have so far
int main() {
int myValue[3][3];
myValue[0][0] = 53,000;
myValue[0][1] = 5;
myValue[0][2] = 1;
myValue[1][0] = 89,000;
myValue[1][1] = 3;
myValue[1][2] = 2;
myValue[2][0] = 93,000;
myValue[3][1] = 3;
myValue[3][2] = 3;
return 0;
}
The formula to get the priority number is A/1000 + B - C. A, B, C are shown above. Anyone give me a little push to where I should be going with this. I am a horrible programmer but I do understand the code at times.