国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女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在线免费观看
    www.亚洲一区二区| 91精品视频大全| 日韩中文字幕在线免费观看| 日韩电影天堂视频一区二区| 国产suv精品一区二区三区88区| 日韩av中文字幕第一页| 日韩亚洲成人av在线| 国内一区二区在线视频观看| 欧美另类在线播放| 99高清视频有精品视频| 人人做人人澡人人爽欧美| 国产精品欧美风情| 国产伦精品一区二区三区照片| 欧美日韩电影在线观看| 国产精品99一区| 欧美在线视频观看免费网站| 国产精品成人品| 99久久免费观看| 欧美中文字幕在线| 欧美成人精品三级在线观看| 777午夜精品福利在线观看| 欧美资源在线观看| 欧美激情精品久久久| 国产高清av在线播放| 激情成人开心网| 亚洲伊人第一页| 日韩中文字幕精品视频| 国产视频精品网| 亚洲一区二区三区777| y97精品国产97久久久久久| 国产日产欧美a一级在线| 色之综合天天综合色天天棕色| 国产精品欧美激情在线观看| 97色伦亚洲国产| 欧美少妇一级片| 亚洲精品久久久久久一区二区 | 黄色91av| 亚洲三区在线观看| 久热99视频在线观看| av一区观看| 欧美极品jizzhd欧美| 一本久道久久综合狠狠爱亚洲精品| 久久久噜噜噜久久| 国产美女直播视频一区| 日韩精品一区二区三区色欲av| 色综合久久精品亚洲国产| 久久99蜜桃综合影院免费观看| 国产日韩视频在线观看| 日本中文字幕成人| 欧美激情精品久久久久| 久久久国产影院| 久久久女女女女999久久| 国产亚洲精品美女久久久m| 日韩毛片在线免费看| 亚洲一区免费网站| 久久艳片www.17c.com| 久久精品国产一区二区三区不卡| 国产精品一区在线观看| 狠狠色综合一区二区| 日本亚洲欧美三级| 中文字幕一区二区三区四区五区人| 久久天天躁狠狠躁夜夜av| 久久精品一区二区三区不卡免费视频| 国产精品一区免费观看| 国内精品久久久久久| 日韩精品一区二区三区四| 亚洲精品高清国产一线久久| 久久99久久99精品免观看粉嫩| 国产精品久久久久久久久免费看| 日韩中文字幕国产精品| 国产精品com| 99在线看视频| 国产欧美日韩免费| 红桃av在线播放| 欧美精品尤物在线| 日韩久久精品一区二区三区| 天天综合色天天综合色hd| 一本久道中文无码字幕av| 色综合久久精品亚洲国产| 久久综合免费视频| 国产精品视频在线播放| 日韩有码在线视频| 国产爆乳无码一区二区麻豆| 国产精品91久久久久久| 97精品在线视频| 91久久久国产精品| 福利视频一二区| 国产伦精品一区二区三区视频黑人| 黄色一级片网址| 激情五月综合色婷婷一区二区| 欧美精品卡一卡二| 欧美乱偷一区二区三区在线| 人妻av无码专区| 青青草原av在线播放| 国产精品com| 日韩欧美精品在线不卡| 亚洲一区二区三区sesese| 欧美成人一区二区三区电影| 国产精品视频精品视频| 久久99国产精品| 久久综合久久久久| 国产裸体写真av一区二区| 欧美一区少妇| 日韩激情视频一区二区| 日韩av电影在线免费播放| 91精品国产综合久久久久久蜜臀| 男女猛烈激情xx00免费视频| 免费国产成人av| 国产日韩中文在线| 成人欧美一区二区三区黑人免费| 97人人模人人爽视频一区二区| 久久综合九色综合网站| 久久久久久久久久久免费精品| 国产精品无码人妻一区二区在线 | 亚洲国产另类久久久精品极度| 性亚洲最疯狂xxxx高清| 日本不卡高字幕在线2019| 欧美日韩精品一区| 国产一区欧美二区三区| 国产精品亚洲激情| 久久人人爽国产| 久久精品国产亚洲精品2020| 国产精品高潮视频| 欧美精品久久久久久久久久| 亚洲xxxx做受欧美| 日韩日韩日韩日韩日韩| 99视频国产精品免费观看| 91久久久久久| 久久久久久久久久久成人| 成人免费淫片aa视频免费| 国产精品综合久久久久久| 久久久久久久久久久久久久久久av | 亚洲va久久久噜噜噜久久天堂| 日韩中文字在线| 国产日韩欧美影视| 欧美综合激情| 国产精品一区二区三区四区五区 | 国产日韩综合一区二区性色av| 国模吧无码一区二区三区| 亚洲高清精品中出| 国产伦视频一区二区三区| 精品国产一区二区三区久久狼5月 精品国产一区二区三区久久久狼 精品国产一区二区三区久久久 | 久久精品二区| 69久久夜色精品国产69| 91久久久久久久久久久久久| 岛国视频一区免费观看| 在线视频一区观看| 日韩精品一区二区三区电影| 国产欧美综合一区| 777午夜精品福利在线观看| 久久精品中文字幕免费mv| 一本久道久久综合狠狠爱亚洲精品| 日韩免费观看网站| 国产久一道中文一区| 日韩在线www| 亚洲欧美国产一区二区| 狠狠色狠狠色综合人人| 91国在线精品国内播放| 国产精品人人做人人爽| 午夜精品一区二区三区在线视频| 欧美高清视频一区二区三区在线观看| 成人一区二区av| 国产精品久久久久久影视| 视频一区国产精品| 国产中文字幕亚洲| 久久久久久久久国产精品| 在线国产精品网| 精品婷婷色一区二区三区蜜桃| 久久精品国产理论片免费| 尤物国产精品| 韩日精品中文字幕| 久久国产精品一区二区三区| 亚洲中文字幕无码专区| 国内精品久久久久久久果冻传媒| 日韩在线精品一区| 亚洲黄色成人久久久| 国产精品又粗又长| 国产精品成人aaaaa网站| 欧美在线视频网| 国产福利不卡| 亚洲精品中文字幕无码蜜桃| 国产日韩欧美中文| 国产精品国产对白熟妇| 欧美精品一区在线发布| 国产va免费精品高清在线观看| 亚洲a∨日韩av高清在线观看| 国产精品永久免费在线| 精品国产区在线| 麻豆视频成人| 国产精品免费入口| 欧美一区亚洲二区| 国产成人a亚洲精v品无码| 亚洲一区二区中文字幕| 国产精品自在线| 色综合91久久精品中文字幕| 国产综合福利在线| 国产精品久久久一区二区三区| 欧美精品免费观看二区| 国产成人精品视频免费看| 日韩美女中文字幕|