日韩精品一区二区三区高清_久久国产热这里只有精品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>
        在线精品视频一区二区三四| 蜜臀av性久久久久蜜臀aⅴ| 欧美一区二区在线免费播放| 亚洲国产一成人久久精品| 国外视频精品毛片| 国产精品福利网| 欧美激情一区二区久久久| 激情久久五月天| 欧美精品日日鲁夜夜添| 国产欧美一区二区三区久久人妖| 国产精品高潮粉嫩av| 久久理论片午夜琪琪电影网| 久久久999精品免费| 国产精品v亚洲精品v日韩精品| 欧美亚洲在线观看| 欧美一级播放| 亚洲精品乱码久久久久久蜜桃麻豆| 亚洲国产欧美不卡在线观看| 欧美成人综合网站| 国产欧美丝祙| 欧美日韩国产区一| 欧美日韩视频免费播放| 亚洲免费在线视频一区 二区| 亚洲日本黄色| 免费毛片一区二区三区久久久| 亚洲激情第一区| 国产精品永久免费视频| 欧美激情在线有限公司| 国产一区 二区 三区一级| 美国成人毛片| 老司机67194精品线观看| 亚洲第一视频网站| 欧美一区二区三区播放老司机| 久久久久网址| 欧美精品一区二区视频| 欧美日韩另类丝袜其他| 老司机免费视频久久| 国产精品国产福利国产秒拍| 亚洲茄子视频| 欧美激情一区二区三区不卡| 欧美一进一出视频| 欧美在线视频观看| 国产精品videossex久久发布| 国产精品美女在线| 亚洲激情中文1区| 亚洲欧美日韩另类精品一区二区三区| 亚洲美女在线国产| 久久亚洲精品一区| 欧美激情国产高清| 欧美a级一区二区| 中文av一区特黄| 久久亚洲免费| 欧美日韩亚洲不卡| 国产日韩欧美精品一区| 国产精品日韩电影| 欧美成人综合一区| 欧美制服丝袜| 欧美电影免费| 国产精品av久久久久久麻豆网| 国产色综合久久| 亚洲九九精品| 亚洲欧美激情精品一区二区| 亚洲精品一区二区三区婷婷月| 日韩亚洲欧美精品| 欧美午夜电影在线| 亚洲午夜久久久久久尤物| 性欧美办公室18xxxxhd| 99精品国产热久久91蜜凸| 毛片av中文字幕一区二区| 欧美精品在线免费播放| 老司机成人在线视频| 在线观看91久久久久久| 国产精品一二一区| 国产精品一区二区三区久久久| 久久九九热re6这里有精品| 国内精品**久久毛片app| 在线精品高清中文字幕| 欧美日韩亚洲三区| 国产精品成人aaaaa网站| 亚洲国产一区视频| 欧美亚洲一级片| 理论片一区二区在线| 国产精品国产亚洲精品看不卡15| 欧美国产日韩xxxxx| 日韩视频欧美视频| 一区二区三区福利| 伊人色综合久久天天五月婷| 久久夜色精品| 激情av一区| 亚洲在线免费视频| 欧美成人免费在线| 久久午夜羞羞影院免费观看| 在线亚洲电影| 亚洲欧美日韩精品久久| 亚洲福利视频一区| 亚洲欧美综合另类中字| 影音先锋中文字幕一区| 欧美日韩一区二区在线视频| 国产精品免费视频观看| 亚洲免费久久| 亚洲欧美精品伊人久久| 一区二区视频免费在线观看| 亚洲一二三四久久| 激情小说亚洲一区| 久久国产精品一区二区三区四区| 亚洲乱码精品一二三四区日韩在线| 亚洲欧美电影在线观看| 美国十次成人| 国产婷婷精品| 欧美日韩卡一卡二| 欧美一区二区三区在线观看视频| 99视频热这里只有精品免费| 国产日韩欧美在线播放不卡| 欧美大片在线观看一区二区| 久久只有精品| 校园春色综合网| 宅男噜噜噜66一区二区66| 亚洲私人影院| 欧美日韩免费一区| 欧美在线观看一区| 国产精品播放| 欧美丰满高潮xxxx喷水动漫| 亚洲成人在线免费| 久久躁日日躁aaaaxxxx| 国产精品免费久久久久久| 欧美1级日本1级| 欧美三区美女| 国产精品裸体一区二区三区| 日韩一区二区免费高清| 欧美精品成人91久久久久久久| 欧美日韩一区三区四区| 国产精品嫩草99a| 亚洲一区二区三区在线| 性久久久久久久久| 亚洲视频网在线直播| 在线视频欧美一区| 欧美国产日韩精品| 亚洲午夜精品网| 国产精品热久久久久夜色精品三区| 欧美一区二区日韩一区二区| 国产午夜精品美女视频明星a级| 亚洲成色www久久网站| 欧美无砖砖区免费| 在线观看欧美日韩| 国产精品yjizz| 蜜臀久久99精品久久久久久9| 国产亚洲综合性久久久影院| 亚洲国产日韩欧美在线动漫| 欧美一二三视频| 国产亚洲精品资源在线26u| 久久一区国产| 亚洲二区在线观看| 国产欧美日韩三级| 欧美a级大片| 久久久噜噜噜久久人人看| 在线一区视频| 欧美日韩伦理在线免费| 国产精品在线看| 午夜一区二区三区在线观看| 日韩亚洲欧美在线观看| 亚洲欧洲一区二区在线观看| 亚洲国产美女精品久久久久∴| 亚洲精品小视频在线观看| 久久久久久久国产|