AQA · GCSE · Computer Science · Higher
C# user input and output
Write a C# program that: gets the user to enter the name of a film; displays You entered followed by the name of the film entered by the user. The output from the program must be on one line. You should use meaningful variable name(s) and C# syntax in your answer.
Write your answer first. You can study the marking guidance whenever you need it.
Study the marking See what earns credit and compare it with a full-mark answer.
Marking points
- 1 Reads a film name from the user and stores it.
- 2 Outputs You entered followed by the stored film name on one line.
Full-mark answer
string film = Console.ReadLine(); Console.WriteLine("You entered " + film);
Why this answer loses marks
The program reads the film name but displays only the fixed message.
The output for this task must also include the stored user entry on the same line.