合肥生活安徽新聞合肥交通合肥房產(chǎn)生活服務(wù)合肥教育合肥招聘合肥旅游文化藝術(shù)合肥美食合肥地圖合肥社保合肥醫(yī)院企業(yè)服務(wù)合肥法律

        COMP9021代做、代寫Python設(shè)計程序

        時間:2024-03-07  來源:合肥網(wǎng)hfw.cc  作者:hfw.cc 我要糾錯



        COMP**21 Principles of Programming
        Term 1, 2024
        Coding Quiz 2
        Worth 4 marks and due Week 4 Thursday @ 9pm
        Description
        You are provided with a stub in which you need to insert your code where indicated
        without doing any changes to the existing code to complete the task.
        The current code will accept a zero or positive integer (that is, non-strictly negative integer)
        with possible leading 0’s and converts it to base 8 (keeping leading 0’s, if any).
        Given the following directions:
        0: Move North
        1: Move North-East
        2: Move East
        3: Move South-East
        4: Move South
        5: Move South-West
        6: Move West
        7: Move North-West
        Reading the number written in base 8 from right to left. We start from a position that is the
        unique position where the switch is on. Moving to a position switches on to off and off to
        on there. By default, all positions are off.
        Your program should display the minimal rectangular shape that includes all on positions as
        shown in the test cases below.
        2
        Due Date and Submission
        Quiz 1 is due Week 4 Thursday 7 March 2024 @ 9.00pm (Sydney time).
        Note that late submission with 5% penalty per day is allowed up to 3 days from the due
        date, that is, any late submission after Week 4 Sunday 10 March 2024 @ 9pm will be
        discarded.
        Make sure not to change the filename quiz_2.py while submitting by clicking on [Mark]
        button in Ed. It is your responsibility to check that your submission did go through properly
        using Submissions link in Ed otherwise your mark will be zero for Quiz 2.
        Test Cases
        $ python3 quiz_2.py
        Enter a non-strictly negative integer: 0
        Keeping leading 0's, if any, in base 8, 0 reads as 0.

        $ python3 quiz_2.py
        Enter a non-strictly negative integer: 00
        Keeping leading 0's, if any, in base 8, 00 reads as 00.

        $ python3 quiz_2.py
        Enter a non-strictly negative integer: 0256
        Keeping leading 0's, if any, in base 8, 0256 reads as 0400.
        3
        $ python3 quiz_2.py
        Enter a non-strictly negative integer: 0**
        Keeping leading 0's, if any, in base 8, 0** reads as 040.
        $ python3 quiz_2.py
        Enter a non-strictly negative integer: 3654
        Keeping leading 0's, if any, in base 8, 3654 reads as 7106.

        $ python3 quiz_2.py
        Enter a non-strictly negative integer: 100**8**4
        Keeping leading 0's, if any, in base 8, 100**8**4 reads as 600222424.

        $ python3 quiz_2.py
        Enter a non-strictly negative integer: **776
        Keeping leading 0's, if any, in base 8, **776 reads as 220060.

        $ python3 quiz_2.py
        Enter a non-strictly negative integer: 7704**2
        Keeping leading 0's, if any, in base 8, 7704**2 reads as 35307402.

        $ python3 quiz_2.py
        Enter a non-strictly negative integer: 2****7612
        Keeping leading 0's, if any, in base 8, 2****7612 reads as 1423701614.

        $ python3 quiz_2.py
        Enter a non-strictly negative integer: 000123456789
        Keeping leading 0's, if any, in base 8, 000123456789 reads as 000726746425.
        請加QQ:99515681  郵箱:99515681@qq.com   WX:codehelp

        掃一掃在手機(jī)打開當(dāng)前頁
      1. 上一篇:代寫SEHS4517、SQL編程語言代做
      2. 下一篇:PROG2007代寫、Python/c++程序語言代做
      3. 無相關(guān)信息
        合肥生活資訊

        合肥圖文信息
        出評 開團(tuán)工具
        出評 開團(tuán)工具
        挖掘機(jī)濾芯提升發(fā)動機(jī)性能
        挖掘機(jī)濾芯提升發(fā)動機(jī)性能
        戴納斯帝壁掛爐全國售后服務(wù)電話24小時官網(wǎng)400(全國服務(wù)熱線)
        戴納斯帝壁掛爐全國售后服務(wù)電話24小時官網(wǎng)
        菲斯曼壁掛爐全國統(tǒng)一400售后維修服務(wù)電話24小時服務(wù)熱線
        菲斯曼壁掛爐全國統(tǒng)一400售后維修服務(wù)電話2
        美的熱水器售后服務(wù)技術(shù)咨詢電話全國24小時客服熱線
        美的熱水器售后服務(wù)技術(shù)咨詢電話全國24小時
        海信羅馬假日洗衣機(jī)亮相AWE  復(fù)古美學(xué)與現(xiàn)代科技完美結(jié)合
        海信羅馬假日洗衣機(jī)亮相AWE 復(fù)古美學(xué)與現(xiàn)代
        合肥機(jī)場巴士4號線
        合肥機(jī)場巴士4號線
        合肥機(jī)場巴士3號線
        合肥機(jī)場巴士3號線
      4. 短信驗證碼 酒店vi設(shè)計

        亚洲精品无码专区在线播放| 亚洲综合精品一二三区在线| 久久精品国产福利国产琪琪| 国产亚洲女在线线精品| 亚洲Av永久无码精品一区二区| 91精品国产91久久久久| 久久精品久久精品久久精品| 亚洲日韩精品一区二区三区无码| 国产久爱免费精品视频| 四虎影院国产精品| 欧美日韩精品一区二区在线视频 | 国产精品无码久久av| 久久精品熟女亚洲av麻豆| 97热久久免费频精品99| 亚洲精品偷拍无码不卡av| 99热这里有精品| 日产精品一线二线三线芒果| 久久精品99视频| 亚洲AV无码精品无码麻豆| 国产精品9999久久久久| 亚洲国产另类久久久精品| 日韩精品在线视频| 久久国产精品久久| 国产精品熟女一区二区| 久久亚洲精品视频| 国产精品国产三级国产av品爱网| 久久精品国产影库免费看| 国产精品香港三级国产AV| 精品999久久久久久中文字幕 | 91麻豆精品国产一级| 亚洲精品123区在线观看| 精品乱码一区二区三区四区| 久久精品国产亚洲AV久| 麻豆麻豆必出精品入口| 99视频精品国在线视频艾草| 久久久午夜精品福利内容| 高清精品一区二区三区一区| 人妻熟妇乱又伦精品视频APP| 国产成人精品日本亚洲语音| 精品国产AV色欲果冻传媒| 国产精品一区二区三区久久|