Professional Documents
Culture Documents
Lab 1 (week 1, 2)
=====================================================================
Read the following program description, then create a console application in C#.
[Program Description]
The program allows the user to register genre, country, and film (it is a part of cinema system
described in document List of sample project). Your program must check the data entered
by the user and if it is wrong, it must ask them to enter again.
Your program output may be look like as below:
Lab1: Nguyen Tuan Anh, SE0810
1. Register a genre
2. Register a country
3. Register a film
4. Exit
Please enter 1, 2, 3, or 4:
1) If the user enter 1, the program will allow the user to register a new genre, then display the
list of genres as below:
Enter genre name: Action
Enter genre description:
The list of genres:
GenreID
1
Name
Description
Action
2) If the user enter 2, the program will allow the user to register a new country, then display
the list of countries as below:
Enter country code: USA
[Type text]
Page 1
Country name
USA
United States
3) If the user enter 3, the program will allow the user to register a new film, then display the
list of films as below:
The list of genres:
GenreID
1
Name
Description
Action
United States
Title
impossible mission
Year
2010
Country
USA
[Note]
[Type text]
Page 2