Question: Write a program to create a dataset of information containing name and state of the applicants of Raffle Draw program. The records will all be

Write a program to create a dataset of information containing name and state of the applicants of Raffle Draw program. The records will all be saved in a file that will have a name in line with your student ID. For example S298900.txt. A maximum number of 20 applicant's information can be recorded and minimum is 1. If the entered number crosses either side of the limit, an error message should be displayed asking to re-enter the name. Once a valid name is given in the input, the State information should be collected. Here all states are accepted excluding Canberra. If Canberra is given, again a message has to be displayed asking for a reentry. So once both name and state are given as per the rule, the information should be recorded in the text file and the program should move on to the next applicant. The next applicant's information should be recorded in the same file after the previous applicant.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!