Skip to content

jlake70/Python-Functions-Assignment

Repository files navigation

Python-Functions-Assignment

  1. The Calculator App Objective: The aim of this assignment is to build a basic calculator that can perform addition, subtraction, multiplication, and division.

Task 1: Create functions for each arithmetic operation. Task 2: Implement user input to receive numbers and an operation choice. Task 3: Ensure your program can handle division by zero and other potential errors.

  1. The Shopping List Maker Objective: The aim of this assignment is to create a program that helps users make a shopping list.

Task 1: Write a function that lets the user add items to a list. Task 2: Include a feature to remove items from the list. Task 3: Add a function that prints out the entire list in a formatted way.

  1. The Grade Analyzer Objective: The aim of this assignment is to analyze a set of grades and provide statistics.

Task 1: Code a function to calculate the average grade. Task 2: Implement a function to find the highest and lowest grade. Task 3: Create a feature that categorizes grades into letter grades (A, B, C, etc.).

  1. The Quiz Game Objective: The aim of this assignment is to create a quiz game that asks questions and checks answers.

Task 1: Develop a list of questions and answers. Task 2: Write a function that quizzes the user and takes their answers. Task 3: Score the quiz and give the user feedback on their performance.

  1. The Fitness Tracker Objective: The aim of this assignment is to create a program that tracks fitness activities and calories burned.

Task 1: Develop a function to log different fitness activities and their duration. For instance, activities = [’Dancing’, ‘Swimming’, ‘Biking’] and duration = [10, 20, 15] where Dancing corresponds to 10 minutes, Swimming corresponds to 20 minutes, and Biking corresponds to 15 minutes.

Task 2: Write a simple function that estimates calories burned based on the activity and duration. For instance, Total calories burned = Duration (in minutes)*3.5

Task 3: Create a summary function that provides a report of all activities and total calories burned for the day.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages