国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

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

代寫ENGG1340、代做Python/C++編程語言
代寫ENGG1340、代做Python/C++編程語言

時間:2025-03-04  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



ENGG1340 Programming Technologies / COMP2113 Computer Programming II
Assignment 1
Deadline: 1 March (Saturday), 2025 23:59
General Instructions
Submit your assignment via VPL on Moodle. Ensure that your program can execute, and generate the required outputs in
VPL. Work incompatible with the VPL may not be marked.
For shell scripts (Problem 1 and 2), they must starts with the header #!/bin/bash, and will be executed using the Bash
shell on our standard environment.
As a developer, ensure that your code works flawlessly in the intended environment, not just your own. While you may
develop your work in your own environment, always test your program in our standard environment before submission.
Evaluation
For tasks requiring user input, utilize the standard input. Likewise, your program should output/print through the
standard output. Strict adherence to the sample output format is required, or your answer may be marked incorrect.
Your code will be automatically graded for technical correctness. Essentially, we use test cases to evaluate your
solution, failure to pass any of the test cases may result in zero marks. Partial credits are generally not given for
incomplete solutions as it may be challenging to objectively assess incomplete program logic. However, your work may
still be considered on a case-by-case basis during the rebuttal stage.
Additional test case will be used during grading. Scoring full marks on VPL does not ensure full marks in the assignment.
Sample test cases may or may not encompass all boundary cases. Designing proper test cases to verify your program’s
accuracy is part of the assessment.
Academic dishonesty
Your code will be cross-checked with other submissions and online sources for logical duplication. Note that providing
your work to others, aiding others in copying, or copying from others will be considered plagiarism, and will be dealt with
as per departmental policy. Please refer to the course information notes for more details.
Use of generative AI tools, like ChatGPT, is not permitted for all assignment.
Getting help
You are not alone! If you are stuck, post your query on the course forum. This assignment should be educational and
rewarding, not frustrating. We are here to help, but we can only do so if you reach out.
Please avoid spoilers on the discussion forum. Do not post any code directly related to the assignments. You are,
however, encouraged to discuss general concepts on the forums.
Submission
Deadlines are strictly enforced. Resubmission beyond the submission period will not be accepted.
Late Policy:
If you submit within 2 days after the deadline, 30% deduction.
If you submit within 3-5 days after the deadline, 50% deduction.
After that, no mark.
Problem 1: Count Substring Matches
Write a shell script that takes two command line arguments substring and file. It will count the words that contains
substring in file and produce the result.
Input:
The shell script does not read input from user. However, it expects two command line arguments substring and
file.
Output:
The script should list all words found, with the number of occurrences of that word in file. Refer to the sample
outputs for the exact format.
The words should be listed in descending order of the number of occurrences. For words with the same number of
occurrences, they should be listed in ascending order of their ASCII values.
The script should output nothing when there are fewer than two command line arguments specified or when the
file does not exist.
Assumptions:
The command line argument substring contains alphabets only. There will be no digits, symbols, or whitespace
characters in substring.
file, if exists, is a plain text file and is readable by all user.
The locale settings of the shell can affect the result of sorting. The shell script will be executed using Locale “C”. If
you are testing in your own Linux environment, please execute command export LC_ALL=C.UTF-8 to change the
locale settings accordingly.
Requirements:
For this question, a word is bounded by spaces or symbols, or by line boundaries (i.e., start of a line or end of a
line). For example, the string Gutenberg(TM)'s should be treated as three words Gutenberg, TM, and s.
Substring matching should be case insensitive. E.g., searching for tale should find TALE and tale.
On the other hand, when counting the number of occurrences of a word, it should be done in a case-sensitive
manner. E.g., TALE and tale should be counted separately.
Notes:
A file ebook.txt is provided for testing. A different file may be used when grading your work.
Study the man page of grep and sort to learn about possible options to use for this task.
There is no need to follow the exact amount of leading spaces shown in the sample outputs. Leading spaces will
be ignored in evaluation. If you are testing in your own environment, you can use flag -Bw of command diff for
comparison.
Sample Test Cases
1_1
Command: ./1.sh tale ebook.txt
Output:
3 TALE
2 Tale
1_2
Command: ./1.sh time ebook.txt
Output:
30 time
10 times
3 Sometimes
1 lifetime
1 oftentimes
1 sentiment
1 sometimes
1_3
Command: ./1.sh jerry ebook.txt
Output:
14 Jerry
1_4
Command: ./1.sh pokemon ebook.txt
Output: (it’s empty)
Problem 2: Credit card number validation
Write a Shell Script for validating credit card numbers using the Luhn algorithm.
The steps to validate a credit number using the Luhn algorithm are as follows:
1. Starting from the rightmost digit (that is the check digit), double the value of every second digit.
2. If the doubled value is a two-digit number, sum the digits of that number together to form a single digit.
3. Add all the 16 digits together.
4. If the final sum is divisible by 10, then the credit card is valid. If it is not divisible by 10, the number is invalid or fake.
For example, consider the credit card number 4512 3456 7890 1234. Applying the Luhn algorithm:
Double every second digit, starting from the right: 4, 6, 2, 2, 0, 18, 8, 14, 6, 10, 4, 6, 2, 2, 5, 8.
Sum all the resulting digits: 4 + 6 + 2 + 2 + 0 + 9 + 8 + 5 + 6 + 1 + 4 + 6 + 2 + 2 + 5 + 8 = 70.
Since 70 is divisible by 10, the credit card number is valid.
Input:
The shell script reads one credit card number from user.
Output:
The script should output a message reporting the validity of the credit card number. Refer to the sample outputs
for the exact format.
Assumptions:
You can assume that the input is always a 16-digit number, and each digit is in the range [0, 9]. There is no need to
consider invalid inputs.
Sample Test Cases (Inputs are shown in blue)
2_1
Enter the number for checking:
4512345678901234
The number 4512345678901234 is valid.
2_2
Enter the number for checking:
4512345678901235
The number 4512345678901235 is invalid.
2_3
Enter the number for checking:
1234567890123456
The number 1234567890123456 is invalid.
2_4
Enter the number for checking:
1234567890123452
The number 1234567890123452 is valid.

請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp



 

掃一掃在手機打開當前頁
  • 上一篇:質量流量計的信號輸出方式有哪些?
  • 下一篇:代寫EL2311、代做SQL編程設計
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務 管路
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真技術服務
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲勞振動
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務 7類仿真分析代做服務40個行業
    流體cfd仿真分析服務 7類仿真分析代做服務4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗證碼 豆包網頁版入口 破天一劍 目錄網 排行網

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

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

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    肉大捧一出免费观看网站在线播放 | 国产精品久久久久久搜索| 国产精品国产三级国产专区53| 一本久道久久综合| 91精品国产成人www| 国产一区二区三区播放| 91精品国产高清久久久久久91裸体 | 麻豆中文字幕在线观看| 国产精品99免视看9| 久久综合亚洲社区| 日本wwwcom| 国产精品香蕉视屏| 操91在线视频| 久久中文字幕在线视频| 欧美日韩国产高清视频| 久久一区免费| 亚洲欧洲国产精品久久| 国产一区二区久久久| 色婷婷久久一区二区| 一区高清视频| 免费一级特黄特色毛片久久看| 69精品小视频| 又大又硬又爽免费视频| 国内精品视频一区二区三区| 久久久久久亚洲精品不卡| 亚洲色婷婷久久精品av蜜桃| 国产精品自在线| 国产精品后入内射日本在线观看| 大j8黑人w巨大888a片| 国产精品一区视频网站| 精品乱码一区| 国产综合色香蕉精品| 久久精品影视伊人网| 欧洲亚洲一区二区| 久久久久久久97| 日本免费a视频| 久久综合久久久| 亚洲五码在线观看视频| 欧美尤物一区| 久久精品.com| 日韩免费av片在线观看| 久久av秘一区二区三区| 日韩中文字幕在线免费| 91久久久久久久久久久久久| 亚洲精品国产suv一区88| 97福利一区二区| 亚洲v日韩v欧美v综合| 777午夜精品福利在线观看| 懂色av一区二区三区四区五区| 不卡一卡2卡3卡4卡精品在| 国产精品极品美女在线观看免费| 欧美在线视频一二三| 色噜噜狠狠狠综合曰曰曰| 欧美激情www| 精品高清视频| 成人a视频在线观看| 亚洲综合色av| 久久久www免费人成黑人精品| 亚洲乱码国产一区三区| 91超碰中文字幕久久精品| 日韩在线一级片| 久艹在线免费观看| 欧美国产日韩在线播放| 国产精品毛片a∨一区二区三区|国| 国产中文字幕在线免费观看| 久久成人精品视频| 丰满爆乳一区二区三区| 亚洲精品9999| 久久久久久九九九| 国产综合 伊人色| 亚洲在线视频一区二区| 国产成人精品免费视频| 欧美久久久久久| 国产精品日韩在线播放| 国产欧美在线看| 川上优av一区二区线观看| 91免费欧美精品| 日本wwww视频| 国产精品成人一区二区三区| 成人一级生活片| 色噜噜狠狠色综合网| 国产精品丝袜白浆摸在线| 国产视频一区二区不卡| 午夜欧美不卡精品aaaaa| www.久久色.com| 国产奶头好大揉着好爽视频| 亚洲va韩国va欧美va精四季| 国产成人精品久久亚洲高清不卡| 欧美一区亚洲二区| 亚洲自拍另类欧美丝袜| 久久久久久久国产| 国产美女永久无遮挡| 日本中文字幕在线视频观看| 国产精品美女av| 91精品综合久久| 国内自拍在线观看| 一区二区三区一级片| 日韩在线视频免费观看高清中文| 蜜桃成人免费视频| 春色成人在线视频| 久热精品在线视频| 国产成人精品久久亚洲高清不卡| 黄色一级大片在线观看| 国产精品第一第二| 99国产精品久久久久老师| 欧美交换配乱吟粗大25p| 亚洲综合欧美日韩| 国产精品视频大全| 国产成人激情视频| 国产精品小说在线| 欧美凹凸一区二区三区视频| 午夜欧美不卡精品aaaaa| 国产精品美女xx| 久久av二区| 91精品成人久久| 国产美女精品在线观看| 欧美少妇在线观看| 天天摸天天碰天天添| 国产精品视频内| 久久艹中文字幕| 超碰97人人人人人蜜桃| 国产一区二区三区小说| 秋霞午夜一区二区| 色噜噜狠狠一区二区三区| 亚洲综合中文字幕在线| 国产精品美女久久久久av福利 | 久久国产精品影视| 国产精品手机播放| 91精品国产99| 国产美女主播在线| 精品网站在线看| 青青草国产精品一区二区| 日韩资源av在线| 亚洲图片都市激情| 欧美激情亚洲视频| 国产精品第1页| 国产精品日韩在线观看| 日韩在线播放一区| 国产精品99久久久久久大便| 97久久伊人激情网| av免费网站观看| 97人人模人人爽人人少妇| 成人久久久久爱| 成年人网站国产| 国产一区不卡在线观看| 国产一区二区在线免费视频| 欧美国产视频在线观看| 日本一二三区视频在线| 亚洲一区二区三区免费观看| 欧美激情一区二区三区高清视频| 精品免费久久久久久久| 精品自拍视频在线观看| 精品国产一区二区三区久久久久久| 久热99视频在线观看| 国产精品嫩草影院一区二区| 国产激情999| 日韩在线小视频| 日韩视频在线观看免费| 久久精品亚洲精品| 三级精品视频久久久久| 久久精品国产亚洲精品| 国产精品美女久久久久av福利| 欧美成aaa人片在线观看蜜臀| 麻豆乱码国产一区二区三区| 欧美成人精品在线观看| 一区二区视频在线免费| 亚洲 国产 欧美一区| 日本欧美一二三区| 欧美精品亚洲精品| 国产男女免费视频| 68精品久久久久久欧美| 99热国产免费| 久久久久久久一区二区| 国产精品高潮粉嫩av| 久久天天躁狠狠躁夜夜躁2014 | 国产极品精品在线观看| 国产成人亚洲综合青青| 国产成人精品视频免费看| 国产精品精品久久久久久| 欧美精品在线看| 亚洲欧洲一区二区在线观看| 日本久久久网站| 国产伦精品一区二区三区高清版 | 久久九九国产视频| 欧美精品在线免费播放| 日韩.欧美.亚洲| 国产免费黄色一级片| 日韩最新免费不卡| 午夜一区二区三区| 国产乱肥老妇国产一区二| 色噜噜亚洲精品中文字幕| 亚洲女人毛片| 国产免费观看高清视频| 国产精品视频一区国模私拍| 亚洲精品久久久久久一区二区| 免费99视频| 国产精品av一区| 国产精品二区在线观看| 国产欧亚日韩视频| 国产伦精品一区二区三区高清|