//hipppest lotto program this side of the blue road? //John Moses and Company #include #include #include using std::cout; using std::cin; using std::endl; const int MIN=1; const int MAX=45; int titleScreen() { cout<<"****************************************************************"<>num; if (num<=0||num>25) { do { cout<<"Invalid input!"<>num;} while (num<=0||num>25); } else { return num; } return 0; } char getAutoPick() { char entry; cout<<"Would you like to have your ticket numbers chosen automatically? (Y or N)"; cin>>entry; switch (entry) { case 'Y': case 'y': break; case 'N': case 'n': break; default: cout<<"Invalid Input!"<>entry; } return entry; } int getRandomNumber(int MIN, int MAX) { return MIN+rand()%(MAX-MIN+1); } int getUserNumber(int MIN, int MAX ) { int userNumbers; cout<<"Please enter a lotto number between 1 and 45: "; cin>>userNumbers; if (userNumbersMAX){ do { cout<<"Invalid Input!"<>userNumbers; } while (userNumbersMAX); } else return userNumbers; return 0; } void main() { int num; int meansNothing; char entry; int randNumbers; int titleScreen(); meansNothing=titleScreen(); int numTickets(); num=numTickets(); for (int numControl=0; numControl < num; numControl++) { char getAutoPick(); entry=getAutoPick(); if (entry=='y'||entry=='Y') for (int ticketAmount=1; ticketAmount<=8; ticketAmount++){ int getRandomNumber(int MIN,int MAX); randNumbers=getRandomNumber(MIN,MAX); cout<