合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

        COMP9021代做、代寫Python設計程序

        時間:2024-03-07  來源:合肥網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: 206537612
        Keeping leading 0's, if any, in base 8, 206537612 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

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

        合肥圖文信息
        挖掘機濾芯提升發動機性能
        挖掘機濾芯提升發動機性能
        戴納斯帝壁掛爐全國售后服務電話24小時官網400(全國服務熱線)
        戴納斯帝壁掛爐全國售后服務電話24小時官網
        菲斯曼壁掛爐全國統一400售后維修服務電話24小時服務熱線
        菲斯曼壁掛爐全國統一400售后維修服務電話2
        美的熱水器售后服務技術咨詢電話全國24小時客服熱線
        美的熱水器售后服務技術咨詢電話全國24小時
        海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
        海信羅馬假日洗衣機亮相AWE 復古美學與現代
        合肥機場巴士4號線
        合肥機場巴士4號線
        合肥機場巴士3號線
        合肥機場巴士3號線
        合肥機場巴士2號線
        合肥機場巴士2號線
      4. 幣安app官網下載 短信驗證碼

        關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

        Copyright © 2024 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
        ICP備06013414號-3 公安備 42010502001045

        主站蜘蛛池模板: 中文字幕日韩精品一区二区三区| 国产成人精品无码一区二区| 成人丝袜激情一区二区| 国产品无码一区二区三区在线蜜桃| 久久国产一区二区| 国产一区精品视频| 精品一区二区三区在线观看视频| 欧洲精品码一区二区三区免费看 | 日韩免费视频一区| 国产精品综合AV一区二区国产馆| 好吊视频一区二区三区| 免费无码AV一区二区| 国产日韩视频一区| 国产一区高清视频| 国产精品美女一区二区| 在线免费一区二区| 精品视频在线观看一区二区 | 日韩精品一区二区三区影院| 狠狠做深爱婷婷久久综合一区| 亚洲码欧美码一区二区三区| 影音先锋中文无码一区| 亚洲国产视频一区| 99热门精品一区二区三区无码| 免费视频一区二区| 日本一区二区不卡视频| 一区二区免费视频| 国产短视频精品一区二区三区| 中日韩精品无码一区二区三区| 亚洲av无码一区二区三区观看| 日本一区二区免费看| 亚洲国产福利精品一区二区| 亚洲AV无码一区二区三区久久精品| 精品视频一区二区三区四区| 国产精品无码一区二区三区不卡 | 国产人妖视频一区二区 | 无码精品蜜桃一区二区三区WW| 无码人妻精品一区二区蜜桃AV| av在线亚洲欧洲日产一区二区| 91麻豆精品国产自产在线观看一区| 制服丝袜一区二区三区| 99精品一区二区三区|