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

合肥生活安徽新聞合肥交通合肥房產(chǎn)生活服務(wù)合肥教育合肥招聘合肥旅游文化藝術(shù)合肥美食合肥地圖合肥社保合肥醫(yī)院企業(yè)服務(wù)合肥法律

代寫(xiě)ENGG1340、代做Python/C++編程語(yǔ)言
代寫(xiě)ENGG1340、代做Python/C++編程語(yǔ)言

時(shí)間:2025-03-04  來(lái)源:合肥網(wǎng)hfw.cc  作者:hfw.cc 我要糾錯(cuò)



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.

請(qǐng)加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp



 

掃一掃在手機(jī)打開(kāi)當(dāng)前頁(yè)
  • 上一篇:質(zhì)量流量計(jì)的信號(hào)輸出方式有哪些?
  • 下一篇:代寫(xiě)EL2311、代做SQL編程設(shè)計(jì)
  • 無(wú)相關(guān)信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷(xiāo)助手小象助手多多出評(píng)軟件
    2025年10月份更新拼多多改銷(xiāo)助手小象助手多
    有限元分析 CAE仿真分析服務(wù)-企業(yè)/產(chǎn)品研發(fā)/客戶(hù)要求/設(shè)計(jì)優(yōu)化
    有限元分析 CAE仿真分析服務(wù)-企業(yè)/產(chǎn)品研發(fā)
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    出評(píng) 開(kāi)團(tuán)工具
    出評(píng) 開(kāi)團(tuán)工具
    挖掘機(jī)濾芯提升發(fā)動(dòng)機(jī)性能
    挖掘機(jī)濾芯提升發(fā)動(dòng)機(jī)性能
    海信羅馬假日洗衣機(jī)亮相AWE  復(fù)古美學(xué)與現(xiàn)代科技完美結(jié)合
    海信羅馬假日洗衣機(jī)亮相AWE 復(fù)古美學(xué)與現(xiàn)代
    合肥機(jī)場(chǎng)巴士4號(hào)線(xiàn)
    合肥機(jī)場(chǎng)巴士4號(hào)線(xiàn)
    合肥機(jī)場(chǎng)巴士3號(hào)線(xiàn)
    合肥機(jī)場(chǎng)巴士3號(hào)線(xiàn)
  • 短信驗(yàn)證碼 目錄網(wǎng) 排行網(wǎng)

    關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網(wǎng) 版權(quán)所有
    ICP備06013414號(hào)-3 公安備 42010502001045

    亚洲精品福利| 高清亚洲高清| 欧美亚洲国产日韩| 亚洲欧美在线专区| 日韩欧美三级| 亚洲最黄网站| 成人另类视频| 少妇精品久久久一区二区| 国产一区二区三区朝在线观看 | 免费毛片b在线观看| 午夜精品网站| 国产主播性色av福利精品一区| 欧美激情偷拍| 国产精品一区二区免费福利视频| 老司机午夜免费精品视频| 久久精品动漫| 国产日韩欧美中文在线| 久久亚洲黄色| 国产精品久久久久久模特 | 国产剧情在线观看一区| 亚洲日本在线观看视频| 免费看日韩精品| 激情五月综合网| 精品国产一区二区三区不卡蜜臂| 国产欧美另类| 国产精品大片| 国产精品久久久免费| 香蕉成人av| 国产精品国内免费一区二区三区| 一区在线观看| 亚洲午夜一区| 91精品精品| 天堂av一区| 久久久久久亚洲精品美女| 你懂的国产精品| 国产精品久久久一区二区| 欧美日韩国产网站| 另类中文字幕国产精品| 色综合桃花网| 日韩中字在线| 日韩欧美一区二区三区在线视频| 手机在线一区二区三区| 日韩中文字幕不卡| 免费在线欧美视频| 久久国产66| 免费看欧美女人艹b| 男女精品网站| 日韩中文字幕亚洲一区二区va在线| 亚洲电影在线一区二区三区| 欧美日韩在线观看视频小说| 久久久亚洲人| 免费av一区二区三区四区| 久久激情电影| 国产综合婷婷| 一本一道久久a久久精品蜜桃| 极品少妇一区二区三区| 久久社区一区| 女主播福利一区| 亚洲综合二区| 久久久久久网| 成人看片网站| 欧美一区影院| 中文在线日韩| 亚洲69av| 国产精品网站在线看| 久久激情网站| 加勒比久久综合| 亚洲欧美日韩在线观看a三区| 免费观看在线综合| 免费高潮视频95在线观看网站| 精品视频在线一区二区在线| 欧美一区在线看| 一区二区影院| 日韩电影免费在线看| 精品久久电影| 午夜久久美女| 97精品在线| 久久久久黄色| 国产麻豆精品| 亚洲国产中文在线二区三区免| 欧美三级午夜理伦三级小说| 91精品成人| 国产精品xx| 99久久综合国产精品二区| 青青草97国产精品免费观看| 精品一区二区三区四区五区| 中文字幕一区二区三区日韩精品| 欧美a大片欧美片| 国产亚洲成人一区| 日韩伦理视频| 日本不卡免费在线视频| 久久国际精品| 欧美大黑bbbbbbbbb在线| 免费成人性网站| 99精品国产99久久久久久福利 | 日韩美女精品| 久久精品播放| 欧美激情偷拍自拍| 美女视频黄 久久| 精品国产亚洲一区二区在线观看 | 伊人影院久久| 亚洲成人不卡| 国产日产精品一区二区三区四区的观看方式 | 日本免费一区二区三区视频| 国产字幕视频一区二区| 久久uomeier| 欧美激情亚洲| 久久国产毛片| 在线天堂新版最新版在线8| 日精品一区二区| 国产精品黄网站| 免费观看日韩av| 欧美日韩18| 伊人春色之综合网| 国模套图日韩精品一区二区| 久久中文资源| 欧美午夜精品一区二区三区电影| 蜜桃久久久久久| 亚洲欧洲日韩| 久久亚洲国产| 日韩伦理视频| 日韩av影院| 亚洲综合二区| 亚洲人成免费网站| 国产一区激情| 福利一区视频| 欧美有码在线| 欧美黄色网页| 日韩av综合| 日韩精品一卡二卡三卡四卡无卡| 日韩精品亚洲一区二区三区免费| 给我免费播放日韩视频| 国产传媒在线| 久久久久久久久久久久电影| 久久国产成人| 国产欧美另类| 美女久久一区| 国产一区二区三区站长工具| 99在线精品视频在线观看| 亚洲视频二区| 激情综合视频| 麻豆91小视频| 欧美午夜不卡| 日本伊人精品一区二区三区观看方式| 99精品视频在线观看免费播放| 日本另类视频| 理论片一区二区在线| 欧美一级网址| 色婷婷综合久久久久久| 欧美亚洲二区| 国产在线日韩| 亚洲全部视频| 亚洲一区二区三区高清| av在线精品| 视频精品一区二区| 日韩在线精品强乱中文字幕| 91综合在线| 欧美巨大xxxx| 久久精品亚洲| 狠狠综合久久av一区二区老牛| 在线不卡一区| 蜜臀久久久久久久| 国产一级成人av| 欧美一区二区三区久久精品| 成人vr资源| 国产一区二区三区电影在线观看| 免费欧美日韩国产三级电影| 美女久久精品| 精品国产黄a∨片高清在线| 国精品一区二区三区| 亚洲天堂免费| 97精品一区二区| 日韩精品久久久久久久电影99爱 | 国产在线一区不卡| 国产网站在线| 久久国产欧美| 一区二区三区四区在线观看国产日韩| 免播放器亚洲一区| 久久精品福利| 伊人久久一区| 三级在线看中文字幕完整版| 99久久婷婷| 国产欧美精品久久| 欧美不卡高清一区二区三区 | 免费成人在线网站| 果冻天美麻豆一区二区国产| 日韩国产精品久久久久久亚洲| 在线一区免费观看| 999国产精品一区| 亚洲日本视频| 人在线成免费视频| 午夜日本精品| 给我免费播放日韩视频| 亚洲精品国产日韩| 欧美sm一区| 91久久午夜| 精品中国亚洲| 五月国产精品| 日韩精品欧美精品| 中文字幕一区久|