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精品国产.久久久久久| 国产日韩欧美亚洲| 日韩亚洲欧美中文三级| 国产日韩亚洲欧美综合| 亚洲综合久久久| 精品区一区二区| 午夜激情一区二区三区| 亚洲电影第三页| 日韩成人精品在线| gogogo免费视频观看亚洲一| 色吊一区二区三区 | 亚洲精品国产品国语在线app| 久久综合给合久久狠狠狠97色69| 中文字幕综合网| 成人在线视频首页| 欧美精品欧美精品系列| 亚洲va欧美va天堂v国产综合| 99久久精品99国产精品| 国产亚洲精品福利| 九九视频精品免费| 中文字幕 久热精品 视频在线| 一本一本久久a久久精品综合麻豆| 成人中文字幕合集| 日韩一区在线免费观看| 在线不卡欧美精品一区二区三区| 7777精品伊人久久久大香线蕉最新版 | 97久久精品人人爽人人爽蜜臀| 亚洲成人一区二区在线观看| 欧美精品一区二区三区蜜桃视频 | 成人激情黄色小说| 国产精品福利一区二区三区| 欧美三级在线播放| 波波电影院一区二区三区| 亚洲图片欧美综合| 国产午夜精品久久久久久免费视| 欧美日韩精品一区视频| 国产一区二区不卡| 午夜精品免费在线| 亚洲色图在线看| 日韩精品一区二区三区视频播放| 91原创在线视频| 精品一二三四区| 亚洲成人手机在线| 一区二区三区国产| 中文av一区特黄| 欧美v亚洲v综合ⅴ国产v| 欧美性感一区二区三区| 美美哒免费高清在线观看视频一区二区 | 欧美日韩一区二区在线观看| 不卡的电影网站| 国内精品久久久久影院一蜜桃| 亚洲成人综合网站| 亚洲激情自拍视频| 国产精品久久三区| 国产欧美精品一区二区色综合 | 不卡av在线免费观看| 久久99精品视频| 日本vs亚洲vs韩国一区三区| 色综合久久综合网97色综合| 黄网站免费久久| 久久精品国产免费| 丝袜美腿亚洲一区二区图片| 亚洲欧洲精品一区二区三区| 亚洲欧美中日韩| 亚洲男同1069视频| 一区二区不卡在线播放 | 日韩精品一区二区三区四区 | 欧美日本一区二区在线观看| 欧美在线观看视频一区二区三区| 久久精品一区四区| 精品影院一区二区久久久| 91黄色免费网站| 91国偷自产一区二区三区观看 | 欧美大片在线观看一区二区| 7878成人国产在线观看| 欧美日韩免费一区二区三区视频| 在线观看日韩电影| 欧美精品一卡二卡| 日韩精品中文字幕一区| 久久网站热最新地址| 国产欧美视频一区二区三区| 综合久久久久久久| 日韩制服丝袜av| 国产成人自拍网| 欧美中文字幕一区| 精品少妇一区二区三区在线视频 | 日韩欧美国产wwwww| 日韩丝袜情趣美女图片| 精品av综合导航| 亚洲视频 欧洲视频| 五月天视频一区| 久久伊99综合婷婷久久伊| 国产三级三级三级精品8ⅰ区| 亚洲精品乱码久久久久久黑人| 亚洲成精国产精品女| 国产中文字幕精品| 在线观看欧美黄色| 国产欧美日韩另类一区| 一级中文字幕一区二区| 蜜臀av一级做a爰片久久| 成人中文字幕在线| 91精品国产色综合久久久蜜香臀| 337p日本欧洲亚洲大胆色噜噜| 亚洲日本成人在线观看| 免费一级欧美片在线观看| 91精彩视频在线| 国产精品蜜臀av| 蜜桃视频一区二区| 97国产一区二区| 91.com在线观看| 亚洲日本一区二区| 国产成人综合亚洲网站| 欧美日韩国产综合久久| 国产精品色一区二区三区| 美腿丝袜亚洲三区| 欧美日韩一级片网站| 成人欧美一区二区三区视频网页 | 国产精品女同一区二区三区| 麻豆精品视频在线观看免费| 在线视频欧美精品| 国产精品久久久久婷婷二区次| 精品一区二区三区香蕉蜜桃| 色综合视频在线观看| 欧美国产一区二区| 美女在线视频一区| 9191国产精品| 亚洲国产中文字幕在线视频综合| 波波电影院一区二区三区| www国产成人| 狠狠色综合播放一区二区| 日韩视频在线你懂得| 日本不卡123| 日韩亚洲欧美一区二区三区| 黄色精品一二区| 久久九九全国免费| 国产毛片精品视频| 国产无人区一区二区三区| 国产一区二区免费看| 久久久久成人黄色影片| 国产九九视频一区二区三区| 久久久久久久电影| 国产不卡视频一区二区三区| 久久久五月婷婷| 国产精品99久久久久久久女警| 久久久亚洲国产美女国产盗摄 | 日韩激情视频网站| 日韩欧美综合在线| 久久精品二区亚洲w码| 欧美精品一区二区三区高清aⅴ| 久久精品国产99国产| 国产精品午夜春色av| yourporn久久国产精品| 亚洲老妇xxxxxx| 欧美精品欧美精品系列| 精品亚洲porn| 欧美经典一区二区| 91天堂素人约啪| 亚洲444eee在线观看| 精品999久久久| 99久免费精品视频在线观看| 亚洲国产婷婷综合在线精品| 精品免费视频.| 成人avav影音| 日本中文字幕一区二区视频| 久久亚洲一区二区三区明星换脸 | 亚洲人亚洲人成电影网站色| 欧美日韩精品专区| 成人网在线免费视频| 日韩专区中文字幕一区二区| 久久精品夜夜夜夜久久| 7777精品伊人久久久大香线蕉的 | 日韩国产成人精品| 国产亚洲成年网址在线观看| 一本到一区二区三区| 美女视频黄频大全不卡视频在线播放| 欧美国产丝袜视频| 91麻豆精品国产自产在线| 成人教育av在线| 日韩激情在线观看| 亚洲视频精选在线| 国产精品日日摸夜夜摸av| 欧美精品一二三| 不卡在线观看av| 久久99在线观看| 日韩电影一区二区三区四区| 中文字幕一区二区在线观看| 日韩美女在线视频| 欧美精品粉嫩高潮一区二区| 波多野结衣中文字幕一区| 国内精品国产成人| 日日欢夜夜爽一区| 亚洲国产乱码最新视频 | 国产酒店精品激情| 日本中文字幕不卡| 亚洲第一综合色| 一区二区三区**美女毛片| 国产日本一区二区| 久久久精品免费免费| 91精品国产色综合久久不卡蜜臀| 在线观看日韩高清av|