C#: Optimizing error prevention with the input console -
i've started learning c# using rob miles' c# programming yellow book , related lab exercises website. did 1 of them , produced solution works...(there's not 1 provided). wanted not crash if user inputs nonsensical answers or string can't converted integer(i googled , found tryparse method. textbook briefly taught try/catch method, didn't seem useful user interface, i.e. let program continue after bad input). set that, in 1 of these cases, sends out alternate message. i've ended long code... do/while within do/while , do/while within while. if have tips streamlining this, i'd obliged. best, elliot using system; using system.io; static class cinema { static void main() { int[] selection = new int[] //array age requirements of each film { 15, 15, 12, 18, 0 }; string filmnumbertext; //console input film number int filmnumber; //input string parsed integer string agetext; //console input age int age; ...