133k views
3 votes
How do I create a C# program that handles your movie collection? The program should allow the user to enter the following information:

Name
Genre
Year
Rating

The program should provide a menu that allows the user to do what he wants to do:
Open
New
Modify
Close.

The program must have the following:
An introductory statement that allows the user to understand what type of program they are running.
Variable declarations
User input acceptance
Decision statement - that determines what method the file is going to be used for.
Proper output - so the user can see what DVD's they store.
You must provide the entire project file and you must save to an input file. REQUIRED.

1 Answer

4 votes

Final answer:

To create a C# program for managing a movie collection, begin with an introduction, followed by variable declarations for movie details. Implement a user input interface with a decision statement connected to a menu for Open, New, Modify, and Close options. Use file handling for saving and retrieving collection data.

Step-by-step explanation:

Creating a C# Program for Managing a Movie Collection

To create a C# program that handles your movie collection, you'll need to start with some basic steps. Initially, you'll create a welcoming introductory statement explaining the purpose of the program. Following this, declare variables for storing movie information such as Name, Genre, Year, and Rating. You'll need to implement a menu with options to Open, New, Modify, and Close the movie records. User input should be accepted to allow the addition and modification of movie details.

For handling decision-making, incorporate a decision statement like an if-else or switch statement to determine the action to be taken based on the user's menu selection. Ensure there's proper output so that users can efficiently manage and view their movie collection. Lastly, for data persistence, incorporate file handling to save the movie list to an input file.

User MarkWanka
by
8.3k points