国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女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怎么修改定
  • 短信驗證碼 寵物飼養 十大衛浴品牌排行 suno 豆包網頁版入口 wps 目錄網 排行網

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

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

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    色阁综合伊人av| 国产精品尤物福利片在线观看| 三年中国中文在线观看免费播放| 懂色av粉嫩av蜜臀av| 秋霞久久久久久一区二区| 精品日韩美女| 久久99精品久久久久久久久久| 久久成人在线视频| 久久久久国产精品一区| 日韩美女在线观看一区| 狠狠色伊人亚洲综合网站色| 久久久综合av| 一区二区传媒有限公司| 狠狠色伊人亚洲综合网站色| 81精品国产乱码久久久久久 | 国产精品国产三级国产专区53| 日本一区二区视频| 91精品国产一区二区三区动漫| 九九精品在线观看| 国内精品视频一区二区三区| 久久精品.com| 亚洲高清不卡一区| 国产精品自在线| 国产精品无码专区av在线播放 | 色综合久久久久无码专区| 国产美女主播一区| 国产精品国模在线| 欧美夜福利tv在线| 久久草视频在线看| 日韩免费观看视频| 国产二区视频在线播放| 亚洲一区二区三区乱码aⅴ蜜桃女 亚洲一区二区三区毛片 | 精品卡一卡二| 欧美精品亚洲| 久久好看免费视频| 欧美中文字幕在线| 九九久久99| 日韩欧美视频一区二区| 国产成人亚洲综合青青| 亚洲三级一区| 91精品国产91久久久久福利| 亚洲一区精品视频| 成人av蜜桃| 一区二区不卡在线视频 午夜欧美不卡'| 精品无码久久久久久久动漫| 国产精品国产对白熟妇| 精品一区二区三区国产| 久久综合网hezyo| 黄色一级视频片| 国产精品久久久久9999小说| 蜜臀av.com| 久久久久国产精品免费网站| 成人国产精品日本在线| 亚洲一区二区三区精品动漫| 国产精品99一区| 日韩精品资源| 国产精品欧美激情在线播放| 国精产品一区一区三区有限在线| 国产精品成人播放| 国产日韩精品综合网站| 色综合久久久888| 99视频精品免费| 日本精品性网站在线观看| 久久精品日韩| 黄色激情在线视频| 久久久久国产精品www| 91九色视频在线| 日韩精品一区二区三区四区五区| 久久人人爽亚洲精品天堂| 黄色片久久久久| 国产精品成人v| 国产主播欧美精品| 欧美激情一级二级| 不卡日韩av| 精品国产第一页| 日本a在线天堂| 久久天天躁狠狠躁夜夜躁| 国产婷婷一区二区三区| 精品国产一区二区三区麻豆小说| 97人人香蕉| 青青草一区二区| 欧美激情一区二区久久久 | 国产精品久久久久高潮| 国产日韩欧美电影在线观看| 久久99久久99精品中文字幕| 99久久自偷自偷国产精品不卡| 日本久久久久久| 久久夜色精品亚洲噜噜国产mv| 97久久精品人人澡人人爽缅北| 欧洲精品久久久| 国产99在线播放| av在线亚洲男人的天堂| 日本视频一区在线观看| 久久国产视频网站| 久久久久久久久综合| 国产伦理久久久| 日韩精品成人一区二区在线观看| 精品国产乱码久久久久久88av | 日韩激情视频| 美女国内精品自产拍在线播放| 国产在线拍偷自揄拍精品| 动漫一区二区在线| 国产精品久久久久久久美男| 国产黄色特级片| 精品日产一区2区三区黄免费| 一区二区三区四区不卡| 久久精品电影一区二区| 国产在线精品91| 中文精品无码中文字幕无码专区| caoporn国产精品免费公开| 欧美极品欧美精品欧美| 午夜精品区一区二区三| 精品自拍视频在线观看| 日韩中文字幕在线| 7777在线视频| 精品一区二区三区自拍图片区| 日本一区二区三区在线视频| 伊人久久在线观看| 久久成年人视频| 国产精品嫩草影院久久久| 久久综合九色综合88i| 国产日产欧美a一级在线| 日本一区精品| 久操网在线观看| 黄色国产一级视频| 日韩av一区二区三区在线| 国产精品免费久久久久影院| 久草青青在线观看| 69国产精品成人在线播放| 国产精品一区二区三区观看 | 欧美精品一区二区三区久久| 国产精品视频1区| 国产黄色激情视频| 超碰97人人人人人蜜桃| 国产精品自拍偷拍视频| 国产啪精品视频| 国产日韩一区欧美| 国产在线观看一区二区三区| 黄色污污在线观看| 欧美一区免费视频| 日本一区二区三区四区五区六区 | 中文字幕一区二区三区精彩视频| 国产精品成人一区二区三区| 北条麻妃久久精品| 91高清免费视频| 欧美激情一区二区三区在线视频| 婷婷久久伊人| 一级一片免费播放| 中文字幕无码精品亚洲资源网久久| 久久成人av网站| 欧美人与性动交| 两个人的视频www国产精品| 久久久久亚洲av无码专区喷水| 日韩在线中文视频| 久久综合伊人77777尤物| 国产精品高清在线| 亚洲一区二区中文字幕| 日本免费高清一区| 国内精品中文字幕| 成人国产一区二区| 久久免费在线观看| 精品国产一区二区三区四区在线观看 | 日韩中文字幕在线视频| 久久黄色av网站| 精品国产综合| 日本在线观看a| 国内精品模特av私拍在线观看| 国产精选一区二区| 久久精品国产精品国产精品污| 国产精品久久久久久中文字| 一区二区三区av| 欧洲久久久久久| 国产精品一区二区三区四区五区| 久久久之久亚州精品露出| 国产精品美女免费| 亚洲精品国产精品国自产观看| 欧美在线视频免费| 97精品国产97久久久久久粉红| 久久99精品久久久久久久青青日本 | 国产精品99久久久久久白浆小说| 国产精品无码人妻一区二区在线| 伊人久久大香线蕉精品| 欧美综合激情| 91精品美女在线| 欧美理论电影在线观看| 日本高清视频精品| 国产免费内射又粗又爽密桃视频| 久久久99精品视频| 久久69精品久久久久久久电影好| 青草热久免费精品视频| 国产精品一区二区三区不卡| 久久久久久久国产精品| 亚洲天堂第一区| 国产一区二区三区四区五区加勒比| 久久精品国产sm调教网站演员 | 久久久久久久久久久成人| 中文字幕一区二区三区乱码| 黄色一级二级三级| 久久久久久亚洲精品不卡4k岛国| 亚洲午夜精品久久久中文影院av|