• Congratulations to the Class of 2025 on your results!
    Let us know how you went here
    Got a question about your uni preferences? Ask us here

Class of 2025 (2025 HSC CHAT) (12 Viewers)

Kat.crazi

𝓇𝑒𝓁𝑒𝒶𝓈𝑒𝒹
Joined
Aug 25, 2024
Messages
1,367
Gender
Female
HSC
2025
oops sorry b4 as in before but HOPEFULLY I GET HIGH BAND 5S AND 6S pls wish me luck ty ily
Good luck! If it’s any consolation I’m also in a similar boat, trying to get b6s but pretty stressed over sem 1
we can do it!!
 

Tony Stark

Well-Known Member
Joined
Jan 22, 2025
Messages
442
Location
Where th4run is
Gender
Male
HSC
2025
Python:
def linear():
    fx = input('Enter linear equation (y=mx+c): ').lower()
    #testing if there is a value for c, if not it is 0
    if fx[-1] == 'x':
        c = 0
    else:
        c = int(fx.partition('x')[-1])
    #testing if there is a value for m, if not it is 1
    if fx[0] == 'x':
        m = 1
    elif fx[0] != 'x':
        m = int(fx.partition('x')[0])
    else:
        m = int(input('Value for {y[0]}? '))
    print(f'm = {m}, c = {c}')
    obj = 'O'
    # if '-' not in fx:
    #     c = int(-c)
    x = 10
    # if m >= 3:
    #     obj = '|'
    # elif m < 3:
    #     obj = '/'
    print('^')
    while x > 1:
        for i in range(m-1):#logic to leave space for obj
            print('|') #move cursor downwards by m amount
            y = round((m * x) + c)
        print(f'|{' '*(x-2)}', end='')#-2 because there are two characters printed on the line
        print(obj)
        x = x - 1
    # print(obj)
    # for i in range(c):
    #     print('|')
    for i in range(c):
        print('|') 
    print(f'{'﹉'*7}>')
        
while True:
    linear()
Beta program I will name 'Delta+' because why not (e.g input 3x+5)
 
Last edited:

Socialism

🏴‍☠️Pirate Queen🏴‍☠️
Moderator
Joined
Jun 3, 2024
Messages
2,864
Location
🏳️‍⚧️Transnistria🏳️‍⚧️
Gender
Female
HSC
2026
Python:
def linear():
    fx = input('Enter linear equation (y=mx+c): ').lower()
    #testing if there is a value for c, if not it is 0
    if fx[-1] == 'x':
        c = 0
    else:
        c = int(fx.partition('x')[-1])
    #testing if there is a value for m, if not it is 1
    if fx[0] == 'x':
        m = 1
    elif fx[0] != 'x':
        m = int(fx.partition('x')[0])
    else:
        m = int(input('Value for {y[0]}? '))
    print(f'm = {m}, c = {c}')
    obj = 'O'
    # if '-' not in fx:
    #     c = int(-c)
    x = 10
    # if m >= 3:
    #     obj = '|'
    # elif m < 3:
    #     obj = '/'
    print('^')
    while x > 1:
        for i in range(m-1):#logic to leave space for obj
            print('|') #move cursor downwards by m amount
            y = round((m * x) + c)
        print(f'|{' '*(x-2)}', end='')#-2 because there are two characters printed on the line
        print(obj)
        x = x - 1
    # print(obj)
    # for i in range(c):
    #     print('|')
    for i in range(c):
        print('|')
    print(f'{'﹉'*7}>')
       
while True:
    linear()
Beta program I will name 'Delta+' because why not (e.g input 3x+5)
ts so hard to read in dark mode 😭
 

Socialism

🏴‍☠️Pirate Queen🏴‍☠️
Moderator
Joined
Jun 3, 2024
Messages
2,864
Location
🏳️‍⚧️Transnistria🏳️‍⚧️
Gender
Female
HSC
2026

Users Who Are Viewing This Thread (Users: 1, Guests: 11)

  • Top