国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女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在线免费观看
    99久久久精品视频| 99国产视频| 亚洲一区二区中文| 国产精品久久久久久久小唯西川| 国产成人一区三区| 久久免费少妇高潮久久精品99| 精品国产一区二区三区麻豆免费观看完整版| 日韩在线激情视频| 精品国产一区二区三区在线观看| 国产成人精品在线播放| 欧美一区二区三区精美影视| 色综合久久av| 国产精品333| 久久久国产一区二区三区| 精品国产乱码久久久久久蜜柚| 欧美综合在线观看| 热re99久久精品国产66热| 欧美日韩亚洲在线| 国产淫片免费看| www.av蜜桃| 欧美区在线播放| 亚洲精品一区国产精品| 日韩欧美亚洲日产国| 久久九九视频| 日日噜噜夜夜狠狠久久丁香五月| 91成人免费观看| 国产精品情侣自拍| 亚洲免费久久| 99热亚洲精品| 亚洲精品国产系列| 国产精品av电影| 九色综合日本| 国产精品久久久久av免费| 国内精品小视频在线观看| 97碰碰碰免费色视频| 亚洲图片小说在线| 男女猛烈激情xx00免费视频| 啊v视频在线一区二区三区 | 狠狠久久综合婷婷不卡| 国产免费xxx| 久久久日本电影| 日本中文字幕亚洲| 国产美女无遮挡网站| 色在人av网站天堂精品| 国产视频一视频二| …久久精品99久久香蕉国产| 亚洲xxxx在线| 久久精品午夜一区二区福利| 日韩精品久久一区二区| 97色在线观看免费视频| 亚洲91精品在线观看| 国产成人福利视频| 亚洲在线欧美| 久久99精品久久久久久三级| 欧美激情精品久久久久久小说| 精品国产乱码久久久久久郑州公司| 成人福利网站在线观看11| 国产成人精品亚洲精品| 国产在线一区二区三区四区| 国产精品视频xxx| 国产欧美亚洲视频| 日日碰狠狠躁久久躁婷婷| 国产精品三级美女白浆呻吟| 国产乱子伦农村叉叉叉| 久久av秘一区二区三区| 精品欧美一区免费观看α√| 亚洲一卡二卡区| 久久久久天天天天| 国产欧美亚洲日本| 日本午夜精品一区二区| 久久成人av网站| 欧洲中文字幕国产精品| 欧美成人午夜剧场免费观看| 久久久在线免费观看| 欧美在线观看一区二区三区| 精品自拍视频在线观看| 国产成人激情视频| 国产精品一区二区久久久| 日韩伦理一区二区三区av在线| 成人444kkkk在线观看| 久久久一本精品99久久精品66| 蜜桃麻豆91| 日韩精品久久一区| 在线码字幕一区| 国产麻豆乱码精品一区二区三区| 日产日韩在线亚洲欧美| 欧美日韩高清在线观看| www国产精品视频| 91精品啪aⅴ在线观看国产| 精品91一区二区三区| 亚洲尤物视频网| 国产精品精品软件视频| 欧美日韩三区四区| 日韩中文在线不卡| 99久久综合狠狠综合久久止| 免费不卡av在线| 日韩视频在线免费看| 亚洲综合一区二区不卡| 久久夜精品va视频免费观看| 日韩视频永久免费观看| 久久九九视频| 91精品在线看| 国产嫩草一区二区三区在线观看| 欧美日韩第二页| 日本精品一区二区三区在线| 欧美激情网站在线观看| 国产精品网红直播| 久久精品女人的天堂av| 91国产视频在线播放| 国产精品自产拍在线观看| 免费看日b视频| 欧美专区在线观看| 日本精品一区二区三区在线播放视频| 中文字幕欧美日韩一区二区| 国产精品二区三区| 国产精品美女诱惑| 日韩视频中文字幕| 久久久久久午夜| 久久精品国产一区二区三区不卡 | 欧美高清视频一区二区三区在线观看| 欧美一级视频免费看| 亚洲激情电影在线| 亚洲va久久久噜噜噜| 亚洲精品中文字幕乱码三区不卡| 亚洲一区中文字幕| 亚洲免费久久| 无码av天堂一区二区三区| 九色综合婷婷综合| 91干在线观看| 国产经典一区二区三区| 久久亚洲国产成人精品无码区| wwwwww欧美| 北条麻妃在线一区| 国产精品一区二区免费在线观看| 国产精自产拍久久久久久| 国产精品一区二区久久久| 成人福利视频网| 国产极品精品在线观看| 国产xxxxx在线观看| 久久久久网址| 国产精品人成电影| 操人视频在线观看欧美| 欧美精品久久一区二区| 欧美激情中文字幕乱码免费| 欧美激情精品久久久久久久变态| 精品久久久久av| 一区二区三区av在线| 都市激情久久久久久久久久久 | 国产精品免费电影| 国产精品高精视频免费| 欧美理论片在线观看| 自拍另类欧美| 午夜精品久久久99热福利| 亚洲精品日产aⅴ| 日韩亚洲欧美一区二区| 欧美久久久久久一卡四| 欧日韩一区二区三区| 妓院一钑片免看黄大片| 国产麻豆乱码精品一区二区三区| 91九色视频在线观看| 精品国产一区二区三区久久狼5月| 国产精品久久久久av免费| 一区不卡视频| 日韩欧美精品一区二区 | 亚洲自偷自拍熟女另类| 日韩av电影在线观看| 青青草免费在线视频观看| 国产一区二区三区高清视频| 成人av网站观看| 国产成人短视频| 国产精品久久久av| 亚洲精品中文字幕在线| 欧美极品一区二区| 91免费人成网站在线观看18| 色妞一区二区三区| 色综合五月天导航| 热久久精品国产| 国产精品伊人日日| 久久国产欧美精品| 色综合久久久888| 日韩视频精品| 精品一区二区日本| 久久综合给合久久狠狠色| 日韩日本欧美亚洲| 不卡av在线网站| 人妻夜夜添夜夜无码av| 国产乱肥老妇国产一区二| 久久国产精品免费观看| 欧美日韩ab片| 欧洲一区二区在线| 成人精品在线观看| 国产精品视频26uuu| 亚洲精品国产一区| 国产性生交xxxxx免费| 国产www精品| 亚洲精品一区二区三区av| 精品欧美日韩| 久久精品日产第一区二区三区精品版 | 亚洲午夜精品久久| 极品尤物一区二区三区|