// Arup Guha
// 10/5/09
// Solution to COP 3223 Program #2
// Problem A: Parking Permits

#define STUDENT 100
#define STAFF 200
#define FACULTY 300
#define HANGTAGFACTOR 1.5

#include <stdio.h>

int main() {
    
    int role, tagtype, cost;
 
    // Get the user input.   
    printf("What role are you? (1=student, 2=staff, 3=faculty)\n");
    scanf("%d", &role);
    
    printf("What type of tag do you want? (1=sticker, 2=hang tag)\n");
    scanf("%d", &tagtype);

    // Set the base price of the parking sticker.
    if (role == 1)
        cost = STUDENT;
    else if (role == 2)
        cost = STAFF;
    else
        cost = FACULTY;
        
    // Multiply the hang tag factor, if necessary.
    if (tagtype != 1)
        cost *= HANGTAGFACTOR;
        
    // Output the final cost.
    printf("You need to pay $%d for your parking permit.\n", cost);
    
    system("PAUSE");
    return 0;
}
