You are on page 1of 2

Programming with C#

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

Enter country name: United States


The list of countries:
Country code

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

Enter genre ID: 1


The list of counties:
Country code Country name
USA

United States

Enter country code: VNA


Enter title: Impossible mission
Enter year: 2010
The list of films:
FilmID GenreID
1

Title

impossible mission

Year
2010

Country
USA

[Note]

- Your solution name: Lab1_StdName


- File name submited: ClassID_StdID_StdName_Lab1.zip
Where: StdName = First name+ Family name, e.g. AnhNguyen

[Type text]

Page 2

You might also like