Computing and coding
Computing and coding projects for class 9 and 10: 56 ideas.
Each project below opens to its own page with what it shows, the science behind it, the materials, safety, step-by-step instructions, what you should see and viva questions. Many can be made from things at home; where a kit helps, the page links one.
Other subjects for class 9 and 10: Physics, Chemistry, Biology, Maths, Earth and space, Electronics and robotics, Environment.
Scratch pen rangoli: rotating squares make a flower
A loop inside a loop draws a square 36 times, each turned a little, and the result is a rangoli-like flower. It shows how repeating a simple shape with a small turn builds complex patterns.
Scratch flying-bird game with gravity and moving pipes
A speed variable that keeps decreasing acts like gravity, and a key press resets it upward. It teaches how simple rules about speed produce natural-looking motion.
Scratch analogue clock that shows the real time
Three hands are turned by formulas using the current hour, minute and second from the computer’s clock. It links maths on angles to coding.
Scratch two-player pong with paddles and a bouncing ball
The ball bounces off the walls and the paddles by changing its direction. It teaches how direction angles work and how two players share one program.
Scratch reaction-time tester using the timer block
The program waits a random time, changes the colour, and measures how long you take to press a key. It shows how the timer block measures short intervals and how a list can store results.
Python general knowledge quiz using a dictionary
A dictionary stores questions with their answers, a for loop asks them one by one, and an if statement compares answers. It is the first full program most students write.
Python calculator with functions and a menu loop
Each operation is a separate function, a while loop keeps showing a menu, and an if check stops division by zero. It shows how to organise code into reusable parts.
Python to-do list that saves tasks in a text file
Tasks are written to a file and read back, so the list is still there the next time the program runs. It teaches file handling and lists.
Python guess-the-number game with hints and a limit
The computer picks a secret number with the random module and gives too high or too low hints. Using the hints well is a binary search, which finds a number in about seven guesses out of 100.
Python turtle spirograph of coloured circles
Python’s turtle module draws on a window. Drawing 72 circles with a 5 degree turn each time makes a spirograph, which shows how loops and angles create patterns.
Python text adventure: find the lost key in the school
A dictionary of rooms links each place to the others, and a loop moves the player between them. It shows how data structures can describe a whole game world.
Python daily diary that adds dated entries to a file
The program appends each entry with today’s date to a file and can print the whole diary. It teaches the date module and the append and read modes of files.
Python analysis of class marks from a CSV file
The program reads marks from a CSV file and finds the mean, median, highest, lowest and pass percentage. It shows how code can analyse data that a spreadsheet also holds.
Python chatbot that replies using keyword rules
The bot scans your sentence for keywords and picks a stored reply. It shows how simple chatbots work and why they fail on things they have no rule for, which is a good lesson for AI literacy.
Python rock paper scissors with a rules dictionary
The computer picks randomly and a dictionary stores what beats what, so the winner is found without a long list of if statements. It shows how data can replace repeated code.
Python password strength checker using made-up passwords
The program scores a password on length, capital letters, small letters, digits and symbols. It shows how longer and mixed passwords are harder to guess and how string methods work.
Python unit converter for length, mass and temperature
The program converts between units using stored factors and the Celsius to Fahrenheit formula. It combines maths with menus and functions.
Python hangman game with a word list and six lives
A set stores guessed letters, a join expression shows the word with blanks and a lives counter ends the game. It combines strings, sets, loops and conditions in one program.
Python bill generator for a kirana shop
A price dictionary and a loop build a neat bill with totals and a discount rule. It shows how everyday billing can be programmed with formatted output.
Python turtle drawing of the Indian tricolour with chakra
A function draws filled rectangles and a loop draws 24 spokes, so the flag is built from geometry and code. It shows how functions and loops reduce repetition.
Python summary of monthly rainfall with a text bar chart
The program stores 12 monthly rainfall values, finds the wettest month and the average, and draws a bar of hash signs for each month. It shows basic data analysis with lists.
Python Caesar cipher with a brute-force code breaker
Each letter is shifted by a key along the alphabet, and trying all 25 keys breaks the code. It shows how simple ciphers work and why they are weak.
Python word counter that finds the ten most common words
The program reads a text file, cleans the words and counts them in a dictionary. It shows how text analysis works and which words dominate ordinary writing.
Python tic-tac-toe for two players with a win checker
A list of nine cells holds the board and a list of eight winning lines is checked after each move. It shows how to model a game with data.
HTML personal home page with a photo, list and links
A web page is a text file with tags that tell the browser what each part is. This project builds a first page using headings, paragraphs, an image, a list and links.
HTML and CSS one-page online resume
HTML gives the structure of a resume with sections, and CSS styles fonts, colours and spacing in a separate file. It shows how content and design are kept apart.
HTML recipe page for poha with ingredient and step lists
Ingredients go in an unordered list and the method in an ordered list, so the browser numbers the steps automatically. It shows how to choose the right tag for the meaning.
HTML and CSS school magazine front page with columns
Semantic tags and CSS columns lay out an article like a newspaper page. It teaches page structure and layout with real content.
HTML and CSS photo gallery with flexbox and hover zoom
Flexbox arranges images in a wrapping grid, and a hover rule enlarges the image under the cursor. It shows modern CSS layout without tables.
HTML class timetable with merged cells and striped rows
An HTML table with rows, headings and merged cells shows a weekly timetable, and CSS stripes the rows for easy reading. It teaches tables, colspan and the nth-child selector.
HTML contact form with required fields and a dropdown
Form tags collect text, a choice and a message, and HTML attributes check the input before sending. It shows how websites collect information.
CSS navigation bar linking a three-page website
A list of links is turned into a horizontal menu using flexbox, with hover and active-page colours. It shows how a real website’s menu is made from simple lists.
CSS animated Diwali card with a flickering diya
CSS keyframes make a flame flicker and a greeting fade in with no JavaScript. It shows how animation is described by start and end states.
HTML page with a dark mode button that remembers your choice
A button runs a few lines of JavaScript that switch a CSS class, and localStorage keeps the choice for the next visit. It is a first step from static pages to interactive ones.
Spreadsheet monthly household budget with over-budget checks
A planned and an actual column are compared with formulas that give the difference and warn when spending exceeds the plan. It teaches the basics of budgeting and spreadsheet formulas.
Spreadsheet marksheet with total, percentage, grade and result
Formulas work out each student’s total, percentage, grade and pass or fail, and nested IF handles the grade bands. It shows how report cards can be calculated automatically.
Spreadsheet attendance register using COUNTIF
Present and absent entries are counted with COUNTIF, converted to a percentage, and flagged when below 75 percent. It shows how formulas can replace manual counting.
Spreadsheet survey: pie chart of how classmates travel to school
Survey answers are counted with COUNTIF and shown as a pie chart with percentages. It teaches data collection, counting and choosing the right chart.
Spreadsheet pocket money tracker with a running balance
A running balance formula adds income and subtracts spending on every row, and a line chart shows how the balance changes over the month. It teaches saving habits and cell references.
Spreadsheet electricity bill estimator with unit slabs
A single formula with MIN and MAX charges different rates for each block of units, as slab billing does. It shows how step-rate pricing works and how to check it.
Spreadsheet comparing simple and compound interest over 20 years
Two formulas grow the same sum at the same rate, one adding the same interest each year and one adding interest on interest. The chart shows compounding pulling ahead with time.
Spreadsheet temperature heat map for a month
Daily maximum temperatures are coloured from cool to hot with a colour scale and summarised with AVERAGE, MAX and MIN. It shows how colour helps people see patterns in numbers.
Spreadsheet sports day scoreboard using SUMIF
Points from many events are added for each house with SUMIF, ranked and drawn as a bar chart. It shows how one list of results can produce a summary.
Digital safety survey: how classmates handle passwords
An anonymous survey of habits, such as sharing passwords or reusing one everywhere, gives percentages and a bar chart. It shows which habits put accounts at risk and how to improve them.
Digital safety test: can friends spot fake messages?
A set of made-up messages, some genuine-looking and some fake, is sorted by friends using a checklist, and the results show which tricks work best. It teaches how to recognise phishing and scam messages.
Digital wellbeing: a one-week screen-time diary and plan
Daily screen time for study, play and chat is logged for a week, averaged and charted, then a plan is made and tested. It teaches self-observation and healthy habits with data.
Media literacy: check five forwarded messages before sharing
Forwarded claims are checked with a three-step method: who says it, when, and what do reliable sources say. It teaches how to stop false information from spreading.
AI literacy: testing a chatbot with twenty checkable questions
Twenty questions with known answers are put to an AI chatbot and the answers are checked against textbooks, giving an accuracy percentage and a list of confident mistakes. It shows that AI can be useful but must be verified.
AI literacy: train an image classifier on stationery items
A free browser tool learns to tell a pencil, an eraser and a sharpener from webcam examples, and testing shows how the number and variety of examples change accuracy. It teaches how machine learning learns from data.
Digital privacy audit of app permissions with a parent
Apps on a phone are checked for the permissions they hold, such as camera, microphone and location, and compared with what they need. It teaches how to protect privacy by limiting access.
AI literacy: can classmates tell AI-written text from student writing?
Short paragraphs written by students and by an AI tool are mixed and shown to volunteers who guess the author. The results show how hard it is to tell and what clues people use.
Paper flowchart for an ATM withdrawal with three PIN tries
A flowchart with decision diamonds and a loop describes the steps of an ATM withdrawal, including three PIN attempts and a balance check. It shows how to plan an algorithm before coding it.
Sorting number cards by hand: bubble sort against selection sort
Eight number cards are sorted by two methods while counting comparisons and swaps. It shows how different algorithms reach the same answer with different amounts of work.
Binary number cards that count from 0 to 31 on paper
Five cards with dots for 1, 2, 4, 8 and 16 show any number up to 31 by turning cards face up or down. It teaches how computers store numbers using only on and off, which are the digits 1 and 0.
Binary search against linear search on a sorted roll-number list
Looking for a roll number in a sorted list is done one by one and then by halving, and the steps are counted. It shows why binary search is so much faster for large lists.
Python explorer: prime sieve and Fibonacci golden ratio
One program finds primes with the Sieve of Eratosthenes and generates Fibonacci numbers whose consecutive ratio settles near 1.618. It links number patterns to loops and lists.
