国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

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

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++編程語言
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務 管路
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真技術服務
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲勞振動
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務 7類仿真分析代做服務40個行業
    流體cfd仿真分析服務 7類仿真分析代做服務4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗證碼 豆包網頁版入口 破天一劍 目錄網 排行網

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

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

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    久久久国内精品| 欧美一区二区视频97| 欧美一级大片视频| 久久精品国产一区| 国产综合在线观看视频| 精品一区二区三区无码视频| 国产日韩欧美一区二区| 国产精品久久二区| 激情小说综合网| 国产精品日韩av| 狠狠色综合欧美激情| 久久人人爽人人| 午夜精品美女久久久久av福利 | 国产99久久精品一区二区 | 欧美亚洲国产精品| 国产不卡在线观看| 亚洲精品久久久久久一区二区 | 91久久精品美女| 午夜精品免费视频| 国产mv免费观看入口亚洲| 日韩av电影在线播放| 久久国产精品一区二区三区四区| 日本高清久久天堂| 日韩视频一区在线| 激情小说综合区| 精品久久久久久久免费人妻| 国产伦精品一区二区三区视频免费| 国产99久久精品一区二区 夜夜躁日日躁 | 日韩视频亚洲视频| 久久精品中文字幕| 欧美动漫一区二区| 一区二区三区三区在线| 久久久久久国产精品mv| 国产原创中文在线观看| 欧美一区二区三区在线播放| 茄子视频成人免费观看| 成人国产精品av| 午夜精品久久久久久久久久久久久| 国产精品99久久久久久久| 日本欧美一二三区| 国产精品美女999| 国产精品专区h在线观看| 亚洲精品欧美日韩| www.亚洲成人| 国产伦理一区二区三区| 日日噜噜噜夜夜爽爽| 精品国产美女在线| 国产一区欧美二区三区| 亚洲视频在线观看日本a| 久久手机在线视频| 男人天堂成人网| 综合色婷婷一区二区亚洲欧美国产| 国产精品69页| 免费黄色福利视频| 亚洲一区免费网站| 久久久久久美女| 狠狠97人人婷婷五月| 一区二区不卡在线观看| 久久久久久伊人| 国产欧美日韩精品专区| 日本一区二区三区视频免费看| 久久久成人精品| 国产欧美一区二区视频| 日本三级久久久| 欧美成人在线网站| 国产极品美女高潮无套久久久| 欧美日韩一区二| 亚洲乱码日产精品bd在线观看 | 亚洲精品国产一区| 国产精品三级网站| 国产精品91一区| 精品视频一区二区| 日本福利视频一区| 在线视频不卡一区二区| 波霸ol色综合久久| 99精品一级欧美片免费播放| 欧美日韩一区二区视频在线观看| 亚洲欧美日韩在线综合| 国产精品久久97| 国产999在线| 国产精品黄页免费高清在线观看 | 日韩精品视频一区二区在线观看| 丁香五月网久久综合| 黄色国产精品一区二区三区| 国产精品视频网站| 国产超级av在线| 97久久精品国产| 国产情侣av自拍| 日韩激情视频一区二区| 亚洲淫片在线视频| 欧美成人精品一区| 国产精品欧美日韩| 日韩在线小视频| 久久青青草综合| 91精品国产高清久久久久久91裸体 | 日韩在线视频线视频免费网站| www亚洲国产| 国产最新免费视频| 日韩欧美黄色大片| 欧美一区二区三区免费观看| 欧美猛交免费看| 国产精品视频色| y97精品国产97久久久久久| 91九色国产在线| 国产精品主播视频| 国产欧美精品在线| 精品亚洲第一| 黄色网址在线免费看| 琪琪亚洲精品午夜在线| 日韩少妇内射免费播放| 日韩不卡av| 日韩av在线综合| 日本一区二区视频| 无码少妇一区二区三区芒果| 亚洲精品免费在线看| 亚洲精品一品区二品区三品区| 一区二区三区国产福利| 欧美激情视频在线| 精品久久久久久乱码天堂| 久久综合色影院| 久久国产精品偷| 精品久久sese| 中文字幕色呦呦| 亚洲自拍小视频| 亚洲国产激情一区二区三区| 亚洲精品女av网站| 国产欧美日韩中文字幕在线| 国产另类自拍| 777久久精品一区二区三区无码 | 视频一区二区在线观看| 麻豆精品视频| 黄色片网址在线观看| 蜜桃视频成人在线观看| 精品视频一区二区三区四区| 国产日韩欧美二区| www黄色av| 91国产在线播放| 久久久久久免费看| 国产精品视频免费一区二区三区| www.日韩欧美| 国产精品福利在线| 久久久久久12| 午夜精品久久久久久久99黑人| 天堂一区二区三区| 秋霞在线观看一区二区三区| 欧美一级黑人aaaaaaa做受| 欧美成人精品免费| 国产一区免费观看| 97精品一区二区三区| 国产成人一区二区三区电影| 久久精品国产96久久久香蕉| 国产精品高潮呻吟视频| 综合久久国产| 日韩欧美精品久久| 韩国国内大量揄拍精品视频| 国产精品一线二线三线| 久久久免费在线观看| 日韩亚洲精品视频| 欧美大肥婆大肥bbbbb| 亚洲黄色网址在线观看| 人妻久久久一区二区三区| 欧美精品一区二区三区在线四季| 国产欧美一区二区视频| 国产精品91视频| 国产精品久久一区| 午夜精品一区二区三区视频免费看| 青草青草久热精品视频在线网站| 免费日韩中文字幕| 91久久久久久久一区二区| 久久精品aaaaaa毛片| 欧美精品在线第一页| 日韩**中文字幕毛片| 国产专区一区二区| 91国内在线视频| 国产精品成久久久久三级| 日韩尤物视频| 国产欧美日韩亚洲| 日韩视频免费看| 亚洲va欧美va在线观看| 国内精久久久久久久久久人| 91精品国产高清久久久久久久久| 国产精品入口尤物| 97久久国产精品| 九九九久久久| 亚洲国产精品久久久久婷婷老年| 国产视频一区二区三区四区 | 黄页网站大全在线观看| 久久久久久久色| 日本久久久网站| 国产成人综合av| 欧美日韩国产第一页| 欧美中日韩在线| 久久久免费精品视频| 精品国产综合| 欧美亚洲另类制服自拍| 国产精品99久久久久久大便| 欧美人成在线视频| 欧美精品久久久久久久免费| 成人h在线播放| 欧美成人性色生活仑片|