Creating Calculator Using Python Language Presentation
# -*- coding: utf-8 -*- “””SimpleCalculator.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/14EJkBaNAm… “”” # Python program for simple calculator # Function to add two numbers def add(num1, num2): return num1 + num2 # Function to subtract two numbers def subtract(num1, num2): return num1 – num2 # Function to multiply two numbers def multiply(num1, num2): return num1 * num2 # Function to divide two numbers def divide(num1, num2): return num1 / num2 print(“Please select operation -\n” \ “1. Add\n” \ “2. Subtract\n” \ “3. Multiply\n” \ “4. Divide\n”) # Take input from the user select = int(input(“Select operations form 1, 2, 3, 4 :”)) number_1 = int(input(“Enter first number: “)) number_2 = int(input(“Enter second number: “)) if select == 1: print(number_1, “+”, number_2, “=”, add(number_1, number_2)) elif select == 2: print(number_1, “-“, number_2, “=”, subtract(number_1, number_2)) elif select == 3: print(number_1, “*”, number_2, “=”, multiply(number_1, number_2)) elif select == 4: print(number_1, “/”, number_2, “=”, divide(number_1, number_2)) else: print(“Invalid input”)
Grade 12-Term 1-Project
“Derivative of: Displacement-Velocity-Acceleration”
1) For this term’s project you are asked to make a
PowerPoint presentation about “How differentiation
effect on Displacement, Velocity and Acceleration ”
What are expected on this project?
Groups must prepare explanation-proofs about the benefit,
usage, pictures, and units of these quantities in real life
applications
2) This presentation should contain at least 6 slides, and
each student should work individually. Due on Saturday
the 20th of November.
3) NOTE: no projects will be accepted after the mentioned due
date.
4) SLIDE 1: should contain your Name and Class.
5) SLIDE 2: should contain a good description and
presentation about your applications with definitions.
6) SLIDE 3 and 4: should contain pictures of Real Life
Application with a description of each picture.
7) SLIDE 5: mention one mathematical example
according to your application with explanation.
Programming Part:
8) Slide 6: Create a calculator by using Python programming
language to calculate simple equations (see the instructions
below:)
1
Creating Calculator by using Python
Project Overview
In this project, you will show us how to use Python to build your own calculator.
Project Instructions:
Build your own program in Python that functions as a calculator. Think of how a typical calculator
works in real life as your starting point, and then brainstorm how to break this down into smaller steps
you’ll need to add into your code.
This is how Maya broke down a calculator into implementable steps:
1. The user will input a number.
2. Then an operation.
3. Then another number.
4. And then the program will return the answer.
5. The calculator will keep asking for input until the user tells it to stop.
Try to do the project on your own first and get creative with it if you want!
Learning outcomes:
Practice using conditionals, type conversion, and while loops.
•
Language: Python
•
Juni Level: Python Level 2
•
Core concepts: While loops, Conditionals, Arithmetic Operations
•
Lines of Code: ~40 line
•
Difficulty:Easy/Moderate
2
Calculator by Python
Poor
4 pts
Functionality
Coding
Elements:
Program mostly works and fulfils some
requirements
Program works and fulfills all
requirements
Limited comments
Inconsistent comments, but what is there is
useful.
Clear comments fully
describe what the learner was
trying to achieve
Included none of the following
elements:
Included some of the following elements:
Included all of the following
elements:
The solution has been partly
evaluated and at least one
improvement has been
suggested.
? Variables
? Integers
? Print
? While loops
? If/Else statements
Evaluation takes into account the
requirements and more than one area of
improvement has been identified.
Requirements and Submission Info:
•
•
•
•
•
Good
7.5 pts
Program does not work but
appears to address some
requirements
? Variables
? Integers
? Print
? While loops
? If/Else statements
Evaluation
Fair
5.5 pts
Group work (maximum number is 4 members in each group)
Name and section clearly applied to the project
The due date is Nov.18th,2021
No screenshots, the acceptable files are Word doc, IDLE FILE(.py), repl.it links.
Remember the deadline is NOV.18th,2021
3
? Variables
? Integers
? Print
? While loops
? If/Else statements
Realistic evaluation,
comparing the solution to the
requirements and identifying
areas for improvement.
Project Rubric:
4
Physics Rubric :
5
Top-quality papers guaranteed
100% original papers
We sell only unique pieces of writing completed according to your demands.
Confidential service
We use security encryption to keep your personal data protected.
Money-back guarantee
We can give your money back if something goes wrong with your order.
Enjoy the free features we offer to everyone
-
Title page
Get a free title page formatted according to the specifics of your particular style.
-
Custom formatting
Request us to use APA, MLA, Harvard, Chicago, or any other style for your essay.
-
Bibliography page
Don’t pay extra for a list of references that perfectly fits your academic needs.
-
24/7 support assistance
Ask us a question anytime you need to—we don’t charge extra for supporting you!
Calculate how much your essay costs
What we are popular for
- English 101
- History
- Business Studies
- Management
- Literature
- Composition
- Psychology
- Philosophy
- Marketing
- Economics