Hartismere School

Est. 1451. An outstanding coeducational secondary school & sixth form college and England's first academy

Home Login

C# Cook Book // Higher Or Lower (GUI)

A C# programming recipe for creating a game of Higher or Lower.

The computer generates a random number, the player guesses if the next randon number will be higher or lower.

Difficulty: beginner.

Ingredients: You need to know how to create a Windows Application in SharpDevelop, and how to add buttons to a form.

In this section...

C# Cook Book // Conversation (Console)

C# Cook Book // Picture Block Puzzle (GUI)

C# Cook Book // MatchingPairs (GUI)

C# Cook Book // Tic Tac Toe (GUI)

C# Cook Book // Snake (GUI)

C# Yellow Book

C# Cook Book // Calculator (Console)

C# Cook Book // Quiz (Console)

C# Cook Book // Mastermind (Console)

C# Cook Book // Word Search (Console)

See also...

Year 12 revision

Essential programming skills to learn

Student resources

A Level CS: Algorithm Assembly Instructions

Year 10 British Farming Fortnight

Personal Development

Year 7

I Belong: encouraging girls into computer science programme

House Weeks

Toyota Virtual Plant Tour

Explore...

Python Cheat Sheet

Year 9 One Lesson Task :: Goal Seek [Spreadsheet]

Hartismere Website :: A History :: 2016

DynaMaze - Creating enemies and item pickups

Hartismere: Online since 1997!

48 Hour Scares

Computerphile Sudoku Python

Hartismere Website :: A History :: 2007

Hartismere Website :: A History :: 2004

Homework - Digital Video #2

New...

Head of Department Psychology & Sociology

Our curriculum

Meshes of the Afternoon - Maya Deren (1943)

Summer 2026 Examinations

March 2026 Year 11 Mocks

Young Performers Theatre Workshops - For 12-18's

Parents Evening :: Year 9

Artist in Residence for 2026

Discover...

C# Cook Book Recipes Programming C# Recipes Computer Science C# Lessontest Key Stage 3 GCSE Options Creative iMedia Examinations Jobs Internet Homework Design Sharp Minds 200 Design Technology Keystage 5 Religious Job Adverts Film Studies

Uh-oh - we were unable to load our website on your browser so we're showing you a plain HTML version.

We use many features found in modern browsers and regrettably yours seems incompatible.

However this legacy version contains (very, very nearly) all the same content. Each page is rendered on our server and doesn't rely on any browser features except the odd font. It doesn't even need Javascript or fancy CSS. It's like being in 1995!

Your browser is reporting itself to us as Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com). Please consider updating your browser to make the most of our website.

If you would like to try our proper website again - you can do so here...