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

# + [markdown] id="view-in-github" colab_type="text"
# <a href="https://colab.research.google.com/github/kimmycorpuz/CPEN-21A-ECE-2-1/blob/main/Midterm_Exam.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a>

# + [markdown] id="nqtJ_-uW3VJj"
# ###Problem Statement 1

# + colab={"base_uri": "https://localhost:8080/"} id="znYWicnD3hPi" outputId="33526552-7fd0-4534-bf54-ce3059fca849"
print("Full Name: <NAME>")
print("Student Number: 202013287")
print("Age: 20 years old")
print("Birthday: November 19, 2001")
print("Address: Block 32 Lot 1 Phase 2 Sonoran St. Sunrise Place, Tres Cruses, Tanza Cavite")
print("Course: Bachelor of Science in Electronics and Communication Engineering")
print("Last Semester GWA: 1.94")

# + [markdown] id="pKZ99rHx6Xnn"
# ###Problem Statement 2

# + colab={"base_uri": "https://localhost:8080/"} id="6rAgfBps6gMk" outputId="f38e441f-4385-43eb-9257-f4d75ee7561d"
n= 4
answ="Y"

print(2<n) and (n<6) #a
print(2<n) or (n==6) #b
print(not(n<6 or n==6)) #c
print(not(n<6)) #d
print((answ=="Y")) or  ((answ=="y")) #e
print((answ=="Y")) and (answ=="y") #f
print(not(answ=="y")) #g 
print((n==2)) and ((n==5+1)) or ((answ=="No")) #h
print((n==2) and answ(n=7)) or (answ=="Y") #i
print(n==2) and ((n==7) or (answ=="Y"))

# + [markdown] id="kKp_7v-wAOJd"
# ###Problem Statement 3

# + colab={"base_uri": "https://localhost:8080/"} id="4cTJgczXARdv" outputId="e52c3c34-bb1f-4a2a-ff90-3505faa6b153"
x=2
y=-3
w=7
z=-10

print(x/y)
print(w/y/x)
print(z/y%x)
print(x%y)
print(z%w-y/x*5+5)
print(9-x%(2+y))
print(z//w)
print(2+y**2)
print(w/x*2)

StarcoderdataJupyterScriptsDedupFiltered