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爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          欧美电影在线播放| 亚洲激情在线视频| 欧美国产视频在线| 亚洲图片欧美午夜| 亚洲电影免费| 国产欧美精品国产国产专区| 免费不卡在线观看av| 性8sex亚洲区入口| 一区二区欧美国产| 91久久久一线二线三线品牌| 国产日韩欧美电影在线观看| 欧美午夜性色大片在线观看| 欧美刺激性大交免费视频| 欧美一区二区高清| 亚洲综合色视频| 99国内精品久久| 亚洲精品日产精品乱码不卡| 狠狠色噜噜狠狠色综合久| 国产麻豆精品在线观看| 欧美色欧美亚洲高清在线视频| 欧美成人黄色小视频| 久久亚洲春色中文字幕| 久久国产精品72免费观看| 亚洲影视综合| 亚洲一区不卡| 亚洲视频在线观看三级| 亚洲精品中文字| 亚洲精品孕妇| 99视频有精品| 国产精品99久久久久久有的能看 | 欧美一区二区在线免费播放| 亚洲日本va午夜在线影院| 精品1区2区3区4区| 精品动漫3d一区二区三区免费| 国产九区一区在线| 国产日韩欧美成人| 香蕉久久夜色精品国产| 久久精品日产第一区二区| 欧美日韩在线播放三区| 亚洲高清不卡av| 翔田千里一区二区| 国产精品xnxxcom| 亚洲开发第一视频在线播放| 欧美综合二区| 亚洲免费在线播放| 久久亚洲不卡| 欧美精品一区二区在线观看| 欧美日韩综合在线| 国产亚洲午夜| 亚洲精品一区在线观看| 亚洲小说区图片区| 久久精品二区三区| 欧美国产日韩在线| 国产噜噜噜噜噜久久久久久久久| 国内自拍亚洲| 亚洲精品自在久久| 欧美一区日本一区韩国一区| 久久综合国产精品台湾中文娱乐网| 欧美成人蜜桃| 国产美女扒开尿口久久久| 黄色成人在线| 亚洲小视频在线观看| 久久久久久午夜| 国产精品久久久久久久久借妻| 国内在线观看一区二区三区| 日韩天堂在线视频| 久久噜噜亚洲综合| 亚洲美女在线国产| 久久男人资源视频| 亚洲大胆美女视频| 欧美精品一区二区三区久久久竹菊| 亚洲人午夜精品免费| 欧美韩日视频| 亚洲网站在线看| 国产欧美日韩不卡免费| 久久免费视频观看| 亚洲精品国久久99热| 欧美日韩一二区| 欧美一级在线视频| 亚洲黄色成人| 国产精品久久久久久久久免费| 欧美一区二区大片| 亚洲高清视频中文字幕| 欧美调教视频| 久久精品噜噜噜成人av农村| 亚洲国产欧美一区二区三区丁香婷| 欧美黑人在线观看| 亚洲免费在线视频| 在线观看欧美黄色| 国产精品chinese| 久久久久国产精品午夜一区| 亚洲精品在线电影| 国产午夜久久久久| 欧美老女人xx| 久久精品国语| 亚洲制服av| 亚洲三级毛片| 国产亚洲美州欧州综合国| 欧美精品一区二区三区蜜臀| 欧美诱惑福利视频| 一区二区欧美在线| 亚洲第一区在线观看| 国产欧美欧美| 欧美日韩一区二区三区免费 | 中国日韩欧美久久久久久久久| 国产精品视频自拍| 欧美精品成人| 久久精品夜色噜噜亚洲a∨| 一区二区国产日产| 在线成人激情视频| 国产伦精品一区二区| 欧美日韩高清一区| 另类尿喷潮videofree| 性欧美videos另类喷潮| 亚洲精品乱码| 狠狠色丁香婷婷综合久久片| 国产精品第三页| 欧美日本中文字幕| 国产亚洲人成a一在线v站| 一本色道久久88亚洲综合88| 国产精品视频专区| 久久久久久网站| 日韩视频免费在线观看| 国产精品国产自产拍高清av| 欧美一区二区性| 91久久国产精品91久久性色| 国产精品黄视频| 久久青草欧美一区二区三区| 99国产精品久久久久久久久久 | 欧美成人免费小视频| 欧美三级欧美一级| 久久免费精品视频| 久久久久久久久久久久久久一区| 欧美尤物巨大精品爽| 欧美一区=区| 久久精品国产欧美激情| 欧美亚洲视频在线看网址| 亚洲欧美三级伦理| 午夜精品一区二区三区四区| 午夜久久电影网| 欧美一区午夜精品| 久久噜噜噜精品国产亚洲综合| 欧美在线视屏| 久久人91精品久久久久久不卡| 久久久久国色av免费看影院 | 欧美视频网站| 国产精品看片你懂得| 国产精品一区二区你懂的| 国产日韩欧美在线视频观看| 激情懂色av一区av二区av| 亚洲成人资源网| 一本大道av伊人久久综合| 亚洲一区美女视频在线观看免费| 亚洲影视在线| 久久青青草综合| 欧美日韩国产999| 国产精品人人做人人爽人人添| 国产偷国产偷精品高清尤物| 精品动漫一区| 99这里只有精品| 久久国产精品72免费观看| 美女露胸一区二区三区| 欧美视频免费看| 国产一区二区三区自拍| 亚洲人成网站影音先锋播放| 一区二区三区四区五区在线| 久久精品国产77777蜜臀| 欧美激情国产日韩精品一区18| 欧美日韩一区二区在线视频 | 欧美日韩国产成人高清视频| 国产精品视频久久一区| 亚洲第一狼人社区| 亚洲一卡二卡三卡四卡五卡| 性色一区二区三区| 欧美激情一区在线| 国产亚洲精品bt天堂精选| 亚洲精品视频一区二区三区| 欧美在线你懂的| 欧美午夜影院| 亚洲国产精品一区二区www| 亚洲欧美综合v| 欧美日韩一视频区二区| 1024亚洲| 久久久久久久尹人综合网亚洲| 欧美手机在线视频| 亚洲人成网站色ww在线 | 精品69视频一区二区三区| 国内精品伊人久久久久av一坑| 在线观看一区| 亚洲免费观看高清在线观看 | 国产精品久久久久aaaa樱花| 国产嫩草一区二区三区在线观看 | 国产综合久久久久久| 国产综合18久久久久久| 亚洲深夜福利| 欧美激情小视频| 亚洲三级免费| 牛牛影视久久网| 在线免费一区三区| 久久人人97超碰国产公开结果|