ÆÄÀ̽ã¾Æ½Ã´ÂºÐÀÖ³ª¿ä ? Ŭ·¡½ºÂʹè¿ì°íÀִµ¥¿ä

   Á¶È¸ 2702   Ãßõ 0    

수능성적표 만드는 과제인데요 

잘안되어서요 요기밑에 우선 제가 써본건데 

뭐가문제인지봐줄수있으신분 계신가요 ?

클래스를이용하여  학교이름수헙번호등급백분위 나오게하는것이에요 




class student:

    def __init__(self, name=None, highSchool=None, number=0, natScore=0, matScore=0, engScore=0):
   
                 self.__name=name

                 self.__highSchool=highSchool

                 self.__number=number

                 self.__natScore=natScore

                 self.__matScore=matScore

                 self.__engScore=engScore

 

    def setName(self, name):

        self.__name=name

 

    def getName(self):

        return self.__name

 

    def setHighSchool(self, highSchool):

        self.__highSchool=highSchool

 

    def getHighSchool(self):

        return self.__highSchool

 

    def setnatScore(self, natScore):

        self.__natScore=natScore

 

    def getnatScore(self):

        return self.__natScore

 

    def setmatScore(self, matScore):

        self.__matScore=matScore

 

    def getmatScore(self):

        return self.__matScore

 

    def setengScore(self, engScore):

        self.__engScore=engScore

 

    def getengScore(self):

        return self.__engScore

 

def clacNatGrade(self):

    if self.__natScore>=90:

        self.__natScore= '1등급'

    elif self.__natScore>=80:

        self.__natScore= '2등급'

    elif self.__natScore>=70:

        self.__natScore= '3등급'

    elif self.__natScore>=60:

        self.__natScore= '4등급'

    elif self.__natScore>=50:

        self.__natScore= '5등급'

    elif self.__natScore>=40:

        self.__natScore= '6등급'

    elif self.__natScore>=30:

        self.__natScore= '7등급'

    elif self.__natScore>=20:

        self.__natScore= '8등급'

    else:

        self.__natScore= '9등급'

 

def clacMatGrade(self):

    if self.__matScore>=90:

        self.__matScore= '1등급'

    elif self.__matScore>=80:

        self.__matScore= '2등급'

    elif self.__matScore>=70:

        self.__matScore= '3등급'

    elif self.__matScore>=60:

        self.__matScore= '4등급'

    elif self.__matScore>=50:

        self.__matScore= '5등급'

    elif self.__matScore>=40:

        self.__matScore= '6등급'

    elif self.__matScore>=30:

        self.__matScore= '7등급'

    elif self.__matScore>=20:

        self.__matScore= '8등급'

    else:

        self.__matScore= '9등급'

 

def clacEngGrade(self):

    if self.__engScore>=90:

        self.__engScore= '1등급'

    elif self.__engScore>=80:

        self.__engScore= '2등급'

    elif self.__engScore>=70:

        self.__engScore= '3등급'

    elif self.__engScore>=60:

        self.__engScore= '4등급'

    elif self.__engScore>=50:

        self.__engScore= '5등급'

    elif self.__engScore>=40:

        self.__engScore= '6등급'

    elif self.__engScore>=30:

        self.__engScore= '7등급'

    elif self.__engScore>=20:

        self.__engScore= '8등급'

    else:

        self.__engScore= '9등급'

임상일
ªÀº±Û Àϼö·Ï ½ÅÁßÇÏ°Ô.
Áø°ï±è 2019-05
¸·»ó ¼÷Á¦ÇÏ´À¶ó Á¶¹Ù½É ³ª½Ã°ÚÁö¸¸ È£±â½É¿¡ Àû¾îº¾´Ï´Ù

µî±Þ°è»ê ±â´ÉÀÌ Àüü ¿ä±¸»çÇ׿¡ºñÇØ ÄÚµå±æÀÌ°¡ ±é´Ï´Ù
ÀÏ´Ü ÇÑÁٷΠó¸®ÇÕ´Ï´Ù
— grade °è»ê Áߺ¹ —> ÇÔ¼öÇϳª·Î ÃßÃâ —> (10 - Á¡¼öÀÇ10ÀÇÀÚ¸®) Çϸé 1..9 µî±ÞÃßÃâ

¿ä±¸»çÇ× ºÐ¼®À» ´õ ±¸Ã¼È­Çؼ­ ¿ä±¸ÇѰ͸¸ ÃÖ¼Ò·Î ·¯ÇÁÇÏ°Ô ¸¸µì´Ï´Ù ÀÌ»Ú°Ô ¸¸µé·Á¸é ³¡ÀÌ ¾ø½À´Ï´Ù (getter/setter, ÆÄÀ̽ãŬ·¡½º ¸ÅÁ÷ È°¿ëµé)

°í°´¿äû: ¡°Çб³À̸§/¼öÇé¹øÈ£/µî±Þ¹éºÐÀ§(´©¶ô)¡± ³ª¿À°ÔÇÏ´Â

¼³°è
¾ÆÀÌÅÛ°ü¸®, ¾ÆÀÌÅÛ µÎ°³ÀÇ Å¬·¡½º¸¦ 1:´Ù °ü°è·Î ¸¸µé°í
¾ÆÀÌÅÛ°ü¸®¿¡
- ¾ÆÀÌÅÛÀÇ Á¡¼ö¿¡µû¸¥ Á¤·Ä±â´É ÇÊ¿ä
- Ãâ·Â±â´ÉÃß°¡
¾ÆÀÌÅÛ¿¡
- ¼öÇè¹øÈ£/Çб³/±¹/¿µ/¼ö °ªÀúÀå
¾ÆÀÌÅÛ°ü¸®, ¾ÆÀÌÅÛ Å¬·¹½º¿¡ ±â´É¿ä±¸»çÇ×À» ÀûÀýÈ÷ ¹èºÐÇϼ¼¿ä

Å×½ºÆ®·Î »ç¿ëÇÒ 10°³Á¤µµÀÇ ¾ÆÀÌÅÛÀ» ¸ÕÀú Á¤ÀÇÇÑÈÄ¿¡ À§¼³°èÇÑ ³»¿ëÀ» Çϳª¾¿ ÄÚµå·Î º¯È¯ /Å×½ºÆ®Çϸ鼭 ±¸ÇöÇÕ´Ï´Ù
Dreaday 2019-05
4°³ ÀÌ»óÀÇ Á¶°ÇÀ̶ó¸é switch case¹® Çϸé ÁÁÀ» °Í °°½À´Ï´Ù
     
chis 2019-05
ÆÄÀ̽ãÀº ½ºÀ§Ä¡¹®ÀÌ ¾øÀ»°Å¿¡¿ä..
¹«¾Æ 2019-05
Àß ¾ÈµÈ´Ù°í Çϼ̴µ¥ ¾î´À ºÎºÐÀÌ ¾ÈµÇ´ÂÁö ¼³¸íÀÌ ºüÁ³¾î¿ä.
ÀÏ´Ü ÇÑ °¡Áö ÀÌÇØ ¾È°¡´Â ºÎºÐÀÌ..
if self.__engScore>=90:
        self.__engScore= '1µî±Þ'
ÀÌ·± ½ÄÀÇ ¹®ÀåÀÌ º¸À̴µ¥..
self.__engScore ÀÇ ÀÚ·áÇü ¹º°¡¿ä? int? string?
ÆÄÀ̽ãÀº ÀÌ·± °Å ±¸ºÐÇÏÁö ¾Ê´Â °Ç°¡¿ä?? Àß ¸ô¶ó¼­..
ÀÚ·áÇüÀÌ ¸· È¥¿ëµÇ°í Àֳ׿ä.
¸¸¾à È¥¿ëÀÌ µÈ´Ù°í ÇÏ´õ¶óµµ. ³ªÁß¿¡ ½ºÆ®¸µÀ» Á¤¼ö¿Í ºñ±³ÇÏ´Â »óȲÀÌ »ý±æ µí Çѵ¥¿ä.


QnA
Á¦¸ñPage 1297/5680
2014-05   4946680   Á¤ÀºÁØ1
2015-12   1483339   ¹é¸Þ°¡
2006-04   4821   ÇÏ»óÇÊ
2004-07   7867   ÀÌÀåÀç
2005-09   5160   ¹®ÁÖÇö
2008-10   5238   ÃÖ¸¶·ç
2008-11   7098   ÀÌÁø¼ö
2009-01   5247   ÀÌ»óµ·
2023-03   1506   ¾ÈöÇö
2003-11   9365   °í¼º³²
2004-06   8762   ¹ÚÀÌ¿õ
2007-04   4696   ÇöÈñö
2005-01   6736   ±è´ëÆò
2005-03   6523   Á¶³²Çü
2002-10   13546   ¹ÚµÎÄ¥
2005-12   4831   ¼ÕÁöȲ
2006-01   5205   ¼ÛÀçÈÆ
2004-03   8073   ÀÌ°æȯ
2005-05   5491   ¹ÚÁØ¿ë
2002-12   12359   ¹ÚÀÌ¿õ
2008-12   5170   Á¶ÀϱÇ
2008-12   5397   Á¶ÀçÇö