加勒比久久综合,国产精品伦一区二区,66精品视频在线观看,一区二区电影

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

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

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 目錄網 排行網

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

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

    9999在线精品视频| 日韩专区一卡二卡| 国产高清日韩| 中文字幕这里只有精品| 开心激情综合| 国内精品美女在线观看| 国产精品久久久久久久免费观看| 久久99国产精品久久99大师| 在线精品在线| 天堂中文在线播放| 欧美日韩视频| 精品久久ai| 国产欧美一区| 久久这里只有| 日韩欧美午夜| 爽好多水快深点欧美视频| 久久久久久久久丰满| 天堂俺去俺来也www久久婷婷| 美女久久久久久| 国产精品成人av| 亚洲精品2区| 久久免费黄色| 爱爱精品视频| 美女久久99| a一区二区三区亚洲| 一区二区日韩免费看| 亚洲第一av| 蜜臀精品久久久久久蜜臀| 精品欧美激情在线观看| 精品国产乱码久久久| 日韩福利电影在线观看| 一区二区三区午夜探花| 国产欧美在线观看免费| 中文字幕高清在线播放| 葵司免费一区二区三区四区五区| 欧美91视频| 99精品视频在线观看播放| 国产精品色在线网站| 天海翼精品一区二区三区| 成人乱码手机视频| 日本女优在线视频一区二区 | 香蕉精品久久| 久久精品影视| 精品美女久久| 欧美黑人巨大videos精品| 日韩视频一二区| 日韩在线你懂的| 日韩欧美在线精品| 国产探花一区在线观看| 国产精品亚洲二区| 国产九一精品| 国产乱码精品一区二区三区四区| 成人豆花视频| 国产成人三级| 日韩精品视频一区二区三区| 日韩电影免费在线| 日韩一区二区三区精品视频第3页| 日韩福利电影在线| 日本精品在线观看| 欧美三级午夜理伦三级中文幕| 精品国产鲁一鲁****| 日韩一区二区三区色| 91精品国产自产精品男人的天堂 | 久久九九精品视频| 精品视频在线播放一区二区三区| 国产探花一区二区| 天堂久久av| 国产一区丝袜| 久久福利综合| 午夜日韩激情| 久久99伊人| 日韩精品电影| 日韩成人在线一区| 日本欧美一区二区三区| 国产成人视屏| 亚洲三级av| 九一精品国产| 国产精品99视频| 欧美美女福利视频| 国内在线观看一区二区三区| 无码日韩精品一区二区免费| 精品午夜视频| 久久国产精品亚洲人一区二区三区 | 欧美精品国产一区二区| 亚洲bt欧美bt精品777| 亚洲精品高潮| 国产综合久久| 国产精品麻豆久久| 国产伊人久久| 欧洲一区在线| 欧美私人啪啪vps| 亚洲经典一区| av综合电影网站| 日本不卡一二三区黄网| 天海翼精品一区二区三区| 欧美aaaaaaaa牛牛影院| 亚洲欧美网站| 香蕉久久久久久| 国产精品视频一区二区三区| 一区二区在线免费播放| 欧美在线网站| 日韩黄色大片| 一区二区三区网站| 久久久久国产精品一区二区| 国产视频一区欧美| 欧美美女福利视频| 日本人妖一区二区| 亚洲激情不卡| 国产福利一区二区三区在线播放| 国产在线不卡一区二区三区| 神马午夜久久| 日本在线高清| 一区二区国产在线| 国产91精品对白在线播放| 天堂av在线一区| 日日夜夜一区二区| 一区二区在线视频观看| 亚洲一区一卡| 麻豆精品新av中文字幕| 亚洲图色一区二区三区| 亚洲一区二区三区免费在线观看 | 精品久久久中文字幕| 美女久久一区| 青草av.久久免费一区| 国产福利资源一区| 蜜桃av一区二区三区| 青娱乐精品在线视频| 成人爽a毛片| 欧美1级2级| 日韩欧美在线精品| 香蕉久久久久久久av网站| 麻豆传媒一区二区三区| 精品产国自在拍| 欧美aa视频| 日本一区二区三区播放| 久久国产66| 国产亚洲精aa在线看| 一本久道综合久久精品| 亚洲乱亚洲高清| 国产一区二区三区自拍| 欧美亚洲一级| 激情五月综合网| 日本不卡视频一二三区| 伊人成人在线视频| 一区二区不卡| 亚洲欧美高清| 国产欧美日本| 男人的天堂成人在线| 99久久99九九99九九九| 亚洲精品极品少妇16p| 麻豆极品一区二区三区| 久久伦理在线| 另类小说一区二区三区| 国产综合婷婷| 欧美国产日本| 亚洲免费网址| 日韩av二区在线播放| 91视频久久| 国产精品美女在线观看直播| 日韩在线观看电影完整版高清免费悬疑悬疑| 日韩vs国产vs欧美| 极品视频在线| 精品国产欧美日韩| 日日夜夜精品视频免费| 黄色成人精品网站| 国产精品日韩精品在线播放| 玖玖国产精品视频| 亚洲一区二区三区四区电影| 国产精品美女午夜爽爽| 不卡一区综合视频| 亚欧日韩另类中文欧美| 中文字幕不卡三区视频| 激情综合自拍| 欧美久久一区二区三区| 麻豆网站免费在线观看| 青青操综合网| 国产亚洲高清一区| 日韩影院二区| 午夜日韩福利| 日本高清精品| 欧美淫片网站| 久久成人一区| 久久99精品久久久久久欧洲站| 国内自拍一区| 中文字幕在线官网| 国产一区激情| 深夜福利一区二区三区| 欧美在线黄色| 日韩精品一区第一页| 国产精品极品国产中出| 日本欧美加勒比视频| 黑人精品一区| 亚洲国产精品91| 久久精品一级| 只有精品亚洲| 欧美日韩视频免费看| 亚洲欧美日韩精品一区二区| 久草精品视频| 亚洲影院天堂中文av色| 日本特黄久久久高潮|