99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

合肥生活安徽新聞合肥交通合肥房產(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

    99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          9000px;">

                男人的天堂久久精品| 成人午夜电影久久影院| 91片在线免费观看| 亚洲视频小说图片| 欧美日韩精品免费| 国产一区二区三区在线观看免费视频 | 亚洲精品自拍动漫在线| 91免费视频大全| 日韩黄色免费电影| 国产欧美一区二区在线| 欧美色图天堂网| 久久国产乱子精品免费女| 亚洲色图视频免费播放| 欧美成人在线直播| 99久久婷婷国产| 国产剧情一区二区| 午夜视频久久久久久| 国产精品美女久久久久aⅴ| 在线视频观看一区| 国产成人h网站| 麻豆精品国产91久久久久久| 亚洲精品福利视频网站| 亚洲国产精品精华液ab| 欧美日韩成人综合天天影院| 波多野结衣精品在线| 久久狠狠亚洲综合| 亚洲高清不卡在线观看| 国产精品久久久久影视| 亚洲1区2区3区4区| 亚洲国产精品传媒在线观看| 91精品在线免费| 欧美又粗又大又爽| 99精品热视频| 高清久久久久久| 蜜臀av亚洲一区中文字幕| 亚洲福利视频导航| 一区二区三区不卡视频| 中文字幕一区二区三区在线观看| 精品剧情v国产在线观看在线| 色综合激情久久| 成人av在线网站| 成人一区二区在线观看| 国产suv一区二区三区88区| 久久激情五月激情| 麻豆视频一区二区| 奇米精品一区二区三区在线观看一 | 精东粉嫩av免费一区二区三区| 亚洲主播在线播放| 一区二区三区四区不卡视频| 亚洲女女做受ⅹxx高潮| 中文字幕视频一区| 亚洲美女一区二区三区| 亚洲一线二线三线久久久| 亚洲欧洲性图库| 最新久久zyz资源站| 亚洲欧美日韩国产手机在线 | 91免费国产视频网站| av中文字幕一区| 91久久久免费一区二区| 欧美日韩国产乱码电影| 日韩欧美中文字幕制服| 日韩美女天天操| 国产亚洲精品aa午夜观看| 国产精品欧美久久久久无广告| 国产视频视频一区| 亚洲欧美经典视频| 丝袜a∨在线一区二区三区不卡| 亚洲成av人片在线观看无码| 理论片日本一区| 成人免费毛片片v| 99久久99久久精品免费看蜜桃| 在线免费视频一区二区| 日韩欧美自拍偷拍| 中文字幕一区二区在线观看| 亚洲成人动漫av| 黑人精品欧美一区二区蜜桃| 91丨porny丨最新| 欧美一级一区二区| 中文字幕一区二区三区色视频| 亚洲精品国产精华液| 久久国产精品99久久人人澡| av男人天堂一区| 欧美一区二区在线播放| 国产精品天天摸av网| 免费观看在线色综合| 成人一区二区三区视频| 欧美精品三级日韩久久| 国产午夜亚洲精品羞羞网站| 亚洲一区精品在线| 福利一区二区在线| 91麻豆精品国产自产在线观看一区| 国产日韩精品久久久| 丝袜美腿成人在线| 色婷婷久久久久swag精品 | 日韩视频国产视频| 亚洲天堂精品视频| 国内不卡的二区三区中文字幕| 日本国产一区二区| 国产精品三级电影| 国产激情偷乱视频一区二区三区| 欧美丝袜丝nylons| 国产精品久久久久国产精品日日| 蜜臂av日日欢夜夜爽一区| 欧美性感一区二区三区| 亚洲天堂成人在线观看| 波多野结衣欧美| 国产欧美一区二区精品性色超碰| 久久精品国产澳门| 日韩视频在线永久播放| 同产精品九九九| 在线精品视频免费播放| 亚洲欧美日韩在线播放| 不卡一卡二卡三乱码免费网站| 精品国产乱码久久久久久1区2区| 亚洲电影你懂得| 在线一区二区观看| 综合色天天鬼久久鬼色| 99精品黄色片免费大全| 亚洲日本乱码在线观看| av电影天堂一区二区在线 | 日产国产高清一区二区三区| 91国偷自产一区二区三区观看| 日韩毛片在线免费观看| 99riav久久精品riav| 亚洲天堂久久久久久久| 99久久精品国产毛片| 国产精品盗摄一区二区三区| voyeur盗摄精品| 一区二区三国产精华液| 在线观看国产91| 午夜视频在线观看一区二区| 欧美高清www午色夜在线视频| 亚洲成a人在线观看| 日韩亚洲国产中文字幕欧美| 狠狠色2019综合网| 国产日韩一级二级三级| 9人人澡人人爽人人精品| 亚洲日本va在线观看| 在线观看日韩高清av| 天堂一区二区在线免费观看| 欧美tk—视频vk| 成人a免费在线看| 亚洲国产精品一区二区www| 欧美成人vps| 99久久精品国产麻豆演员表| 一区二区三区国产精华| 日韩一区二区三区视频在线| 国产成人精品免费视频网站| 一区二区三区欧美日| 日韩精品一区二区三区在线播放| 国产精品影视在线观看| 亚洲综合一区二区| 日韩欧美aaaaaa| 91麻豆精品视频| 日本视频在线一区| 国产精品理伦片| 91精品国产一区二区人妖| 粉嫩av一区二区三区| 午夜精品久久一牛影视| 中文字幕免费观看一区| 在线观看日韩精品| 国产福利一区二区三区视频在线 | 久久综合九色综合久久久精品综合| 懂色av一区二区三区免费观看| 亚洲一区二区三区四区在线观看 | 欧美日韩国产免费| 国产成人在线网站| 亚洲1区2区3区4区| 国产精品―色哟哟| 欧美成人一区二区三区片免费| 99天天综合性| 成人综合婷婷国产精品久久| 爽好久久久欧美精品| 亚洲黄色在线视频| 久久久精品国产免大香伊| 911国产精品| 在线免费不卡电影| 99re这里只有精品6| 国产一区二区三区观看| 日韩电影在线一区| 午夜精品一区二区三区三上悠亚| 亚洲欧美日韩中文播放| 亚洲欧美在线观看| 国产精品午夜春色av| 久久精品免费在线观看| 26uuu另类欧美| 日韩欧美www| 欧美tickle裸体挠脚心vk| 6080亚洲精品一区二区| 在线播放91灌醉迷j高跟美女| 日本精品一区二区三区四区的功能| 成人精品鲁一区一区二区| 国产毛片精品国产一区二区三区| 麻豆精品一区二区三区| 日本亚洲最大的色成网站www| 亚洲国产欧美日韩另类综合| 亚洲摸摸操操av| 亚洲自拍欧美精品| 午夜精品影院在线观看| 日韩精品久久理论片|