# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

import math
r = float(input('Enter the length from the center to a vertex:'))
s = 2 * r * math.sin(math.pi / 5)
a = 5 * s * s / (4 * math.tan(math.pi / 5))
print('The area of the pentagon is %0.2f' %(a))

import math
x1,y1 = eval(input('Enter point 1 (latitude and longitude) in degrees:'))
x2,y2 = eval(input('Enter point 2 (latitude and longitude) in degrees:'))
x1 = math.radians(x1)
x2 = math.radians(x2)
y1 = math.radians(y1)
y2 = math.radians(y2)
r = 6371.01
d = r * math.acos(math.sin(x1) * math.sin(x2) + math.cos(x1) * math.cos(x2) * math.cos(y1 - y2))
print('The distance between the two points is', d,'km')

import math
s = eval(input('Enter the side:'))
a = 5 * (s**2) / (4 * math.tan(math.pi/5))
print('The area of the pentagon is ',a)

import math
i = 3
n = eval(input('Enter the number of sides:'))
s = eval(input('Enter the side:'))
a = n * (s**2) / (4 * math.tan(math.pi/n))
if (n >= i):
    print('The area of the pentagon is ',a)
else:
    print('Please input the integer of higher two!')

n = eval(input('Enter an ASCII code:'))
alp = chr(n)
print('The character is',alp)

# +
n = input('Enter employee’s name:')
h = eval(input('Enter number of hours worked in a week:'))
hr = eval(input('Enter hourly pay rate:'))
ft = eval(input('Enter federal tax withholding rate:'))
st = eval(input('Enter state tax withholding rate:'))

cp = hr * h
fw = cp * ft
sw = cp * st
td = fw + sw
np = cp - td

print('\n','Employee Name:',n)
print('Hours Worked:',h)
print('Pay Rate:',hr)
print('Cross Pay:',cp)
print('Deduction:','\n',' Federal withholding:','$',fw,
      '\n',' State Withholding:','$',sw,'\n',
      ' Total Deduction:','$',td)
print('Net Pay:','$',np)
# -

n = eval(input('Enter an integer:'))
s = ((n%10)*1000)+(((n//10)%10)*100)+(((n//100)%10)*10)+(n//1000)
print('The reversed number is',s)




StarcoderdataJupyterScriptsDedupFiltered