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

        代寫COMP9021、代做python編程設計

        時間:2024-06-28  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



        COMP**21 Principles of Programming
        Term 2, 2024
        Coding Quiz 3
        Worth 4 marks and due Week 5 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. Although it is not needed for this quiz, you may import
        any module that is already installed in Ed if you wish.
        The current code prompts the user for a positive integer.
        This positive integer, when written in base 3, its consecutive digits read from left to right represent the
        directions to take, with:
         0 meaning going South (S),
         1 meaning going South West (SW), and
         2 meaning going South East (SE).
        Your task is to print out:
        1. the representation of the integer in base 3,
        2. the corresponding sequence of directions to take as arrows, and
        3. the sequence of arrows again, but nicely displayed.
        The leftmost arrow is printed out with no space to the left.
        The arrows are the Unicode characters of code point:
        Use, for instance, print('\u2b07') to display ?.
        The provided stub and the outputs of the sample test cases explain the task to be performed.
        2
        Marking
        Representation of the integer in base 3 1.25 marks
        Corresponding sequence of arrows 1.25 marks
        Sequence of arrows nicely displayed 1.50 marks
        ------------------------------------------------------------------------
        Total 4.00 marks
        Due Date and Submission
        Quiz 3 is due Week 5 Thursday 27 June 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 5 Sunday 30 June 2024 @ 9pm will be discarded.
        Make sure not to change the filename quiz_3.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 3.
        Test Cases
        $ python quiz_3.py
        Enter a positive integer: 0
        In base 3, the input reads as: 0
        So that's how you want to go: 
        Let's go then!

        $ python quiz_3.py
        Enter a positive integer: 9
        In base 3, the input reads as: 100
        So that's how you want to go: 
        Let's go then!
        $ python quiz_3.py
        Enter a positive integer: 17
        In base 3, the input reads as: 122
        So that's how you want to go: 
        Let's go then!
        $ python quiz_3.py
        Enter a positive integer: 35
        In base 3, the input reads as: 1022
        So that's how you want to go: 
        Let's go then!
        $ python quiz_3.py
        Enter a positive integer: 123456789
        In base 3, the input reads as: 22121022020212200
        So that's how you want to go: Let's go then!
        $ python quiz_3.py
        Enter a positive integer: 987654**10
        In base 3, the input reads as: 221111022110101020200
        So that's how you want to go: 
        Let's go then!

        請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp





         

        掃一掃在手機打開當前頁
      1. 上一篇:代寫CS6250程序、代做python編程設計
      2. 下一篇:特好清尾貨網,您的庫存尾貨批發與收購最佳選擇!
      3. 無相關信息
        合肥生活資訊

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

        主站蜘蛛池模板: 亚洲一区二区三区在线观看精品中文| 成人免费一区二区无码视频| 久久一区二区三区免费播放| 无码人妻精品一区二区蜜桃| 一区二区三区四区在线观看视频| 亚洲午夜福利AV一区二区无码 | 最新欧美精品一区二区三区| 久久国产精品无码一区二区三区| 国产一区在线电影| 色精品一区二区三区| 国产精品香蕉在线一区| 久久精品无码一区二区三区免费| 国产精品一区二区久久乐下载| 亚洲国产一区在线| 精品性影院一区二区三区内射| 一区二区三区四区在线观看视频 | 精品三级AV无码一区| 午夜视频一区二区| 在线电影一区二区三区| 精品无码av一区二区三区 | 污污内射在线观看一区二区少妇| 国产福利电影一区二区三区,亚洲国模精品一区| 一区二区三区杨幂在线观看| 国产精品日韩一区二区三区| 日本无卡码免费一区二区三区| 日美欧韩一区二去三区| 国产综合视频在线观看一区 | 亚洲国产一区二区a毛片| 精品国产福利第一区二区三区| 无码国产亚洲日韩国精品视频一区二区三区 | 丰满岳妇乱一区二区三区| 国产香蕉一区二区精品视频| 一区二区视频在线| 中文乱码字幕高清一区二区| 无码人妻精品一区二区蜜桃| 国产成人精品视频一区| 国产精品无码一区二区三区毛片| 日本精品一区二区三区视频| 国产精品99无码一区二区| 中文国产成人精品久久一区| 国产成人无码一区二区在线观看|