elif op==16 :
print ("Functions Menu")
print ("j. asinh")
print ("k. acosh")
print ("l. atanh")
fun = raw_input("Choose the function :")
a = float(input("Enter the value :"))
dict6 = {'j':math.asinh(a), 'k':math.acosh(a), 'l':math.atanh(a)}
print ("The result is : " + str(dict6.get(fun)) )
else :
print ("Wrong Choice")
Question:
1. In this program, you will create a class and OOP.
elif op==14 :
print ("Functions Menu")
print ("d. asin")
print ("e. acos")
print ("f. atan")
fun = input("Choose the function :")
a = float(nput("Enter the value :"))
dict4 = {'d':math.asin(a), 'e':math.acos(a), 'f':math.atan(a)}
print ("The result is : " + str(dict4.get(fun)))
elif op==15 :
print ("Functions Menu")
print ("g. sinh")
print ("h. cosh")
print ("i. tanh")
fun = input("Choose the function :")
a = float(input("Enter the angle in radians :"))
dict5 = {'g':math.sinh(a), 'h':math.cosh(a),'i':math.tanh(a)}
print ("The result is : " + str(dict5.get(fun)) )
Question:
1. In this program, you will create a class and OOP.
if op==1 or op==2 or op==3 or op==4 or op==5 or op==6 :
a = int(input("Enter first number"))
b = int(input("Enter second number"))
dict1 = {1:a+b, 2:a-b, 3:a*b, 4:a/b, 5:a%b, 6:a**b}
print ("The result is : " + str(dict1.get(op)))
elif op==7 or op==8 or op==9 or op==10 or op==11 or op==12 :
a = float(input("Enter the number"))
dict2 = {7:math.fabs(a), 8:math.factorial(a), 9:math.log(a), 10:math.ceil(a), 11:math.floor(a), 12:math.sqrt(a)}
print ("The result is : " + str(dict2.get(op)))
elif op==13 :
print ("Functions Menu")
print ("a. sin")
print ("b. cos")
print ("c. tan")
fun = input("Choose the function :")
a = float(input("Enter the angle in radians :"))
dict3 = {'a':math.sin(a), 'b':math.cos(a), 'c':math.tan(a)}
print ("The result is : " + str(dict3.get(fun)))
Question:
1. In this program, you will create a class and OOP.
#Scientific Calculator
import math
print ("MAIN MENU")
print ("1. Addition")
print ("2. Subtraction")
print ("3. Multiplication")
print ("4. Division")
print ("5. Modulus")
print ("6. Exponentiation")
print ("7. Absolute value")
print ("8. Factorial")
print ("9. Logarithm")
print ("10. Round Up")
print ("11. Round Down")
print ("12. Square Root")
print ("13. Trigonometric Functions")
print ("14. Inverse Trigonometric Functions")
print ("15. Hyperbolic Functions")
print ("16. Inverse Hyperbolic Functions")
print("")
print ("NOTE: If you're performing operations in the 1-6 range, don't make the second number zero." )
print()
op = int(input("Enter the operation you want to perform : "))
Question:
1. In this program you will create a class and OOP
Create a program wherein the system should be able to retrieve information like who took a particular book or what are the books checked-out by a specific user.
the website, you get a 10% discount if you are a member. Additionally, you are also getting a discount of 5% on the item because its Father’s Day.
Write a function that takes as input the cost of the item that you are purchasing and a Boolean variable indicating whether you are a member (or not), applies the discounts appropriately, and returns the final discounted value of the item.
Note: The cost of the item need to be an integer
Write a program that inputs the length of two pieces of fabric in feet and inches (as whole numbers) and prints the total.
2. Suppose the university has decided to announce bonus 1 PMS point to employees those have PMS points more than 7. The appraisal will be based on PMS points. We have an array of employees with UID and PMS point . Display the list of employees those would be benefited with bonus. The bonus should be added to the employees who have UID and PMS through the concept of list comprehension.
Input Format ->The input should contain list of employees with UID and PMS point. Output Format ->For each test case, display the UID and PMS point after bonus is being added.
I HAVE ASKED THIS QUESTION EARLIER ALSO BUT IT WAS BEING SOLVED IN C++ BUT I WANT THIS SOLUTION IN PYTHON NOT IN C++
PLEASE SOLVE IT USING PYTHON NOT C++
Given a string that other than letters, numbers, and space if any characters are there
print the count of those characters.
Example
Input: aaa34@raj?where454/
Output: 3
An e-commerce application wants to give discounts to its customers. The discount is
calculated as the product of the sum of even numbers and the sum of odd numbers
present in the bill. Print the discount that a customer can get.
a. Input: 2345, Output: 48
Explanation: even_sum = 2+4 = 6.
Odd_sum = 3+5 = 8.
Product = 6*8 = 48.