[go: up one dir, main page]

0% found this document useful (0 votes)
18 views4 pages

Mini Projects For Grade 9

Uploaded by

dinaabdulrasoul
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views4 pages

Mini Projects For Grade 9

Uploaded by

dinaabdulrasoul
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Mini-Projects:

Variables ✓

1. Score Tracker: Create a program that tracks a player's score during a game and updates
it as they earn points.
2. Temperature Converter: Build a simple tool to convert temperatures between Celsius
and Fahrenheit using a variable for user input.
3. Personalized Greeting: Ask the user for their name and favorite color, then display a
customized message like, "Hello [Name], it's a great day to enjoy [Color]!"

If Statements ✓

1. Guess the Number: Create a guessing game where the user inputs a number and receives
feedback if it is too high, too low, or correct.
2. Grade Calculator: Let users input a score, and the program determines whether they
passed or failed based on a threshold (e.g., 50%).
3. Traffic Light Simulation: Simulate a traffic light where pressing buttons for "Red,"
"Yellow," or "Green" shows an appropriate message for each color.

While Loops (Girls only✓)

1. Countdown Timer: Use a while loop to count down from 10 and display a "Time's up!"
message at the end.
2. Password Check: Prompt the user to input a password and keep asking until the correct
one is entered.
3. Incremental Savings: Simulate a piggy bank where users add small amounts of money
until they reach a set goal.

For Loops

1. Multiplication Table: Generate and display a multiplication table for a given number.
2. Simple Animation: Create an animation where an object moves across the screen,
updating its position using a for loop.
3. Number Pattern: Print out a pattern like stars or numbers in a pyramid shape.

Functions

1. Magic 8-Ball: Write a function that randomly picks and returns a response from a set of
predefined answers to a user's question.
2. Area Calculator: Build a program with functions to calculate the area of a rectangle,
triangle, or circle based on user input.
3. Number Doubler: Create a function that takes a number as input and returns double its
value.
Arrays and Processing Arrays

1. High Score List: Manage a list of top scores. Allow users to add a score and display the
updated list sorted in descending order.
2. Favorite Movies: Let users input their top three favorite movies, store them in an array,
and display the list.
3. Average Finder: Calculate and display the average of an array of numbers entered by the
user.

Bonus Projects:
Variables
1. Daily Planner: Create a program where users enter
their name and one activity they want to do today,
then output a friendly reminder.
2. Shopping List: Store the name and price of one item,
then calculate and display the total price with tax
(using a variable for tax rate).
3. BMI Calculator: Ask for the user’s height and weight,
calculate their BMI, and display it using variables.
If Statements
1. Weather Advisor: Ask the user for the current
temperature and suggest whether they should wear a
jacket, bring an umbrella, or wear sunglasses.
2. Age Validator: Prompt the user to enter their age, and
respond with a message like “You’re old enough to
drive!” or “Too young for driving!”
3. Odd or Even: Allow users to input a number, and use if
statements to check if the number is odd or even,
displaying the result.
While Loops
1. Number Counter: Ask the user for a starting number
and count upward until reaching 10 using a while
loop.
2. Simple Typing Test: Display a word and prompt the
user to type it repeatedly until they match it
correctly.
3. Coin Flip Simulator: Simulate flipping a coin
repeatedly, counting how many times it lands on
heads or tails, and stop after a set number of flips.
For Loops
1. Alphabet Printer: Use a for loop to print out each
letter of the alphabet sequentially.
2. Shape Drawer: Use repeated shapes (like rectangles
or circles) to draw a basic design or pattern.
3. Even Numbers: Print out all even numbers between 1
and 20 using a for loop.
Functions
1. Tip Calculator: Write a function that calculates and
returns a tip amount based on the meal cost and a tip
percentage.
2. Simple Calculator: Create a function that takes two
numbers and an operator (+, -, *, /) as input and
returns the result.
3. Random Compliment Generator: Write a function that
returns a random compliment from an array each time
it’s called.
Arrays and Processing Arrays
1. Color Palette Selector: Store an array of colors and let
users pick one to display as the background color.
2. Reverse a List: Let the user enter a list of items, store
them in an array, and display the reversed array.
3. Find the Largest Number: Ask the user to input a
series of numbers, store them in an array, and display
the largest number.

You might also like