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

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

代寫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編程設計
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
    合肥機場巴士2號線
    合肥機場巴士2號線
    合肥機場巴士1號線
    合肥機場巴士1號線
  • 短信驗證碼 豆包 幣安下載 AI生圖 目錄網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

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

          9000px;">

                亚洲在线免费播放| 国产精品一区不卡| 日韩电影在线观看网站| 日本三级亚洲精品| 国产99久久久精品| 欧美浪妇xxxx高跟鞋交| 中文字幕精品综合| 日韩va亚洲va欧美va久久| 国产成人午夜视频| 制服丝袜日韩国产| 亚洲精品视频免费观看| 国产精品一二三区| 欧美成人国产一区二区| 一区二区三区精品| 成人午夜激情视频| 久久久噜噜噜久久人人看 | 蜜桃精品视频在线| 色综合色综合色综合色综合色综合| 精品国免费一区二区三区| 一区二区三区在线视频观看58| 国产精品 日产精品 欧美精品| 欧美区一区二区三区| 日韩美女视频一区二区| 国产自产高清不卡| 日韩欧美在线网站| 日韩福利电影在线观看| 欧美色电影在线| 综合久久一区二区三区| 国产a久久麻豆| 久久久久久久久99精品| 久久99国产精品麻豆| 日韩一区二区精品在线观看| 亚洲成在人线在线播放| 日本二三区不卡| 亚洲区小说区图片区qvod| av午夜一区麻豆| 国产精品国产三级国产aⅴ无密码| 国产经典欧美精品| 国产精品无人区| 成人97人人超碰人人99| 亚洲欧洲色图综合| a亚洲天堂av| 亚洲欧美成人一区二区三区| 色偷偷成人一区二区三区91| 亚洲乱码国产乱码精品精可以看| 97久久人人超碰| 亚洲三级电影全部在线观看高清| 91玉足脚交白嫩脚丫在线播放| 综合久久综合久久| 91久久精品一区二区三区| 亚洲丝袜另类动漫二区| 在线区一区二视频| 日欧美一区二区| 精品理论电影在线观看| 国产在线国偷精品产拍免费yy| ww久久中文字幕| 成人在线一区二区三区| 中文字幕在线不卡国产视频| 一本久道中文字幕精品亚洲嫩| 一区二区三区影院| 91精品国产综合久久香蕉麻豆| 久久精品国产**网站演员| 国产亚洲精品bt天堂精选| av在线一区二区三区| 亚洲二区在线视频| 精品日韩99亚洲| 成人小视频在线| 国产精品白丝在线| 欧美日韩亚洲综合一区二区三区| 亚洲成av人片观看| 欧美日韩国产精选| 69p69国产精品| 亚洲三级视频在线观看| 亚洲一区二三区| 亚洲一区中文日韩| 亚洲一本大道在线| 激情六月婷婷久久| 日本乱码高清不卡字幕| 日韩一级片在线播放| 日本一区二区三级电影在线观看 | 青娱乐精品视频在线| 视频一区二区三区中文字幕| 亚洲另类春色国产| 奇米色一区二区三区四区| 欧美视频在线一区二区三区 | 亚洲午夜视频在线观看| 亚洲18女电影在线观看| 国产一区二区不卡| 日韩欧美一区中文| 91麻豆精品久久久久蜜臀| 偷拍日韩校园综合在线| 欧美日韩国产在线播放网站| 国产成人亚洲精品狼色在线| 国产成人av一区| 麻豆国产一区二区| 欧美在线你懂得| 偷拍自拍另类欧美| 91精品国产91久久久久久一区二区| 丝袜美腿高跟呻吟高潮一区| 椎名由奈av一区二区三区| 成人做爰69片免费看网站| 成人99免费视频| 亚洲精品欧美激情| 欧美在线免费视屏| 麻豆高清免费国产一区| 国产视频一区二区三区在线观看| 国产精品夜夜嗨| 亚洲免费观看高清完整版在线观看| 94-欧美-setu| 日本va欧美va欧美va精品| 久久久久久久国产精品影院| 欧美午夜片在线观看| 国产精品一区二区久久精品爱涩| 美女视频黄 久久| 国产美女在线精品| 国产成人aaa| 国产老妇另类xxxxx| 久久奇米777| 99视频在线精品| 六月婷婷色综合| 欧美激情一区二区三区蜜桃视频 | 国产精品丝袜在线| 欧美一区二区三区在线看| 在线观看日韩精品| 91久久精品一区二区| 色94色欧美sute亚洲线路二| 91麻豆福利精品推荐| 色偷偷成人一区二区三区91| 99麻豆久久久国产精品免费| 91精品国产91综合久久蜜臀| 日韩综合小视频| 亚洲欧美日韩综合aⅴ视频| 国产精品少妇自拍| 亚洲精品综合在线| 欧美成人一区二区三区片免费| 成人黄色网址在线观看| 日本亚洲免费观看| 一区二区免费看| 中文字幕va一区二区三区| 67194成人在线观看| 色偷偷成人一区二区三区91| 国产成人综合亚洲91猫咪| 日韩成人dvd| 午夜精品福利久久久| 亚洲视频综合在线| 国产精品午夜免费| 欧美韩国一区二区| 国产天堂亚洲国产碰碰| 欧美sm美女调教| 日韩色在线观看| 欧美一级日韩免费不卡| 色哟哟国产精品免费观看| 成人午夜激情影院| 国产不卡视频在线观看| 国产一区二区三区久久悠悠色av| 青草国产精品久久久久久| 婷婷综合另类小说色区| 亚洲午夜在线电影| 夜夜嗨av一区二区三区网页| 又紧又大又爽精品一区二区| 中文字幕一区二区三区色视频| 久久综合久久99| 福利电影一区二区三区| 欧洲av在线精品| 欧美精品一区二区三| 亚洲欧洲性图库| 久久精品99国产精品日本| 97se亚洲国产综合自在线观| 日韩精品资源二区在线| 亚洲欧美日韩久久| 精品亚洲aⅴ乱码一区二区三区| 91女神在线视频| 亚洲精品一区二区三区福利 | 91丨porny丨蝌蚪视频| 日韩色在线观看| 亚洲日本韩国一区| 日本成人超碰在线观看| 99久久精品一区二区| 日韩欧美在线观看一区二区三区| 亚洲色图一区二区三区| 国内精品久久久久影院薰衣草| 色婷婷综合久久久| 久久久久综合网| 日韩黄色在线观看| 色综合久久久久久久| xvideos.蜜桃一区二区| 天天综合天天做天天综合| 91色porny蝌蚪| 中文久久乱码一区二区| 韩国一区二区在线观看| 欧美一区二区福利视频| 午夜av一区二区三区| 91色婷婷久久久久合中文| 精品久久人人做人人爽| 亚洲成人av一区二区| 在线视频你懂得一区| 亚洲欧美日韩国产综合在线| 成人综合婷婷国产精品久久蜜臀 | 国产亚洲欧美日韩俺去了| 午夜视频在线观看一区二区三区|