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

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

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

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

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

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

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    亚洲三级一区| 日韩在线观看a| 91福利视频在线观看| 国产一级做a爰片久久毛片男| 欧美福利一区二区三区| 欧美有码在线观看| 青草成人免费视频| 欧美视频免费播放| 欧美成人高潮一二区在线看| 国语自产精品视频在线看一大j8| 日本高清视频精品| 青青在线免费观看| 男人添女人下部高潮视频在观看 | 日本一区不卡| 日韩精品大片| 欧美xxxx黑人又粗又长密月| 狠狠久久综合婷婷不卡| 国产欧美亚洲精品| 99精品一区二区三区的区别| 国产黄色激情视频| 国产成人精品自拍| 久久在精品线影院精品国产| 欧美激情xxxx性bbbb| 亚洲一区二区三区乱码aⅴ蜜桃女| 丁香六月激情网| 欧美日韩亚洲一区二区三区在线观看 | 久久另类ts人妖一区二区| 色久欧美在线视频观看| 国产精品毛片a∨一区二区三区|国| 久久av.com| 色噜噜一区二区| 激情小说综合区| 99久久精品无码一区二区毛片| 国产成人精彩在线视频九色| 国产精品久久久久久久久粉嫩av| 一区二区三区av在线| 天天久久人人| 黄网站欧美内射| 福利视频一二区| 久久久久久久久久久免费| 欧美成人免费va影院高清| 亚州av一区二区| 美女主播视频一区| 国产精品91久久| 国产精品第一页在线| 午夜dv内射一区二区| 国模私拍一区二区三区| 国产激情美女久久久久久吹潮| 久久这里只有精品视频首页| 欧美一级片免费观看| 国产啪精品视频网站| 久久久久se| 欧美激情视频给我| 欧美亚洲国产另类| 91国产在线精品| 美女视频久久黄| 欧美性久久久久| 久久久视频在线| 欧美日韩福利视频| 好吊色欧美一区二区三区视频| 91成人免费观看网站| 久久艹在线视频| 欧美又粗又长又爽做受| 国产精品444| 九九热r在线视频精品| 青青在线视频免费| 91麻豆国产语对白在线观看| 国产精品久久久久久久久久尿 | 欧美日韩国产综合视频在线| 91免费看片在线| 欧美成在线观看| 欧美精品一区二区三区久久| 久久免费视频在线观看| 亚洲一区二区三区乱码aⅴ| 欧美日韩二三区| 日日骚久久av| 久热精品视频在线免费观看| 精品一区二区日本| 久久久一本精品99久久精品66| 国产精品久久激情| 欧美日韩日本网| www.亚洲成人| 欧美一级大片在线观看| 久久久久久久久久久久久久久久av | 精品国产91亚洲一区二区三区www| 欧美极品一区| 国产成人免费高清视频| 痴汉一区二区三区| 国产精品1234| 午夜精品免费视频| 久久免费视频观看| 日韩女优中文字幕| www.久久撸.com| 欧美日韩一区在线视频| 国产精品人人做人人爽| 激情图片qvod| 久久亚洲欧美日韩精品专区| 国产在线观看一区二区三区| 国产精品久久久久999| 国产婷婷一区二区三区| 国产精品黄页免费高清在线观看 | 粉嫩高清一区二区三区精品视频| 中文字幕精品在线播放| 91久久国产综合久久91精品网站| 亚洲 高清 成人 动漫| 国产成人一区二区三区免费看| 日本婷婷久久久久久久久一区二区| 久久av二区| 精品欧美一区免费观看α√| 欧美成人午夜剧场免费观看| 成人福利网站在线观看| 日韩一区国产在线观看| 日韩专区在线观看| 欧美精品第三页| 蜜月aⅴ免费一区二区三区 | 精品欧美一区二区久久久伦| 国产精品免费福利| 免费看成人午夜电影| 这里只有精品66| 久久综合久久网| 欧美日韩一区在线播放| 久久久久久成人精品| 国产成人精品久久二区二区91| 欧美日韩一区在线播放| 中文视频一区视频二区视频三区| 久久久com| 欧美激情专区| 一区二区免费在线视频| 日韩色av导航| 国产精品专区一| 日本精品一区二区三区不卡无字幕 | 深夜福利日韩在线看| 国产在线视频欧美| 亚洲精品国产精品国自产| xvideos亚洲| y111111国产精品久久婷婷| 欧洲亚洲免费视频| 中文字幕一区二区三区最新| 国产超级av在线| 国产一区二区视频在线免费观看| 亚洲mm色国产网站| 国产精品露脸自拍| 久久久在线观看| 国产日韩二区| 日韩美女免费视频| 亚洲免费在线精品一区| 国产精品对白刺激| 久久波多野结衣| 白白操在线视频| 国产资源在线视频| 日韩美女免费线视频| 亚洲午夜高清视频| 另类专区欧美制服同性| 国产mv免费观看入口亚洲| 国产乱子伦精品无码专区| 欧美综合77777色婷婷| 亚洲国产日韩欧美| 欧美激情视频在线| 国产精品私拍pans大尺度在线| 久久手机在线视频| 97精品免费视频| 国产欧美最新羞羞视频在线观看| 欧美日韩免费观看一区| 欧美一级日本a级v片| 亚洲中文字幕无码不卡电影| 精品久久久久久亚洲| 国产精品久久久久久久乖乖| 国产成人无码av在线播放dvd| 国产ts人妖一区二区三区| 苍井空浴缸大战猛男120分钟| 国产这里只有精品| 国精产品一区一区三区视频| 狠狠色综合色区| 欧美亚洲精品一区二区| 日韩av电影在线免费播放| 亚洲一区二区三区四区视频| 欧美激情免费在线| 精品国产乱码久久久久久蜜柚 | 久久天天狠狠| 777国产偷窥盗摄精品视频| 国产伦精品一区二区三区四区视频_| 精品人伦一区二区三区| 欧美日韩亚洲一区二区三区四区| 日韩人妻精品一区二区三区| 日本一区二区三区免费看| 亚洲精品蜜桃久久久久久| 亚洲一区二区久久久久久久| 亚洲一区免费网站| 亚洲欧洲国产精品久久| 亚洲一区三区视频在线观看| 亚洲综合成人婷婷小说| 一区二区视频在线播放| 九九热这里只有精品6| 欧美精品成人91久久久久久久| 欧美成人免费va影院高清| 欧美日韩成人网| 亚洲一区免费看| 熟女少妇在线视频播放| 日韩亚洲欧美一区二区| 欧美精品一区二区三区四区五区|