0% found this document useful (0 votes)
1 views

Module End Activities

The document outlines four programming projects: a command-line calculator with basic arithmetic and advanced functions, a todo list application for task management, a quiz game with category selection and score tracking, and a Hangman game for word guessing. Each project includes specific requirements such as error handling, modularization, and user interaction features. The projects aim to enhance programming skills through practical application development.

Uploaded by

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

Module End Activities

The document outlines four programming projects: a command-line calculator with basic arithmetic and advanced functions, a todo list application for task management, a quiz game with category selection and score tracking, and a Hangman game for word guessing. Each project includes specific requirements such as error handling, modularization, and user interaction features. The projects aim to enhance programming skills through practical application development.

Uploaded by

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

Module End Activities

Project 1: Calculator
Create a command-line calculator that can perform basic arithmetic
operations such as addition, subtraction, multiplication, and division.
Additionally, add functionality for exponentiation, square root, and basic
trigonometric functions (sin, cos, tan).

Requirements:

1. The calculator should take user input for the operation and the numbers
involved.
2. Implement error handling to ensure the program doesn't crash on
invalid input.
3. Allow the user to perform multiple calculations in a single run until they
choose to exit.
4. Use functions to modularize different operations (e.g., add, subtract,
multiply, etc.).
5. Add a feature to store and recall previous results.

Project 2: Todo List Application

Develop a simple todo list application that allows users to add, remove, and
view tasks. The application should provide a basic command-line interface
for interaction.

Requirements:

1. Implement basic operations: add a task, mark a task as complete,


remove a task, and view all tasks.
2. Use a data structure (e.g., list, dictionary) to store tasks.
3. Include error handling for cases such as trying to remove a non-existent
task.
4. Allow the user to prioritize tasks or assign due dates.
5. Use functions to modularize different parts of the application.

1|Page
Project 3: Quiz Game

Develop a quiz game that asks users a series of questions from different
categories (e.g., science, history, general knowledge). The game should
keep track of the user's score and provide feedback on their performance.

Requirements:

1. Store quiz questions in a data structure (e.g., list of dictionaries).


2. Randomly select questions for each quiz session.
3. Keep track of the user's score and display it at the end of the quiz.
4. Allow users to choose the quiz category before starting.
5. Implement a timer for each question.

Project4: Hangman Game

Create a command-line Hangman game that allows users to guess a


word. The game should display a series of underscores representing the
letters in the word, and the player must guess letters to uncover the hidden
word.

Requirements:

1. The program randomly selects a word from a predefined list.


2. Display the current state of the word with underscores for unrevealed letters.
3. Prompt the user to guess a letter.
4. Provide feedback on whether the guessed letter is correct or incorrect.
5. Allow the user to keep guessing until they either correctly guess the word
or run out of attempts.
6. Display a message indicating whether the player won or lost.

2|Page

You might also like