日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

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

CDS523編程代寫、代做Python程序語言
CDS523編程代寫、代做Python程序語言

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



CDS523 Principle of Data Analytics and Programming
Programming Assignment 3
(Due: 20
th November 2024, 23:59)
1. (5 marks) In the past, the frequency analysis of letters was an important step in breaking cipher. Write a 
Python program that prompt the user to input the path of a text file and output the occurrence count of 
all 26 English alphabet (ignoring case) in the text file specified by the user.
Sample input and output:
Terminal
Please enter the path of the text file: asg3_q1_sample.txt
The frequency of English alphabet:
a: 1
b: 1
c: 1
… 
z: 1
You should output the count of every English alphabet one by one in alphabetical order. Each line should 
contain an English alphabet followed by its count. The counts of some English alphabets in the sample 
input and output are omitted to save space in this assignment specification but your program should 
output the count of all English alphabets.
2. (15 marks in total) In cryptography, a Caesar cipher is one of the simplest forms of substitution cipher. 
The encryption is performed through shifting each letter in the plaintext forward by a number of posi tions defined by the user along the alphabetical order. For example, if the user has defined the number 
of forward position shift to be 4, every letter E in the plaintext will be replaced by A in the ciphertext 
because character A is 4 positions in front of letter E in alphabetical order.
Consider the following mapping between each alphabet in plaintext and its corresponding alphabet in 
ciphertext where the encryption is performed by shifting 4 alphabets forward.
Plain A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Cipher W X Y Z A B C D E F G H I J K L M N O P Q R S T U V
Process of Encryption:
Input plaintext:
The quick brown fox jumps over the lazy dog.
Encryption Process
Plain T h e q u i c k b r o w n f o x j u m p s o v e r t h e l a z y d o g .
↓↓↓ ↓↓↓↓↓ ↓↓↓↓↓ ↓↓↓ ↓↓↓↓↓ ↓↓↓↓ ↓↓↓ ↓↓↓↓ ↓↓↓
Cipher P d a m q e y g x n k s j b k t f q i l o k r a n p d a h w v u z k c .
Output ciphertext:
Pda mqeyg xnksj bkt fqilo kran pda hwvu zkc.
Process of Decryption:
The decryption of a ciphertext encrypted with Caesar cipher can be achieved by reversing the encryption 
process (i.e. shifting the letters backward).
Input ciphertext:
Pda mqeyg xnksj bkt fqilo kran pda hwvu zkc.
Decryption Process
Cipher P d a m q e y g x n k s j b k t f q i l o k r a n p d a h w v u z k c .
↓↓↓ ↓↓↓↓↓ ↓↓↓↓↓ ↓↓↓ ↓↓↓↓↓ ↓↓↓↓ ↓↓↓ ↓↓↓↓ ↓↓↓
Plain T h e q u i c k b r o w n f o x j u m p s o v e r t h e l a z y d o g .
Output plaintext:
The quick brown fox jumps over the lazy dog.
a) (6 marks) Write a program that prompt the user to input (1) the number of forward position shift and
(2) the plaintext message that they want to encrypt into the console. The program then output the 
encrypted message to the console.
Sample input and output:
Terminal
Please enter the number of position shift: 4
Please enter the plaintext message: The quick brown fox jumps over the 
lazy dog.
The encrypted message is: Pda mqeyg xnksj bkt fqilo kran pda hwvu zkc.
b) (5 marks) Modify the program in (a) such that it will prompt the user to input (1) the number of for ward position shift, (2) the path of the plaintext text file and (3) the path of the ciphertext text file.
The program then encrypts the content of the plaintext text file and output the result ciphertext to 
the ciphertext text file.
Sample input and output:
Terminal
Please enter the number of position shift: 4
Please enter the path of the input plaintext file: plaintext.txt
Please enter the path of the output encrypted file: encrypted.txt
c) (2 marks) Modify the program in (a) such that it will prompt the user to input (1) the number of for ward position shift and (2) the encrypted message that they want to decrypt into the console. The 
program then output the decrypted plaintext message to the console.
Sample input and output:
Terminal
Please enter the number of position shift: 4
Please enter the encrypted message: Pda mqeyg xnksj bkt fqilo kran pda 
hwvu zkc.
The decrypted message is: The quick brown fox jumps over the lazy dog.
d) (2 marks) Modify the program in (c) such that it will prompt the user to input (1) the number of for ward position for shifting, (2) the path of the ciphertext text file and (3) the path of the decrypted
plaintext text file. The program then decrypts the content of the ciphertext text file and output the 
result plaintext to the plaintext text file.
Sample input and output:
Terminal
Please enter the number of position shift: 4
Please enter the path of the input encrypted file: encrypted.txt
Please enter the path of the output decrypted file: decrypted.txt
Assumption:
• Only English alphabet (upper case or lower case) characters have to be encrypted and decrypted. 
• Characters other than English alphabet are preserve during the encryption and decryption.
• Case of every English alphabet is preserved during the encryption and decryption process.
Assumptions
You may assume that every input of the program is valid in format.
Submission
Students should submit their source code as (1) a single Jupiter Notebook file (i.e. .ipynb file) OR (2) a zip file 
that contains standalone Python script files (i.e. .py files) for answering the programing questions to the 
submission box on the Moodle elearning platform on or before 20
th November 2024, 23:59. Students are 
expected to name their file submission in the name of <your_student_ID>_asg3.ipynb OR
<your_student_ID>_asg3.zip and their source code should follow the following format:

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





 

掃一掃在手機打開當前頁
  • 上一篇:ENGG1110代做、代寫c/c++語言編程
  • 下一篇:24LLP109代做、代寫c/c++編程語言
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內
    釘釘簽到打卡位置修改神器,2026怎么修改定
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
  • 短信驗證碼 豆包網頁版入口 目錄網 排行網

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

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

    日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

      <em id="rw4ev"></em>

        <tr id="rw4ev"></tr>

        <nav id="rw4ev"></nav>
        <strike id="rw4ev"><pre id="rw4ev"></pre></strike>
        亚洲一区二区四区| 国产精品自拍一区| 在线日韩一区二区| 亚洲一区美女视频在线观看免费| 亚洲第一视频| 国产视频久久| 亚洲国产成人av在线| 亚洲国产91精品在线观看| 亚洲精品孕妇| 亚洲欧洲精品天堂一级| 亚洲第一伊人| 欧美视频在线观看 亚洲欧| 欧美成人精精品一区二区频| 欧美激情网站在线观看| 国产一区二区| 日韩亚洲欧美中文三级| 欧美视频日韩视频在线观看| 国产亚洲va综合人人澡精品| 一区二区三区欧美| 亚洲性线免费观看视频成熟| 亚洲成人中文| 亚洲欧洲日本专区| 伊人成年综合电影网| 一区二区冒白浆视频| 国产精品男gay被猛男狂揉视频| 欧美日韩免费一区二区三区视频| 一本到高清视频免费精品| 久久精品二区亚洲w码| 欧美福利一区二区三区| 欧美视频中文字幕在线| 亚洲欧洲精品成人久久奇米网| 欧美aaa级| 伊人狠狠色j香婷婷综合| 亚洲欧美日韩国产另类专区| 亚洲福利视频免费观看| 久久久99精品免费观看不卡| 国产欧美va欧美不卡在线| 午夜精品久久久久久久久| 欧美少妇一区二区| 狠狠88综合久久久久综合网| 亚洲精品乱码久久久久久蜜桃91| 欧美日韩精品久久| 欧美二区在线播放| 欧美在线3区| 伊大人香蕉综合8在线视| 久久免费99精品久久久久久| 免费在线成人| 亚洲主播在线观看| 国产深夜精品| 久久综合九色九九| 91久久国产自产拍夜夜嗨| 国产农村妇女精品一二区| 国产亚洲一本大道中文在线| 韩国成人理伦片免费播放| 娇妻被交换粗又大又硬视频欧美| 欧美大香线蕉线伊人久久国产精品| 亚洲乱码国产乱码精品精可以看| 亚洲日韩中文字幕在线播放| 亚洲视频在线免费观看| 在线高清一区| 99精品免费视频| 国产亚洲毛片在线| 欧美日韩亚洲一区二区三区在线观看| 99国产精品久久| 欧美一区二粉嫩精品国产一线天| 国产一在线精品一区在线观看| 国产亚洲欧美aaaa| 国产精品捆绑调教| 一本大道久久精品懂色aⅴ| 欧美激情综合亚洲一二区| 久久国产精品久久w女人spa| 国产精品99久久久久久宅男| 好看的日韩av电影| 国产原创一区二区| 亚洲日本理论电影| 免费成人你懂的| 在线成人h网| 国产伦精品一区二区| 久久久激情视频| 欧美不卡在线| 欧美电影在线| 国内揄拍国内精品少妇国语| 国产精品一区毛片| 午夜精品一区二区三区在线播放| 欧美激情小视频| 久久精品国产一区二区三区免费看| 亚洲午夜精品视频| 欧美另类69精品久久久久9999| 麻豆国产精品va在线观看不卡| 欧美亚洲视频一区二区| 欧美国产一区二区三区激情无套| 在线视频精品| 欧美怡红院视频| 欧美精品一区二区精品网| 久久久91精品国产一区二区精品| 欧美日韩精品免费观看视一区二区| 国产欧美一区二区精品秋霞影院| 欧美一区二区在线| 欧美午夜在线一二页| 欧美激情小视频| 国产一区二区三区黄| 国产精品制服诱惑| 国产一区二区日韩| 亚洲午夜国产成人av电影男同| 艳女tv在线观看国产一区| 黄页网站一区| 久色成人在线| 国产伦精品一区二区三区免费迷| 久久伊人一区二区| 国产精品一区二区视频| 欧美三级资源在线| 狠狠色综合色综合网络| 欧美在线精品一区| 国产精品久久久久久久午夜| 欧美一区二区精品久久911| 亚洲美女视频在线免费观看| 久久只精品国产| 欧美精品免费视频| 亚洲综合色噜噜狠狠| 亚洲第一网站免费视频| 欧美日韩国产免费观看| 亚洲高清影视| 欧美国产精品专区| 国产精品jizz在线观看美国| 午夜精品区一区二区三| 国产精品国产三级欧美二区| 一区二区三区四区蜜桃| 国产精品久久久久久久久久三级| 亚洲电影欧美电影有声小说| 亚洲一区二区在线| 欧美在线播放一区二区| 欧美韩日精品| 久久久免费精品视频| 亚洲国产一区二区在线| 欧美精品在线看| 久久久久久久久岛国免费| 欧美日韩国产精品一区| 樱花yy私人影院亚洲| 久久xxxx精品视频| 在线日韩中文字幕| 欧美激情综合在线| 一区二区三区我不卡| 国内视频精品| 欧美性猛交视频| 在线观看福利一区| 欧美高清视频免费观看| 一本久久a久久精品亚洲| 亚洲精品国产无天堂网2021| 久久久久久穴| 国产日韩欧美高清免费| 亚洲精品免费一区二区三区| 亚洲综合视频1区| 亚洲国产天堂久久综合| 欧美亚洲日本一区| 一区二区三区免费网站| 国产精自产拍久久久久久| 欧美一区二区三区在线播放| 欧美国产一区二区三区激情无套| 国产女人18毛片水18精品| 亚洲第一网站免费视频| 国产精品一区二区久久久久| 欧美插天视频在线播放| 国产欧美亚洲视频| 黄色亚洲网站|