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

        代寫COMP9021、代做python編程設(shè)計(jì)

        時(shí)間:2024-06-28  來(lái)源:合肥網(wǎng)hfw.cc  作者:hfw.cc 我要糾錯(cuò)



        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!

        請(qǐng)加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp





         

        掃一掃在手機(jī)打開(kāi)當(dāng)前頁(yè)
      1. 上一篇:代寫CS6250程序、代做python編程設(shè)計(jì)
      2. 下一篇:特好清尾貨網(wǎng),您的庫(kù)存尾貨批發(fā)與收購(gòu)最佳選擇!
      3. 無(wú)相關(guān)信息
        合肥生活資訊

        合肥圖文信息
        挖掘機(jī)濾芯提升發(fā)動(dòng)機(jī)性能
        挖掘機(jī)濾芯提升發(fā)動(dòng)機(jī)性能
        戴納斯帝壁掛爐全國(guó)售后服務(wù)電話24小時(shí)官網(wǎng)400(全國(guó)服務(wù)熱線)
        戴納斯帝壁掛爐全國(guó)售后服務(wù)電話24小時(shí)官網(wǎng)
        菲斯曼壁掛爐全國(guó)統(tǒng)一400售后維修服務(wù)電話24小時(shí)服務(wù)熱線
        菲斯曼壁掛爐全國(guó)統(tǒng)一400售后維修服務(wù)電話2
        美的熱水器售后服務(wù)技術(shù)咨詢電話全國(guó)24小時(shí)客服熱線
        美的熱水器售后服務(wù)技術(shù)咨詢電話全國(guó)24小時(shí)
        海信羅馬假日洗衣機(jī)亮相AWE  復(fù)古美學(xué)與現(xiàn)代科技完美結(jié)合
        海信羅馬假日洗衣機(jī)亮相AWE 復(fù)古美學(xué)與現(xiàn)代
        合肥機(jī)場(chǎng)巴士4號(hào)線
        合肥機(jī)場(chǎng)巴士4號(hào)線
        合肥機(jī)場(chǎng)巴士3號(hào)線
        合肥機(jī)場(chǎng)巴士3號(hào)線
        合肥機(jī)場(chǎng)巴士2號(hào)線
        合肥機(jī)場(chǎng)巴士2號(hào)線
      4. 幣安app官網(wǎng)下載 短信驗(yàn)證碼 丁香花影院

        關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

        Copyright © 2024 hfw.cc Inc. All Rights Reserved. 合肥網(wǎng) 版權(quán)所有
        ICP備06013414號(hào)-3 公安備 42010502001045

        主站蜘蛛池模板: 国产在线一区二区杨幂| 蜜桃无码AV一区二区| 国产亚洲一区二区手机在线观看| 91精品一区二区三区在线观看| 精品一区二区久久久久久久网精 | 亚洲狠狠狠一区二区三区| 国产激情精品一区二区三区| 国产品无码一区二区三区在线| 人妻无码第一区二区三区 | 在线观看国产一区| 综合激情区视频一区视频二区| 无码精品不卡一区二区三区| 91精品福利一区二区| 亚洲香蕉久久一区二区三区四区| 伊人色综合一区二区三区| 成人国产精品一区二区网站| 国产一区二区三区不卡在线观看| 在线观看一区二区三区av| 麻豆一区二区三区精品视频| 日韩内射美女人妻一区二区三区| 国产在线一区二区| 久久久久成人精品一区二区| 久久青草国产精品一区| 国产成人久久精品一区二区三区 | 国产综合无码一区二区三区| 国产精品主播一区二区| 亚洲一区二区三区香蕉| 国产精品一区二区久久国产| 无码日韩精品一区二区免费暖暖 | 国产亚洲一区二区三区在线| 中文字幕精品无码一区二区三区 | 亚洲av高清在线观看一区二区 | 久久99精品波多结衣一区| 无码毛片视频一区二区本码| 精品女同一区二区三区免费站 | 国产综合无码一区二区辣椒| 无码国产精品一区二区免费3p| 日韩一区二区在线播放| 日韩人妻无码免费视频一区二区三区| 国产熟女一区二区三区五月婷| 一区二区三区波多野结衣|