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

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

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

時(shí)間:2025-03-04  來源:合肥網(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ī)打開當(dāng)前頁
  • 上一篇:質(zhì)量流量計(jì)的信號(hào)輸出方式有哪些?
  • 下一篇:代寫EL2311、代做SQL編程設(shè)計(jì)
  • 無相關(guān)信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業(yè)CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業(yè)CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務(wù) 管路流場(chǎng)仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務(wù) 管路
    流體CFD仿真分析_代做咨詢服務(wù)_Fluent 仿真技術(shù)服務(wù)
    流體CFD仿真分析_代做咨詢服務(wù)_Fluent 仿真
    結(jié)構(gòu)仿真分析服務(wù)_CAE代做咨詢外包_剛強(qiáng)度疲勞振動(dòng)
    結(jié)構(gòu)仿真分析服務(wù)_CAE代做咨詢外包_剛強(qiáng)度疲
    流體cfd仿真分析服務(wù) 7類仿真分析代做服務(wù)40個(gè)行業(yè)
    流體cfd仿真分析服務(wù) 7類仿真分析代做服務(wù)4
    超全面的拼多多電商運(yùn)營(yíng)技巧,多多開團(tuán)助手,多多出評(píng)軟件徽y1698861
    超全面的拼多多電商運(yùn)營(yíng)技巧,多多開團(tuán)助手
    CAE有限元仿真分析團(tuán)隊(duì),2026仿真代做咨詢服務(wù)平臺(tái)
    CAE有限元仿真分析團(tuán)隊(duì),2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內(nèi)
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗(yàn)證碼 寵物飼養(yǎng) 十大衛(wèi)浴品牌排行 suno 豆包網(wǎng)頁版入口 wps 目錄網(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

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    啊v视频在线一区二区三区| 国产精品久久9| 精品久久久久av| 国产日本在线播放| 中文字幕欧美日韩一区二区三区| 国产美女99p| 亚洲人成网站在线观看播放| 国产v亚洲v天堂无码久久久 | 国产精品一区久久| 亚洲一区二区三区四区中文| 久久综合伊人77777麻豆| 日本999视频| 国产精品免费小视频| 国产一区二区视频免费在线观看| 久久艳片www.17c.com| 99热成人精品热久久66| 日韩av一区二区三区在线| 日韩中文av在线| 国产日韩精品久久| 欧美一区二区三区四区夜夜大片| 久久久久久高清| 欧美丰满熟妇xxxxx| 欧美激情精品久久久久久| 91精品国产沙发| 欧美精品一区二区三区在线四季| 欧美精品久久久久a| 久久久天堂国产精品| 黄色一级在线视频| 中文精品一区二区三区| 国产精品88a∨| 欧美极品视频一区二区三区| 欧美激情小视频| 国产福利一区视频| 国产中文欧美精品| 欧美一级在线看| 国产精品第七十二页| 国产经典一区二区三区| 精品少妇人妻av免费久久洗澡| 亚洲精品一区二| 久久成人这里只有精品| 国产超级av在线| 国产日韩欧美综合精品| 日本a在线天堂| 伊人久久大香线蕉成人综合网 | 亚洲免费久久| 国产精品欧美一区二区三区奶水| wwwwww欧美| 精品人妻大屁股白浆无码| 亚州av一区二区| 国产精品久久久久av福利动漫| 91久久精品久久国产性色也91| 欧美激情亚洲天堂| 日日摸日日碰夜夜爽无码| 欧美激情精品久久久| 久久精品2019中文字幕| 91av福利视频| 国产日产欧美视频| 欧美中文字幕视频| 亚洲国产精品久久久久爰色欲| 国产精品日韩久久久久| 久久久久久国产精品mv| 豆国产97在线| 黄色成人在线看| 欧美在线观看网址综合| 日韩av在线一区二区三区| 在线亚洲美日韩| 国产精品老女人视频| 久久久久久伊人| 久久久女女女女999久久| 成年人网站国产| 国产亚洲综合视频| 国内精品视频免费| 欧美老熟妇喷水| 欧美一区二区大胆人体摄影专业网站| 在线亚洲美日韩| 九九久久综合网站| 国产精品极品美女粉嫩高清在线| 日韩在线高清视频| 久草视频国产在线| 久久日韩精品| 久久人妻无码一区二区| 久久亚洲精品欧美| 国产传媒一区| 久草视频国产在线| 久久精品国产第一区二区三区最新章节 | 国产精品视频一区二区三区经| 色av吧综合网| 久久久久久久久久亚洲| 久久精品国产精品亚洲色婷婷| 国产成人高清激情视频在线观看| 国产精品6699| 久久久伊人欧美| 国产福利精品在线| 国产成人精品福利一区二区三区| 国产成人一区二| 色婷婷综合成人av| 国产精品日本精品| 国产精品成久久久久三级| 欧美理论电影在线观看| 久久99国产综合精品女同| 欧美成人性色生活仑片| 久久999免费视频| 欧美激情亚洲一区| 亚洲精品一区二区三区av | 日韩av电影免费在线| 日本精品视频在线播放| 日韩国产一区久久| 欧美日韩一级在线| 国产一区二区不卡视频在线观看| 国产在线观看不卡| www.浪潮av.com| 久久精品中文字幕一区二区三区| 久久精品国产sm调教网站演员 | 男人天堂新网址| 精品人伦一区二区三区| 国产日韩精品电影| 91国产在线免费观看| 久久精品国产sm调教网站演员| 久久精品亚洲国产| 欧美wwwxxxx| 日韩一区免费观看| 秋霞午夜一区二区| 黄色影视在线观看| 成人免费观看毛片| 国产v亚洲v天堂无码| 国产精品成人av在线| 亚洲永久激情精品| 日韩欧美精品在线不卡| 国产日韩在线观看av| 91精品国产91久久久久| 日韩一中文字幕| 欧美成人免费在线观看| 午夜精品免费视频| 欧美人与性禽动交精品| 国产欧美日韩免费看aⅴ视频| 91观看网站| 三级精品视频久久久久| 九九热视频这里只有精品| 日本在线视频www色| 国内精品美女av在线播放| 99热在线这里只有精品| 久久精品国产一区二区三区| 欧美激情第6页| 日韩美女中文字幕| 国产剧情久久久久久| 久久99影院| 国产999在线观看| 日韩精品国内| 99视频免费观看蜜桃视频| 久久久久久精| 亚洲一区三区视频在线观看| 欧美在线播放cccc| av久久久久久| 国产精品免费视频xxxx| 欧美一区二区三区艳史| 免费av一区二区三区| 国产成人精品日本亚洲11| 久久国产精品免费视频| 人人澡人人澡人人看欧美| av在线播放亚洲| 成人444kkkk在线观看| 欧美在线影院在线视频| 国产经典久久久| 中文字幕乱码一区二区三区| 男女视频网站在线观看| 国产爆乳无码一区二区麻豆| 久久91精品国产91久久久| 青青精品视频播放| 91成人综合网| 一区二区三区在线视频看| 国内精品伊人久久| 精品国内亚洲在观看18黄| 日韩av高清| 国产精品27p| 久久久久久成人精品| 国内免费久久久久久久久久久| 久久99中文字幕| 日韩中文字幕一区二区| 99久久精品免费看国产四区| 欧美精品一二区| 官网99热精品| 国产精品色午夜在线观看| 在线精品亚洲一区二区| 国产精品欧美亚洲777777| 亚洲综合色av| 欧洲亚洲一区二区三区四区五区| 国产日韩欧美精品| 久久超碰亚洲| 国产自产在线视频| 久久五月情影视| 亚洲a一级视频| 国产精品一区二区三| 国外色69视频在线观看| 欧美午夜精品久久久久久蜜 | 这里只有精品66| 欧美性受xxx| 欧美日韩高清在线观看| 日韩精品最新在线观看| 色妞一区二区三区| 日韩精品在在线一区二区中文|