加勒比久久综合,国产精品伦一区二区,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

    国内精品久久久久久久97牛牛 | 先锋欧美三级| 欧美午夜精彩| 亚州av一区| 一区二区三区高清视频在线观看| 在线亚洲精品| 美日韩黄色大片| 综合综合综合综合综合网| 香蕉成人av| 蜜臀av一区二区在线观看| 91精品一区国产高清在线gif| 国产一区二区三区四区大秀| 亚洲国产导航| 日韩成人av电影| 久久亚洲电影| 波多野结衣一区| 欧美日韩夜夜| 日韩精品一区二区三区中文字幕 | 91精品天堂福利在线观看| 色综合综合网| 一区二区三区毛片免费| 日日夜夜精品| 另类激情视频| 免费成人在线观看视频| 91成人观看| 久久九九国产| 国产一区二区三区不卡av| 欧美人与拘性视交免费看| 亚洲深深色噜噜狠狠爱网站| 免费日韩成人| 亚洲国产精选| 欧美一区久久久| 漫画在线观看av| a国产在线视频| 美女尤物久久精品| 国产亚洲欧洲| 亚洲综合99| 亚洲激情婷婷| 亚洲少妇在线| 99亚洲一区二区| 最新国产乱人伦偷精品免费网站| 免费av一区二区三区四区| 久久视频精品| 99精品在线观看| 在线成人动漫av| 一本久久青青| 伊人青青综合网| 午夜电影亚洲| 影音国产精品| 另类亚洲自拍| 免费成人av资源网| av资源新版天堂在线| 国模精品视频| 欧洲精品一区二区三区| 亚洲成a人片| 国产一区二区色噜噜| 天堂综合在线播放| 三级成人在线视频| 亚洲国产网站| 国产麻豆一区二区三区| 97色婷婷成人综合在线观看| 久久最新网址| 一区二区精彩视频| 久久婷婷亚洲| 狠狠爱综合网| 蜜桃视频在线观看一区| 伊人久久av| 国产一区2区在线观看| 日本不卡视频一二三区| 亚洲男人在线| 日本成人精品| 亚洲先锋成人| 久久不射中文字幕| 成人福利av| 国产欧美亚洲一区| 欧美三级一区| 欧美日韩一区二区三区在线电影| 欧美日韩水蜜桃| 老鸭窝91久久精品色噜噜导演| 四虎成人av| 精品123区| 久久久伦理片| 亚洲精品高潮| 最新日韩av| 高清av不卡| 久久不见久久见中文字幕免费| 亚洲欧美卡通另类91av| 久久久亚洲一区| 99成人精品| 手机av在线| 欧美一级一区| 日韩电影在线看| 激情综合亚洲| 亚洲天堂av影院| 亚洲国产精品第一区二区| 日本一区影院| 天天操夜夜操国产精品| 免费看av不卡| 欧美激情91| 色婷婷久久久| 蜜臀av一区二区三区| 久久国产婷婷国产香蕉| 久久99国内| 天堂网在线观看国产精品| 成人av三级| 精品一区二区三区中文字幕在线 | 国产视频一区三区| 色老太综合网| 亚洲另类春色校园小说| 视频一区中文| 免费观看亚洲| 五月天亚洲一区| 欧美日韩激情| 国产一区二区| 日韩区一区二| 美女诱惑一区| 久久这里只有精品一区二区| 欧美一区自拍| 在线免费av资源| 欧州一区二区三区| 狠狠入ady亚洲精品经典电影| 亚洲成人不卡| 日韩精品一区二区三区中文| 在线视频精品| 日韩精品亚洲专区| 成人久久一区| 日韩三区免费| 亚洲国产aⅴ精品一区二区| 久久亚洲国产精品一区二区| 国内一区二区三区| 欧美1区2区3区| 国产成人免费精品| 久久av国产紧身裤| 88xx成人免费观看视频库| 日韩黄色小视频| 欧美aaaaaaaaaaaa| 国产欧美日韩免费观看| 亚洲一区网站| 中文字幕日韩欧美精品高清在线| 亚洲精品成人无限看| 一区二区高清| 蜜臀av免费一区二区三区| 久久精品99国产国产精| 你懂的在线观看一区二区| 日韩a**中文字幕| 美女av一区| 四虎地址8848精品| 香蕉久久精品| 日本成人中文字幕在线视频| 免费黄色成人| 亚洲乱亚洲高清| 国产精品试看| 亚洲国产网址| 国产欧洲在线| 大香伊人久久精品一区二区| 国产精品亚洲一区二区三区在线观看| 亚洲精品观看| 国产精品伦一区二区| 亚洲高清毛片| 一区二区三区无毛| 亚洲欧美高清| 日韩精品中文字幕一区二区| 伊人成综合网站| 久久蜜桃资源一区二区老牛| 国产日韩一区| 一本色道88久久加勒比精品| 国产真实有声精品录音| 91麻豆国产自产在线观看亚洲| 香港久久久电影| 高清欧美日韩| 在线看片不卡| 久久gogo国模啪啪裸体| 韩日一区二区| 在线成人直播| 日韩av一区二区三区| 91亚洲视频| 欧美特黄一级| 日本精品视频| 欧美一区不卡| 蜜臀av国产精品久久久久| 国产成人精品亚洲线观看| 国产精品久久久久久久免费软件 | 久久uomeier| 日韩精品一卡| 高清一区二区| 欧美日韩尤物久久| 欧美日韩国产探花| 亚洲3区在线| 青青草91视频| 欧美久久天堂| 2023国产精品久久久精品双| 日本亚洲一区二区| 美女www一区二区| av中文字幕在线观看第一页| 91精品国产乱码久久久久久久 | 噜噜噜久久亚洲精品国产品小说| 99精品国产一区二区三区2021| 亚洲精品影视| 亚洲爱爱视频| 蜜桃精品视频在线观看|