加勒比久久综合,国产精品伦一区二区,66精品视频在线观看,一区二区电影

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

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

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

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

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

    欧美全黄视频| 欧美日韩中文一区二区| 国产成人a视频高清在线观看| 婷婷综合视频| 日本一区二区三区播放| 成人国产精品| 日韩在线一区二区| 欧美手机在线| 国内综合精品午夜久久资源| 美女av在线免费看| 女同性一区二区三区人了人一| 视频二区欧美| 成人噜噜噜噜| 欧美a级理论片| 91免费精品| 99久久伊人| 免费高清视频精品| av亚洲免费| 99精品国产高清一区二区麻豆| 欧美片第1页综合| 成人交换视频| 黄在线观看免费网站ktv| 精品69视频一区二区三区Q| 欧美亚洲国产日韩| 久久综合偷偷噜噜噜色| 久久资源综合| 美女视频黄 久久| 桃色av一区二区| 亚洲中字黄色| 99riav1国产精品视频| 91精品啪在线观看国产18| 精品国产一区二| 国产欧美精品久久| 亚洲毛片一区| 日韩专区中文字幕一区二区| 亚洲精品大片| jizz久久久久久| 激情亚洲影院在线观看| 欧美成人a交片免费看| 三级欧美韩日大片在线看| 好看的日韩av电影| 欧美日韩精品| 亚洲电影在线一区二区三区| 激情久久久久久久| 国产伊人精品| 亚洲天堂偷拍| 久久中文亚洲字幕| 999视频精品| 99热在线成人| 欧美成人中文| 欧美成人午夜| 黄色亚洲免费| 久久亚洲综合| 91精品综合久久久久久久久久久| 亚洲欧美日韩一区在线观看| 米奇777在线欧美播放| 水蜜桃久久夜色精品一区的特点| 日本激情一区| 中文字幕一区二区三区久久网站| 麻豆专区一区二区三区四区五区| 久久国产视频网| 久久精品毛片| 亚洲理伦在线| 高清一区二区| 美女精品一区最新中文字幕一区二区三区| 国产精选久久| 亚洲欧美久久精品| 婷婷精品在线| 国产精品欧美大片| 91精品国偷自产在线电影| 99热国内精品永久免费观看| 亚洲无线视频| 母乳一区在线观看| 激情黄产视频在线免费观看| 日韩在线短视频| 国产精品一级| 中文字幕免费一区二区三区| 亚洲盗摄视频| 乱亲女h秽乱长久久久| 蜜臀91精品国产高清在线观看| 午夜精品网站| 日韩dvd碟片| 日本精品另类| 欧美黄在线观看| 一区二区三区高清在线观看| 欧美xxxx在线| 伊人影院久久| 日韩av在线中文字幕| 免费污视频在线一区| 麻豆国产欧美日韩综合精品二区| 亚洲精品一级二级三级| www.亚洲一二| 亚洲免费成人| 日韩毛片视频| 欧美日本精品| 欧美精品中文字幕亚洲专区| 欧美日韩四区| 日韩激情免费| 国产精品视频一区二区三区综合| 亚洲国产aⅴ精品一区二区| 精品欧美久久| 92国产精品| 中文精品久久| 精品免费在线| 四虎成人av| 日韩高清不卡一区二区| 国产精品视频3p| 久久不射2019中文字幕| 亚洲国产导航| 午夜视频在线观看精品中文| 日韩视频二区| 欧美在线三区| 国产精品乱战久久久| 蜜臀av国产精品久久久久| 日本一区二区三区中文字幕| 久久视频社区| 亚洲一区区二区| 日本伊人色综合网| 欧美一区二区三区久久| 国产精品久久久久久麻豆一区软件 | 久久狠狠亚洲综合| 一区二区三区视频免费视频观看网站 | 亚洲系列另类av| 99xxxx成人网| 亚洲三级视频| 久久精品卡一| 视频二区不卡| 亚洲日本va中文字幕| 玖玖玖国产精品| 欧美欧美在线| 午夜精品免费| 亚洲理论在线| 91精品1区| 国内揄拍国内精品久久| 91精品久久久久久久蜜月| 日韩和的一区二在线| 97色成人综合网站| 九色porny视频在线观看| 午夜先锋成人动漫在线| 免费看黄色91| 亚洲丁香日韩| 成人激情诱惑| 日韩成人精品在线| 国产伦久视频在线观看| 日韩av电影天堂| 欧美a级成人淫片免费看| 亚洲春色h网| sm捆绑调教国产免费网站在线观看 | 久久国产三级| 欧美日韩激情在线一区二区三区| 久久精品72免费观看| 亚洲网站啪啪| 欧美日韩18| 性欧美暴力猛交另类hd| 国产精品免费精品自在线观看| 亚洲一区欧美二区| 亚洲美女久久| 亚洲一二三四| 精品国产不卡| 国产精品久久777777毛茸茸 | 国产一区清纯| 亚洲日本欧美| 天堂va蜜桃一区二区三区漫画版| 国产一区二区三区探花| 日本欧美视频| 超碰97久久| 欧美在线二区| 亚洲欧美日韩综合国产aⅴ| 日本亚洲不卡| 日本另类视频| 亚洲成人免费| 日韩电影一区二区三区四区| 新版的欧美在线视频| 久久久精品网| 亚洲欧洲日韩精品在线| 美国欧美日韩国产在线播放| 好吊妞国产欧美日韩免费观看网站| 精品美女一区| 亚洲专区一区| 国产精品巨作av| 麻豆精品精品国产自在97香蕉| 久久aⅴ乱码一区二区三区| 亚洲国产视频二区| 国产精品久久久久毛片大屁完整版| 午夜久久黄色| 永久免费精品视频| 捆绑调教美女网站视频一区| 欧美残忍xxxx极端| 伊人久久大香线蕉综合网蜜芽| 欧洲大片精品免费永久看nba| 高清不卡亚洲| 91精品动漫在线观看| 久久国产精品免费一区二区三区| 日本中文字幕视频一区| 视频一区二区不卡| 久久激情婷婷| 偷拍自拍一区| 日日狠狠久久| 三上亚洲一区二区| 欧美日韩国产色综合一二三四|