日韩精品一区二区三区高清_久久国产热这里只有精品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++編程語言
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
    合肥機場巴士2號線
    合肥機場巴士2號線
    合肥機場巴士1號線
    合肥機場巴士1號線
  • 短信驗證碼 酒店vi設計 deepseek 幣安下載 AI生圖 AI寫作 aippt AI生成PPT 阿里商辦

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

    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>
        国产午夜精品一区二区三区视频| 国产精品美女久久福利网站| 欧美视频第二页| 黄色国产精品一区二区三区| 久久综合久久综合久久| 国产精品激情偷乱一区二区∴| 狠狠色综合播放一区二区| 国产偷久久久精品专区| 在线看日韩欧美| 欧美在线观看视频一区二区三区| 亚洲一区二区三区免费在线观看| 欧美黄色小视频| 亚洲福利视频一区二区| 一本久久知道综合久久| 国产亚洲va综合人人澡精品| 久久综合久久综合九色| 久久精品国产一区二区三区免费看| 亚洲精品一区在线观看| 欧美日韩国产影院| 国产精品女同互慰在线看| 欧美精品日韩三级| 亚洲视频一区二区| 亚洲激情电影在线| 黄色日韩网站视频| 欧美激情一区二区三区成人| 亚洲三级影院| 欧美日韩亚洲91| 一区二区三区国产| 亚洲日产国产精品| 久久综合99re88久久爱| 免费成人美女女| 国产精品一二一区| 亚洲欧美国产制服动漫| 欧美大片在线观看一区| 欧美黑人一区二区三区| 99国产精品私拍| 亚洲第一页在线| 夜夜嗨av一区二区三区免费区| 欧美日韩国产成人在线91| 国产精品每日更新| 亚洲电影免费在线| 免费看av成人| 99国产精品99久久久久久| 国内视频精品| 欧美日韩国产成人在线91| 亚洲免费网址| 国产午夜精品麻豆| 欧美在线视频一区二区| 亚洲夜间福利| 亚洲国产中文字幕在线观看| 激情欧美日韩一区| 欧美视频免费| 在线一区二区日韩| 国产综合色产| 久久aⅴ国产紧身牛仔裤| 国产精品影片在线观看| 国产精品久久综合| 亚洲一区二区成人| 激情欧美一区二区三区在线观看| 欧美精品乱人伦久久久久久| 国产在线视频欧美一区二区三区| 午夜欧美大片免费观看| 久久久一本精品99久久精品66| 在线视频成人| 欧美黄色片免费观看| 午夜视频一区在线观看| 国产手机视频一区二区| 久久综合网色—综合色88| 久久午夜影视| 亚洲午夜一二三区视频| 国产午夜精品美女视频明星a级| 亚洲一区二区伦理| 欧美成人免费全部观看天天性色| 一本色道久久88综合日韩精品| 欧美精品在线一区| 亚洲国产精品t66y| 久热精品视频在线观看| 久久久久久9999| 亚洲综合色丁香婷婷六月图片| 国产日韩欧美在线播放不卡| 欧美系列精品| 欧美女主播在线| 欧美xart系列在线观看| 国产日韩综合一区二区性色av| 欧美巨乳波霸| 欧美婷婷六月丁香综合色| 亚洲国产婷婷| 国产精品久久久久久影院8一贰佰| 欧美成人精品影院| 久久国产精品久久w女人spa| 亚洲第一区在线| 欧美成人情趣视频| 一本不卡影院| 欧美丝袜一区二区| 国产精品一区亚洲| 欧美日韩一二三四五区| 亚洲理伦电影| 久久女同精品一区二区| 99这里有精品| 久久综合五月| 亚洲人成77777在线观看网| 亚洲私人影院在线观看| 久久久青草青青国产亚洲免观| 欧美一级二级三级蜜桃| 久久久精品久久久久| 国自产拍偷拍福利精品免费一| 欧美日韩一区二区三区在线观看免| 国产欧美日韩在线播放| 欧美成人福利视频| 亚洲精品中文字幕在线| 午夜精品久久久久99热蜜桃导演| 一本色道久久| 久久综合伊人77777| 欧美极品影院| 欧美日韩精品在线| 校园春色国产精品| 久久xxxx精品视频| 亚洲久色影视| 久久美女艺术照精彩视频福利播放| 一本色道久久综合狠狠躁的推荐| 欧美久久视频| 国产精品久久久久aaaa九色| 国产日韩精品一区二区三区在线| 国产一区二区三区在线观看网站| 久热精品在线视频| 一区二区三区 在线观看视| 欧美精品一区二区在线观看| 篠田优中文在线播放第一区| 久久久久免费视频| 在线看不卡av| 亚洲国产日韩在线一区模特| 国产欧美一区二区精品仙草咪| 亚洲视频在线观看网站| 国产精品日韩在线播放| 91久久精品一区| 欧美日韩国产综合网| 亚洲一区精品视频| 久久久久免费视频| 国产片一区二区| 国自产拍偷拍福利精品免费一| 久久久久久久成人| 久久天天躁夜夜躁狠狠躁2022| 在线视频一区观看| 亚洲午夜久久久| 国产精品亚洲片夜色在线| 亚洲国产婷婷香蕉久久久久久99| 国产一区二区三区日韩欧美| 国语自产精品视频在线看抢先版结局| 香蕉成人伊视频在线观看| 国模精品一区二区三区| 欧美午夜精品| 国产午夜亚洲精品不卡| 欧美gay视频激情| 国产精品免费视频xxxx| 好看的亚洲午夜视频在线| 国产日韩欧美精品综合| 亚洲精品一二| 亚洲精选在线观看| 亚洲小说欧美另类婷婷| 亚洲第一区在线观看| 国产精品亚洲综合久久| 国产精品乱人伦中文| 黄色在线一区| 亚洲观看高清完整版在线观看|