Using a q to quit the program
<p>asking the user after the table has been output to 
input a number of widgets. You should then calculate the cost and output the value. 
If the user enters ‘q’ or ‘Q’, the program should terminate</p>

<p>what code could I use to quit the program?</p>
