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;">

                在线播放中文一区| 国内成人精品2018免费看| 亚洲欧美一区二区三区久本道91 | 欧美日韩精品三区| 成年人午夜久久久| 国产精品色婷婷久久58| 成人av电影在线播放| 久久人人超碰精品| 国产精品亚洲一区二区三区在线| 精品对白一区国产伦| 午夜电影久久久| 欧美大尺度电影在线| 麻豆视频观看网址久久| 欧美成人官网二区| 91视频精品在这里| 免费成人av资源网| 国产日韩欧美一区二区三区综合| 在线成人免费视频| 裸体健美xxxx欧美裸体表演| 欧美精品一区二区三区蜜桃 | 蓝色福利精品导航| 精品盗摄一区二区三区| 国产一区二区视频在线| 亚洲免费电影在线| 欧美精品一区二区三区一线天视频| 国产欧美一区二区三区在线老狼| 国产精品久久久久影院| 91精品国产高清一区二区三区| 精品国产乱码久久| 99久久精品情趣| 麻豆精品国产传媒mv男同| 国产精品国产三级国产普通话三级| 一卡二卡欧美日韩| 中文字幕av一区二区三区免费看 | 成人av资源在线观看| 亚洲一二三四区| 久久久天堂av| 欧美一区二区三区不卡| 777xxx欧美| 日韩一区二区在线观看| 欧美精品日韩一区| 91精品国产色综合久久不卡蜜臀| 欧美国产日韩a欧美在线观看| 亚洲女厕所小便bbb| 久久久久久久久久久电影| 91精品蜜臀在线一区尤物| 99re在线视频这里只有精品| 国产成人免费网站| 91美女片黄在线观看91美女| 99re这里都是精品| 91久久线看在观草草青青| 粗大黑人巨茎大战欧美成人| av欧美精品.com| 欧美乱妇15p| 国产日韩三级在线| 日本网站在线观看一区二区三区| www久久精品| 中文字幕一区二区三区四区| 亚洲综合色丁香婷婷六月图片| 在线成人午夜影院| 国产亚洲欧美日韩俺去了| 亚洲欧美自拍偷拍色图| 亚洲精品中文字幕乱码三区| 琪琪久久久久日韩精品| 成人妖精视频yjsp地址| 欧美乱妇一区二区三区不卡视频| 美脚の诱脚舐め脚责91| 国产老肥熟一区二区三区| 欧美日本在线视频| 天天色天天爱天天射综合| 91精品国产综合久久久蜜臀图片| 亚洲三级在线观看| 视频一区二区不卡| 色综合久久久久综合体桃花网| 久久国产精品99精品国产| 成人激情图片网| 久久精品一区二区三区av| 99麻豆久久久国产精品免费 | 日韩一区二区免费在线观看| 欧美韩日一区二区三区四区| 日韩二区三区四区| 欧美性大战久久久久久久蜜臀| 欧美亚洲丝袜传媒另类| 99在线精品一区二区三区| 亚洲国产激情av| 婷婷开心久久网| 久久草av在线| 国产精品亚洲综合一区在线观看| 日本不卡视频在线观看| 欧美日韩不卡一区| 国产成人超碰人人澡人人澡| 亚洲成人免费在线观看| 4hu四虎永久在线影院成人| 成人高清视频在线观看| 亚洲欧美另类久久久精品| 国产欧美一区在线| 亚洲午夜羞羞片| 精品在线免费观看| 丁香亚洲综合激情啪啪综合| 91蜜桃在线免费视频| 日韩欧美一二三区| 一区二区三区在线影院| 九一九一国产精品| 亚洲成人av中文| 9i看片成人免费高清| 日韩高清一级片| 国产98色在线|日韩| 美女一区二区久久| 91在线免费播放| 精品国产自在久精品国产| 午夜激情一区二区三区| 成人av电影在线| 亚洲精品一线二线三线| 五月婷婷欧美视频| 91免费看`日韩一区二区| 久久久亚洲精品一区二区三区| 欧美色图片你懂的| 国产精品视频麻豆| 国产成人av电影| 国产欧美精品一区二区色综合| 欧美一区永久视频免费观看| 中文字幕一区二区视频| 国产麻豆午夜三级精品| 777xxx欧美| 日韩中文字幕不卡| 在线综合视频播放| 美女看a上一区| 日韩欧美国产一区二区三区 | 国产精品女同一区二区三区| 蜜臀av一级做a爰片久久| 日本道免费精品一区二区三区| 91福利精品视频| 亚洲影视在线观看| 欧美在线免费播放| 亚洲狼人国产精品| 在线观看亚洲专区| 亚洲国产另类av| 欧美一级欧美三级| 国产做a爰片久久毛片| 久久久久久免费毛片精品| www.日韩精品| 亚洲欧美一区二区不卡| 欧美日韩五月天| 日本中文一区二区三区| 久久久午夜精品| gogogo免费视频观看亚洲一| 国产精品欧美久久久久无广告| 亚洲夂夂婷婷色拍ww47| 欧美日本一区二区| 国内精品久久久久影院一蜜桃| 色综合一个色综合| 一区二区在线观看av| 欧美日韩一区在线| 韩国女主播一区| 亚洲精品高清在线| 欧美成人精品二区三区99精品| 国产精品情趣视频| 日本精品视频一区二区三区| 日本欧美肥老太交大片| 国产精品美女久久久久久久| 欧美日韩电影一区| 激情综合五月天| 亚洲美女屁股眼交| 日韩精品一区二区三区swag| 95精品视频在线| 国产在线播放一区| 天堂一区二区在线| 中文字幕一区二区三区四区不卡| 国产一区二区三区久久久 | 欧美网站一区二区| 国产麻豆欧美日韩一区| 亚洲在线观看免费| 日本一区二区久久| 欧美成人精精品一区二区频| 在线国产亚洲欧美| av在线一区二区三区| 精品在线观看免费| 日韩电影一区二区三区四区| 亚洲久草在线视频| 国产精品天干天干在观线| 日韩一级完整毛片| 欧美日韩国产成人在线91| 成人av手机在线观看| 国产揄拍国内精品对白| 久久国产精品免费| 美女在线视频一区| 青青草91视频| 日韩电影在线免费观看| 亚洲国产视频a| 亚洲视频电影在线| 亚洲色欲色欲www| 中文字幕一区二区三区不卡在线| 91麻豆视频网站| 99久久精品国产导航| 波多野结衣在线aⅴ中文字幕不卡| 中文字幕国产一区| 久久夜色精品一区| 2欧美一区二区三区在线观看视频| 成人丝袜视频网| av男人天堂一区|