FutureStarr

How to Put 1 2 on a Calculator

How to Put 1 2 on a Calculator

How to Put 1 2 on a Calculator

You probably use a calculator to figure out how big a bill you have to pay. Looks like someone knows the first step to calculating the bill. Who could be that person?

Calculator

via GIPHY

When describing how to use various calculator functions, this guide gives the exact keys that you need to press using the symbols shown on the keys. This is known as a ‘key sequence’. If the key sequence accesses the second function of a key, or a function from a menu, the name of this function will be given in brackets at the appropriate point in the key sequence. Names in brackets are thus not keys that you press but simply describe the function that is accessed using the previous key sequence. For example, to turn off the calculator, press A variation on the above method is to break the calculation into two parts, and use the memory functions of the calculator to store the result of the first part. The calculator memory is particularly useful when you want to calculate the values of several expressions that have a common part. This common part need be entered only once and its value reused several times subsequently. For example, rewriting the formula for the volume of wood contained in a log as

Have you ever wondered how much the earth weighs? Maybe not, but now that you've been asked, you probably do now! Obviously, the earth weighs a lot. The weight of the earth is 6,000,000,000,000,000,000,000,000 kilograms! Whoa! That's a lot of zeros! What if you were working on a problem involving this weight? You certainly wouldn't want to have to punch that number into a calculator over and over again. How time-consuming!You must realize, however, that you cannot use a financial calculator if you do not understand the fundamental concepts of the time value of money. In fact, it is very easy to royally screw up a problem with a financial calculator if you do not know what you are doing. There are common mistakes students tend to make when first using financial calculators. There are also tips that will simplify your introduction to financial calculators. Before discussing either of these we can first review some of the basic features of financial calculators. (Source: www.shsu.edu)

Number

via GIPHY

def calculate(): operation = input(''' Please type in the math operation you would like to complete: + for addition - for subtraction * for multiplication / for division ''') number_1 = int(input('Please enter the first number: ')) number_2 = int(input('Please enter the second number: ')) if operation == '+': print('{} + {} = '.format(number_1, number_2)) print(number_1 + number_2) elif operation == '-': print('{} - {} = '.format(number_1, number_2)) print(number_1 - number_2) elif operation == '*': print('{} * {} = '.format(number_1, number_2)) print(number_1 * number_2) elif operation == '/': print('{} / {} = '.format(number_1, number_2)) print(number_1 / number_2) else: print('You have not typed a valid operator, please run the program again.') # Add again() function to calculate() function again() def again(): calc_again = input(''' Do you want to calculate again? Please type Y for YES or N for NO. ''') if calc_again.upper() == 'Y': calculate() elif calc_again.upper() == 'N': print('See you later.') else: again() calculate() # Define our function def calculate(): operation = input(''' Please type in the math operation you would like to complete: + for addition - for subtraction * for multiplication / for division ''') number_1 = int(input('Please enter the first number: ')) number_2 = int(input('Please enter the second number: ')) if operation == '+': print('{} + {} = '.format(number_1, number_2)) print(number_1 + number_2) elif operation == '-': print('{} - {} = '.format(number_1, number_2)) print(number_1 - number_2) elif operation == '*': print('{} * {} = '.format(number_1, number_2)) print(number_1 * number_2) elif operation == '/': print('{} / {} = '.format(number_1, number_2)) print(number_1 / number_2) else: print('You have not typed a valid operator, please run the program again.') # Call calculate() outside of the function calculate()

operation = input(''' Please type in the math operation you would like to complete: + for addition - for subtraction * for multiplication / for division ''') number_1 = int(input('Enter your first number: ')) number_2 = int(input('Enter your second number: ')) if operation == '+': print('{} + {} = '.format(number_1, number_2)) print(number_1 + number_2) elif operation == '-': print('{} - {} = '.format(number_1, number_2)) print(number_1 - number_2) elif operation == '*': print('{} * {} = '.format(number_1, number_2)) print(number_1 * number_2) elif operation == '/': print('{} / {} = '.format(number_1, number_2)) print(number_1 / number_2) else: print('You have not typed a valid operator, please run the program again.') (Source: www.digitalocean.com)

 

Related Articles