# data[].attributes.body
MUHAMMAD ZAHIRUL HAQ BIN MOHD SARDI (19000609)

# data[].attributes.body
SHYAZLIN BINTI MUSHIDI 19000468

# data[].attributes.body
MUHAMMAD SHAZWAN BIN SOBRI
19000784

# data[].attributes.body
Sarah Hanni Suhaifuddin
19000521

# data[].attributes.body
Nurul Izzah (19000593)

# data[].attributes.body
Nurul Azila (19000584)

# data[].attributes.body
SHASWIN PILLAII JEYASEELAN 19000888

# data[].attributes.body
Saidatun Fikriyah (19000752)

# data[].attributes.body
NUUR NISHA SHAZWIN
19000502

# data[].attributes.body
YASMIN NUR KHALIDAH
19000738

# data[].attributes.body
AMIRAH RASYIDAH ROHAIZAD
19000455

# data[].attributes.body
Hakimie
19000381

# data[].attributes.body
Araventhran
19000403

# data[].attributes.attachment_link.title
I am sharing 'Week 12 Lab 1 & 2 (Ans)' with you

# data[].attributes.body
Madelyn Teoh Wen Qian
19000423

# data[].attributes.body
ABDUL HANAN 19000565

# data[].attributes.body
Ravineshwaren Pubalan (19000719)
Katiravan Munusamy (19000799)
Tey Jue Xiang (19000693)

# data[].attributes.body
Week 12
Rayan roy

# data[].attributes.body
Rayan Roy 19000652
Tan Yu Ting 19000505
Louis Kon 19000362

# data[].attributes.body
TAN HON CHI 19000788 COE

# data[].attributes.body
AZIZUL 19000884
HAQIEMI 19000896
LUQMAN 19000801

# data[].attributes.body
IMAN SHAQ 19000634
ADAM 19000710
SHAZWAN 19000784

# data[].attributes.body
19000405
19000441
19000737

# data[].attributes.attachment_link.readable_text
def get_input():
    choice=str(input('please enter your choice [A/S/M/D/Q]: '))

def calculate_add():
    num_1=float(input('please enter your first number: '))
    num_2=float(input('please enter your second number: ')
    result=num_1+num_2
    print('the result is ',result)
    
def calculate_subtract():
    num_1=float(input('please enter your first number: '))
    num_2=float(input('please enter your second number: ')
    result=num_1-num_2
    print('the result is ',result)
 
def calculate_multiply():
    num_1=float(input('please enter your first number: '))
    num_2=float(input('please enter your second number: ')
    result=num_1*num_2
    print('the result is ',result)
    
def calculate_divide():
    num_1=float(input('please enter your first number: '))
    num_2=float(input('please enter your second number: ')
    result=num_1/num_2
    print('the result is ',result)

print('Please choose which operation to perform')
print('[A]dd')
print('[S]ubtract')
print('[M]ultiply')
print('[D]ivide')
print('[Q]uit')


if choice=='A':
    calculate_add()
    
elif choice=='S':
    calculate_subtract()
   
elif choice=='M':
    calculate_multiply()
    
elif choice=='D':
    calculate_divide()
  
elif choice=='Q':
    print('Thank you :)')

# data[].attributes.body
Ravineshwaren Pubalan (19000719)
Katiravan Munusamy (19000799)
Tey Jue Xiang (19000693)

# data[].attributes.body
NISHA 19000502

# data[].attributes.body
activity 2 Q1,2
Tan Hon Chi 19000788
Muhammad Aiman Mohd Suhaimi 19000840
Sarah Hanni Suhaifuddin 19000521

# data[].attributes.body
Hakimie 19000381
Diana 19000739

# data[].attributes.body
Hakimie 19000381
Diana 19000739

# data[].attributes.body
abdul hanan 19000565
isyraf 19000628

# data[].attributes.body
Madelyn Teoh 19000423

# data[].attributes.body
Shaswin 19000888

# data[].attributes.body
Shaswin 19000888

# data[].attributes.body
Shaswin 19000888

# data[].attributes.body
Haqiemi 19000896
Luqman 19000804
Azizul 19000884

# data[].attributes.body
iman shaq 19000634
adam          19000710
shazwan 19000784

# data[].attributes.body
Rayan Roy 19000652
Tan Yu Ting 19000505
Louis Kon 19000362

# data[].attributes.body
Nurul Azila  19000584
Nurul Izzah  19000593
Yasmin Nur Khalidah  19000738

# data[].attributes.body
Saidatun (19000752)
Amirah (19000455)

# data[].attributes.body
ACTIVITY #1
Abdul Hanan 19000565
Isyraf 19000628

# data[].attributes.body
Shyazlin (19000468)
Prema (19000430)

# data[].attributes.body
azizul 19000884
haqiemi 19000896
luqman 19000801

# data[].attributes.body
19000784
19000634
19000710

# data[].attributes.body
isyraf 19000628
Shaswin 19000888
Abdul Hanan 19000565

# data[].attributes.body
Activity 1 A B C
Adam 19000710
Shaqir 19000634
Shazwan 19000784

# data[].attributes.body
Abdul Hanan 19000565
Shaswin 19000888
Isyraf 19000628

# data[].attributes.body
19000693
19000799
19000719

# data[].attributes.body
19000405
19000441
19000737

# data[].attributes.body
Tan Hon Chi 19000788
Muhammad Aiman Mohd Suhaimi 19000840
Sarah Hanni 19000521

# data[].attributes.body
maisara 19000436
araventharan 19000406
intan 19000729

# data[].attributes.body
Muhammad Haziq  19000817
Zahirul Haq 19000609
Farouq Ubaidillah 19000897

# data[].attributes.body
NISHA 19000502
YASMIN 19000738

# data[].attributes.body
Nurul Izzah  19000593
Nurul Azila  19000584

# data[].attributes.body
Intan 19000729
Maisara 19000436
Araven 19000403

# data[].attributes.body
Abdul Hanan 19000565
Isyraf 19000628
Shaswin 190000888

# data[].attributes.body
SHYAZLIN (19000468)
AMIRAH RASYIDAH (19000455)
SAIDATUN FIKRIYAH NURAIN (19000752)

# data[].attributes.body
Week 10 lab 1 activity 1
Tey Jue Xiang 19000693
Katiravan 19000799
Ravineshwaren 19000719

# data[].attributes.body
Rayan Roy 19000652
Tan Yu Ting 19000505
Louis Kon 19000362

# data[].attributes.body
Diana 19000739
Najihah 19000725
Madelyn 19000423

# data[].attributes.body
Diana 19000739
Najihah 19000725
Madelyn 19000423

# data[].attributes.body
Luqman 19000801
Haqiemi 19000896
Azizul 19000884

# data[].attributes.body
Rayan Roy 19000652
Tan Yu Ting 19000505
Louis Kon 19000362

# data[].attributes.body
week 10 lab 1
Tan Hon Chi 19000788
Muhammad Aiman Mohd Suhaimi 19000840
Sarah Hanni 19000521

# data[].attributes.body
Adam 19000710
Kirtik 19000414
Iman 19000634

# data[].attributes.body
intan 19000729
maisara 19000436
ara 19000403

# data[].attributes.body
Haziq Khairee 19000817

Zahirul Haq 19000609

Farouq Ubaidillah 19000897

# data[].attributes.body
Madelyn Teoh 19000423

# data[].attributes.body
Amirah 19000455
Saidatun 19000752

# data[].attributes.body
YASMIN 19000738
NISHA 19000502

# data[].attributes.body
Izzah 19000593
Azila 19000584

# data[].attributes.body
Abdul Hanan 19000565
Isyraf 19000628
Shaswin 19000888

# data[].attributes.body
Hakimie 19000381
Diana 19000739
Najihah 19000725

# data[].attributes.body
Madelyn Teoh 19000423

# data[].attributes.body
Aimi 19000405
Aishah 19000737
Izyan 19000441

# data[].attributes.attachment_link.readable_text
#Aimi Nurkamielia 19000405
#Nurizyan Natasya 19000441
#Nur Aishah 19000737

print('Enter 2 numbers and perform calculation')
num1=int(input('Enter first number:'))
num2=int(input('Enter second number:'))

print('----Select Operation----')
print('[A]dd')
print('[S]ubstract')
print('[M]ultiply')
print('[D]ivide')
operation=str(input('Enter Choice (A/S/M/D): '))

print('--------Calculating--------')
if (operation=='A'):
    addition=num1+num2
    print('{} + {} = {}'.format(num1,num2,addition))
    
elif (operation=='S'):
    substraction=num1-num2
    print('{} - {} = {}'.format(num1,num2,substraction))
    
elif (operation=='M'):
    multiplication=num1*num2
    print('{} * {} = {}'.format(num1,num2,multiplication))

elif (operation=='D'):
    division=num1/num2
    print('{} / {} = {}'.format(num1,num2,division))
    
else: print('invalid input')

print('---------------------------')
    
input('Press enter to exit')

# data[].attributes.body
Ara(19000403)
Mai(19000436)
Intan(19000729)

# data[].attributes.body
Shyazlin (19000468)
Prema (19000430)

# data[].attributes.body
Aimi 19000405
Aishah 19000737
Izyan 19000441

# data[].attributes.attachment_link.readable_text
#Aimi Nurkamielia 19000405
#Nurizyan Natasya 19000441
#Nur Aishah 19000737

print('enter 2 numbers and perform calculation')
num1=int(input('enter first number: '))
num2=int(input('enter second number: '))
print('----select operation----')
print('[A]dd')
print('[S]ubtract')
print('[M]ultiply')
print('[D]ivide')
print('[Q]uit')
choice=str(input('enter choice[A/S/M/D/Q]: '))
while choice=='A'or'S'or'M'or'D'or'Q':
    print('----calculating----')
    if choice=='A':
        sum=num1+num2
        print('{}+{}={}'.format(num1,num2,sum))
        break
    elif choice=='S':
        sum=num1-num2
        print('{}-{}={}'.format(num1,num2,sum))
        break
    elif choice=='M':
        sum=num1*num2
        print('{}*{}={}'.format(num1,num2,sum))
        break
    elif choice=='D':
        while num2!=0:
            continue
        print('denominator cannot be 0')
        num3=int(input('enter another number: '))
        print('denominator cannot be 0')
        num4=int(input('enter another number: '))
        sum=num3/num4
        print('{}/{}={}'.format(num3,num4,sum))
        break
    if choice=='Q':
        print('byeeeee')
        break
    print('invalid letter')
    choice=str(input('please enter choice[A/S/M/D/Q]: '))
    continue
print('------------')
    

# data[].attributes.body
Hakimie 19000381
Diana 19000739
Najihah 19000725

# data[].attributes.body
jue xiang 19000693
ravi 1900719
katir 19000799

# data[].attributes.body
Rayan Roy 19000652
Tan Yu Ting 19000505
Louis Kon 19000362

# data[].attributes.attachment_link.readable_text
'''

Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl,
C#, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog.
Code, Compile, Run and Debug online from anywhere in world.

'''
print("Enter 2 numbers and perform calculation")
print("The operation will be first number (+,-,*,/) second number")
print("----Select operation.----")
print("[A]dd")
print("[S]ubtract")
print("[M]ultiply")
print("[D]ivide")
print("[Q]uit to quit the program")

choice=str(input("Enter choice(A/S/M/D/Q): "))
while (choice.upper()!="Q"):   
    
    
    if (choice== "A" or choice=="a"): 
        num_1=eval(input("Enter first number: "))
        num_2=eval(input("Enter second number: "))
        result=num_1+num_2
        choice="+"
        print("-------Calculating-------")
        print(num_1,choice,num_2,"=",result)
        print("-------------------------")
        
        
    elif (choice== "S" or choice=="s"): 
        num_1=eval(input("Enter first number: "))
        num_2=eval(input("Enter second number: "))
        result=num_1-num_2
        choice="-"
        print("-------Calculating-------")
        print(num_1,choice,num_2,"=",result)
        print("-------------------------")
        
    elif (choice== "M" or choice=="m"):
        num_1=eval(input("Enter first number: "))
        num_2=eval(input("Enter second number: "))
        result=num_1*num_2
        choice="*"
        print("-------Calculating-------")
        print(num_1,choice,num_2,"=",result)
        print("-------------------------")
        
    elif (choice== "D" or choice=="d"):
        num_1=eval(input("Enter first number: "))
        num_2=eval(input("Enter second number: "))
        while num_2==0:
            print("The denominator(second number) cannot be zero. Please enter another number.")
            num_2=eval(input("Enter another number: "))
        result=num_1/num_2
        choice="/"
        print("-------Calculating-------")
        print(num_1,choice,num_2,"=",result)
        print("-------------------------")
        
        
    elif (choice== "Q" or choice=="q"):
        print("The calculation system is end")
        
    else: 
        print("You have entered invalid input. Please enter a valid input.")
        
    choice=input("Enter choice(A/S/M/D/Q): ")

print("The calculation system is end")

# data[].attributes.body
Tan Hon Chi 19000788
Muhammad Aiman Mohd Suhaimi 19000840
Sarah Hanni Suhaifuddin 19000521

# data[].attributes.body
Tan Hon Chi 19000788
Sarah Hanni Binti Suhaifuddin 19000521
Muhammad Aiman Bin Mohd Suhaimi 19000840

# data[].attributes.body
Azizul Hafiz 19000884
Aiman Haqiemi 19000896

# data[].attributes.body
Rayan Roy 19000652
Tan Yu Ting 19000505
Louis Kon 19000362

# data[].attributes.attachment_link.readable_text
'''

Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl,
C#, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog.
Code, Compile, Run and Debug online from anywhere in world.

'''
print("Enter 2 numbers and perform calculation")
num_1=eval(input("Enter first number: "))
num_2=eval(input("Enter second number: "))
print("----Select operation.----")
print("[A]dd")
print("[S]ubtract")
print("[M]ultiply")
print("[D]ivide")

choice=input("Enter choice(A/S/M/D): ")
if (choice== "A" or choice=="a"): 
    result=num_1+num_2
    choice="+"
elif (choice== "S" or choice=="s"): 
    result=num_1-num_2
    choice="-"
elif (choice== "M" or choice=="m"):
    result=num_1*num_2
    choice="*"
elif (choice== "D" or choice=="d"):
    result=num_1/num_2
    choice="/"
else: 
    print("Please enter correct letter to represent the math operation")

print("-------Calculating-------")
print(num_1,choice,num_2,"=",result)
print("-------------------------")

# data[].attributes.body
Madelyn Teoh Wen Qian 19000423

# data[].attributes.body
Week 8 lab1
Iman shaq 19000634
Shazwan 19000784
Adam 19000710

# data[].attributes.body
YASMIN 19000738
NISHA 19000502

# data[].attributes.body
Iman shaq 19000634
Adam 19000710
Shazwan 19000784

# data[].attributes.body
zahirul 19000609
farouq 19000897
haziq 19000817

# data[].attributes.body
shaswin 19000888
Isyraf 19000628
Abdul Hanan 19000565

# data[].attributes.body
Adam 19000710
Iman shaq 19000634
Shazwan 19000784

# data[].attributes.body
Aimi 19000405
Aishah 19000737
Izyan 19000441

# data[].attributes.body
hakimie 19000381
diana 19000739
najihah 19000725

# data[].attributes.body
Nurul Izzah 19000593
Nurul Azila  19000584

# data[].attributes.body
hakimie 19000381
diana 19000739
najihah 19000725