日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

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

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

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

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

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

    日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

      <em id="rw4ev"></em>

        <tr id="rw4ev"></tr>

        <nav id="rw4ev"></nav>
        <strike id="rw4ev"><pre id="rw4ev"></pre></strike>
        欧美在线一区二区| 国产精品久久久爽爽爽麻豆色哟哟| 久久精品欧美日韩| 亚洲女优在线| 午夜精品久久99蜜桃的功能介绍| 国产精品麻豆欧美日韩ww| 国产精品专区一| 亚洲激情第一页| 欧美成人免费大片| 免费视频久久| 国产麻豆午夜三级精品| 欧美一级午夜免费电影| 久久久久九九九| 国精品一区二区三区| 亚洲成人影音| 亚洲图片欧美一区| 亚洲精品在线观看免费| 另类国产ts人妖高潮视频| 欧美日韩免费观看一区二区三区| 久久精品国产99国产精品澳门| 久久精品一区| 欧美视频不卡中文| 国产精品久久久久高潮| 欧美色欧美亚洲另类七区| 国产欧美一区二区三区在线老狼| 黄色精品在线看| 亚洲免费一区二区| 国产精品magnet| 欧美高清在线视频| 国产欧美一区二区精品婷婷| 亚洲天堂黄色| 欧美一级久久| 欧美激情综合色综合啪啪| 欧美性片在线观看| 国产有码一区二区| 欧美一级黄色网| 欧美激情va永久在线播放| 久久久久国色av免费看影院| 9l视频自拍蝌蚪9l视频成人| 欧美黄色一区二区| 欧美精品日日鲁夜夜添| 国产乱码精品| 狠狠色狠狠色综合日日小说| 欧美一区二区国产| 亚洲欧洲日产国码二区| 久久国产精品久久久久久久久久| 亚洲欧美在线aaa| 欧美日韩国产在线看| 老司机67194精品线观看| 亚洲精品一区二区三区不| 国内精品免费午夜毛片| 亚洲国产一区视频| 久久九九有精品国产23| 亚洲综合色网站| 99精品欧美一区二区三区| 欧美日韩国产成人在线免费| 亚洲在线免费观看| 免费观看一级特黄欧美大片| 亚洲激情另类| 巨胸喷奶水www久久久免费动漫| 久久精品一区二区三区四区| 亚洲黄色免费| 国产主播一区| 一区二区三区视频免费在线观看| 亚洲福利视频免费观看| 国产一区二区0| 欧美视频一区二区三区四区| 欧美日韩裸体免费视频| 欧美日韩国产成人在线免费| 日韩午夜三级在线| 久久久综合香蕉尹人综合网| 国产精品成人av性教育| 国产主播精品| 久久午夜av| 99国内精品| 午夜精品在线看| 香蕉成人啪国产精品视频综合网| 亚洲区免费影片| 亚洲激情视频在线观看| 狠狠色伊人亚洲综合网站色| 亚洲精品免费看| 亚洲国产高清视频| 亚洲人午夜精品| 国内精品一区二区| 国产精品欧美在线| 午夜天堂精品久久久久| 黑人操亚洲美女惩罚| 亚洲欧洲精品一区二区| 亚洲美女在线看| 国产一区二区三区在线观看免费视频| 欧美片第一页| 亚洲男人影院| 亚洲电影在线免费观看| 欧美片第一页| 欧美激情一区二区三区不卡| 欧美日韩黄色大片| 国产亚洲欧美日韩美女| 久久国产精品久久w女人spa| 久久久久综合网| 亚洲精品国产精品乱码不99| 亚洲国产高清自拍| 国产精品日韩欧美一区| 欧美精品久久久久久久| 久久久久久久久久久成人| 99精品国产热久久91蜜凸| 国产精品99久久久久久久女警| 欧美二区在线| 国产精品高清一区二区三区| 亚洲精品在线视频观看| 欧美激情导航| 开元免费观看欧美电视剧网站| 欧美资源在线| 欧美多人爱爱视频网站| 欧美一区二区在线播放| 99精品视频免费全部在线| 亚洲国产精品va在看黑人| 国产精品日本精品| 国产精品老牛| 国产精品美女在线| 亚洲人成人一区二区在线观看| 欧美www视频在线观看| 亚洲欧洲日夜超级视频| 亚洲三级影片| 久久久久久久久久看片| 国产婷婷色一区二区三区| 国产亚洲视频在线观看| 国语自产精品视频在线看| 久久久女女女女999久久| 欧美激情偷拍| 国产伦精品一区二区三区免费| 亚洲深夜福利在线| 亚洲在线国产日韩欧美| 国产婷婷色一区二区三区四区| 亚洲精品乱码久久久久久| 国产精品九九久久久久久久| 洋洋av久久久久久久一区| 国产精品一页| 国产在线拍偷自揄拍精品| 亚洲日韩欧美视频一区| 欧美激情第一页xxx| 欧美性事免费在线观看| 日韩香蕉视频| 国产日产高清欧美一区二区三区| 欧美日韩精品一区二区天天拍小说| 欧美一区二区视频网站| 在线性视频日韩欧美| 亚洲午夜未删减在线观看| 亚洲大黄网站| 欧美一级黄色网| 亚洲精品资源美女情侣酒店| 国产一区二区日韩精品欧美精品| 国产精品久久久久国产精品日日| 亚洲福利久久| 亚洲视频在线观看免费| 久久午夜国产精品| 欧美激情二区三区| 亚洲一区二区三区在线视频| 欧美亚洲免费电影| 毛片精品免费在线观看| 亚洲一区二区影院| 国产欧美一区二区精品忘忧草| 欧美日韩在线不卡一区| 亚洲一区二区三区视频播放| 欧美日韩久久|