99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

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

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

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
    合肥機場巴士2號線
    合肥機場巴士2號線
    合肥機場巴士1號線
    合肥機場巴士1號線
  • 短信驗證碼 豆包 幣安下載 AI生圖 目錄網

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

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

    99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          9000px;">

                亚洲自拍偷拍麻豆| 一区二区三区中文免费| 国产亚洲一二三区| 国产成人在线影院| 国产精品视频九色porn| 色天使色偷偷av一区二区| 亚洲一区二区影院| 日韩一区二区麻豆国产| 国产精品中文欧美| 一级做a爱片久久| 精品亚洲国产成人av制服丝袜| 亚洲精品一二三| 日本国产一区二区| 午夜精品免费在线观看| 欧美成人精品二区三区99精品| 国产精品亚洲专一区二区三区 | 色琪琪一区二区三区亚洲区| 午夜免费欧美电影| 国产日产精品一区| 制服丝袜亚洲精品中文字幕| 成人美女视频在线看| 香蕉久久一区二区不卡无毒影院 | 亚洲精品视频在线看| 99久久婷婷国产综合精品电影 | 欧美丰满少妇xxxbbb| 国产.欧美.日韩| 免费在线观看视频一区| 亚洲欧洲综合另类| 国产欧美一二三区| 欧美一区二区三区在线视频| 91麻豆国产香蕉久久精品| 国产精品一区二区你懂的| 国产精品美女久久久久久| 亚洲国产精品黑人久久久| av男人天堂一区| 麻豆精品久久精品色综合| 《视频一区视频二区| 精品免费日韩av| 欧美欧美午夜aⅴ在线观看| 国产乱人伦精品一区二区在线观看 | 精品对白一区国产伦| 欧美猛男超大videosgay| 91毛片在线观看| 99国产精品久久久久久久久久久| 日本女优在线视频一区二区| 精品视频1区2区| 91蜜桃传媒精品久久久一区二区| 国产一区二区剧情av在线| 另类的小说在线视频另类成人小视频在线| 国产精品超碰97尤物18| 久久久久久久久久久99999| 欧美一级片免费看| 91精品国产91综合久久蜜臀| 欧美精品777| 日韩免费高清av| 精品少妇一区二区| 久久这里都是精品| 精品sm在线观看| 国产欧美精品一区aⅴ影院| 国产视频一区二区在线| 国产日韩欧美精品电影三级在线 | 日本一区二区三区久久久久久久久不| 欧美一级免费大片| 欧美mv日韩mv国产| 久久久久99精品一区| 777精品伊人久久久久大香线蕉| 一本到高清视频免费精品| 在线影视一区二区三区| 欧美日韩在线精品一区二区三区激情 | 91国偷自产一区二区三区成为亚洲经典| av高清不卡在线| 91成人看片片| 欧美大胆人体bbbb| 国产欧美一区二区三区网站| 亚洲素人一区二区| 亚洲一区二区三区视频在线| 偷拍自拍另类欧美| 国产美女主播视频一区| 不卡视频一二三| 91精品国产综合久久香蕉的特点| 精品va天堂亚洲国产| 亚洲素人一区二区| 免费人成在线不卡| www.综合网.com| 日韩一区二区在线观看视频| 中文av一区二区| 美国十次了思思久久精品导航| 国产成人精品综合在线观看| 欧美亚洲综合网| 欧美国产精品v| 日韩黄色免费电影| www.亚洲国产| 精品国产免费人成在线观看| 一区二区三区小说| 国产美女精品一区二区三区| 欧美日韩精品免费| 国产精品免费视频一区| 麻豆精品新av中文字幕| 欧美亚洲国产bt| 国产精品欧美久久久久一区二区 | 风流少妇一区二区| 欧美一区日本一区韩国一区| 亚洲人成精品久久久久| 国产成人精品免费一区二区| 欧美一区二区三区不卡| 亚洲成人在线免费| 色综合亚洲欧洲| 综合欧美一区二区三区| 成人亚洲一区二区一| 久久影院电视剧免费观看| 日韩成人午夜电影| 精品污污网站免费看| 一区二区三区中文免费| 色婷婷亚洲精品| 国产精品无码永久免费888| 久久成人久久爱| 欧美一区2区视频在线观看| 午夜亚洲福利老司机| 欧美午夜寂寞影院| 一区二区三区成人在线视频| 色婷婷综合中文久久一本| 亚洲视频在线观看一区| 99久久99久久精品免费看蜜桃| 中文字幕不卡一区| 成人激情免费网站| 国产精品福利av| 一本色道久久综合亚洲aⅴ蜜桃| **欧美大码日韩| 欧美做爰猛烈大尺度电影无法无天| 国产精品久久看| 91在线高清观看| 亚洲一级二级在线| 911精品国产一区二区在线| 日韩激情中文字幕| 精品国产污网站| 成人免费不卡视频| 一区二区三区不卡视频| 欧美精品一卡两卡| 久久91精品久久久久久秒播| 精品粉嫩aⅴ一区二区三区四区| 国产在线看一区| 中文字幕高清不卡| 在线观看日韩毛片| 久久精品国产免费| 综合亚洲深深色噜噜狠狠网站| 色88888久久久久久影院按摩 | 国内精品伊人久久久久影院对白| 日韩精品一区二区三区视频播放 | 欧美色涩在线第一页| 国产精品蜜臀在线观看| www.66久久| 午夜欧美一区二区三区在线播放| 日韩一区二区电影在线| 粉嫩13p一区二区三区| 亚洲精品美腿丝袜| 日韩情涩欧美日韩视频| 国产a区久久久| 一区二区视频在线| 欧美videofree性高清杂交| 99久久久无码国产精品| 丝袜a∨在线一区二区三区不卡| 久久久久久久免费视频了| 91色视频在线| 国产在线日韩欧美| 亚洲小说春色综合另类电影| 精品福利一区二区三区免费视频| 一本色道久久加勒比精品| 黄网站免费久久| 亚洲综合色婷婷| 国产精品免费丝袜| 久久久久亚洲蜜桃| 欧美精品乱码久久久久久| 成人精品高清在线| 麻豆国产欧美一区二区三区| 亚洲三级在线免费| 久久久久久久久99精品| 欧美一区2区视频在线观看| 色综合一区二区三区| 国产福利一区在线| 麻豆精品国产91久久久久久| 亚洲va欧美va国产va天堂影院| 国产三区在线成人av| 日韩小视频在线观看专区| 91网站最新地址| 成人爱爱电影网址| 精品一区二区免费视频| 五月婷婷综合激情| 亚洲精品免费看| 一区二区三区在线视频观看 | 成人h精品动漫一区二区三区| 蜜桃视频一区二区三区在线观看 | 成人在线视频一区二区| 久久成人羞羞网站| 久久av老司机精品网站导航| 亚洲成人免费影院| 亚洲va韩国va欧美va| 水野朝阳av一区二区三区| 婷婷中文字幕一区三区| 一区二区三区av电影| 一区二区在线观看视频|