// ticketCalc.js     P. Conrad for CISC103  Midterm Exam 2, 11/08/2007

// define a function that determines the price of a certain
// number of tickets to the Jon Stewart concert.
// 
// Consumes:
//     numST    a number, how many student tickets you want ($30 each)
//     numOT    a number, how many other tickets you want ($65 each)
// Produces:
//     totalPrice: the total price for all your tickets
//
// Examples:
//       js>  ticketCalc(1,0)
//       30
//       js>  ticketCalc(0,1)
//       65
//       js>  ticketCalc(0,2)
//       130
//       js>  ticketCalc(2,1)
//       125

function ticketCalc(numST, numOT)
{
	return (numST * 30 + numOT * 65);
}
