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爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          一本色道久久综合亚洲精品婷婷| 99在线精品视频在线观看| 欧美精品观看| 欧美视频在线视频| 亚洲二区视频| 久久久人成影片一区二区三区观看| 国产精品大片免费观看| 亚洲卡通欧美制服中文| 欧美激情综合五月色丁香小说| 国产一区欧美日韩| 欧美在线视频一区二区| 国产精品永久免费观看| 亚洲一区二区三| 欧美日韩在线精品| 在线视频欧美日韩精品| 欧美日韩亚洲网| 亚洲少妇诱惑| 国产精品久久久久久一区二区三区| 日韩视频免费| 欧美深夜影院| 亚洲一区二区三区影院| 国产精品高清一区二区三区| 一区二区三区日韩| 欧美另类69精品久久久久9999| 亚洲国产精品嫩草影院| 久久婷婷久久| 亚洲精品久久久蜜桃| 欧美日韩一区二区视频在线| 一区二区高清视频| 国产精品天天摸av网| 欧美一级片一区| 国模套图日韩精品一区二区| 久久精品日产第一区二区| 在线播放豆国产99亚洲| 欧美激情精品久久久久久| 一区二区免费看| 国产精品网红福利| 久久久亚洲欧洲日产国码αv| 亚洲大胆在线| 欧美午夜精品久久久久久孕妇| 亚洲女同精品视频| 国产综合欧美| 欧美久久综合| 久久九九免费| 亚洲精品视频免费观看| 国产美女扒开尿口久久久| 久久精品成人欧美大片古装| 亚洲国产精品一区二区第四页av| 欧美精品一区在线观看| 欧美在线观看视频一区二区三区| 影音先锋在线一区| 欧美视频二区36p| 久久免费一区| 亚洲欧美日韩区| 在线观看一区| 国产精品无码永久免费888| 久久男人av资源网站| 在线视频一区观看| 在线播放豆国产99亚洲| 国产精品av免费在线观看| 久久久九九九九| 亚洲一区视频在线| 亚洲国产成人午夜在线一区| 国产精品视频一区二区高潮| 媚黑女一区二区| 欧美伊人久久久久久久久影院| 91久久精品久久国产性色也91| 国产精品一区久久久久| 欧美日韩国产区| 麻豆久久精品| 久久久久久夜精品精品免费| 亚洲在线成人精品| 日韩一级视频免费观看在线| 影音先锋在线一区| 国产视频观看一区| 国产精品美女999| 欧美日韩免费高清一区色橹橹| 久久综合色8888| 欧美一级片久久久久久久| 99在线视频精品| 亚洲精品孕妇| 亚洲激情网站| 亚洲国产三级在线| 在线观看视频亚洲| 国产午夜精品一区二区三区欧美| 欧美日韩中文字幕日韩欧美| 欧美国产日韩在线观看| 免费高清在线一区| 久久一区二区视频| 久久精品一区二区三区四区 | 这里只有精品电影| 亚洲精品国产视频| 亚洲精品欧美极品| 最新中文字幕一区二区三区| 激情综合久久| 国产自产在线视频一区| 国产欧美日韩激情| 国产精品中文字幕在线观看| 国产精品久久久久久影院8一贰佰 国产精品久久久久久影视 | 免费观看成人| 欧美成人午夜77777| 欧美成人一区二区| 欧美激情一区二区三区全黄| 欧美精品一卡| 欧美日韩美女| 国产精品嫩草久久久久| 国产欧美精品一区| 国产亚洲免费的视频看| 国产综合香蕉五月婷在线| 国产综合精品| 91久久国产综合久久91精品网站| 伊伊综合在线| 亚洲国产日韩在线| 99综合在线| 亚洲欧美日韩综合国产aⅴ| 午夜在线视频一区二区区别 | 欧美一级专区| 久久九九国产精品| 欧美激情网友自拍| 欧美三级午夜理伦三级中视频| 国产精品xxxav免费视频| 国产视频亚洲精品| 91久久夜色精品国产网站| 亚洲素人一区二区| 久久久91精品国产一区二区精品| 免费看精品久久片| 欧美性一区二区| 国内精品久久久久久久影视麻豆| 亚洲日本va午夜在线电影| 在线视频你懂得一区| 欧美一乱一性一交一视频| 嫩草国产精品入口| 欧美日韩中文字幕日韩欧美| 国产亚洲精品久久久久动| 亚洲黑丝在线| 欧美一区激情视频在线观看| 欧美黄色小视频| 国产伦精品一区二区三区视频黑人| 在线免费观看日本一区| 亚洲一区二区三区激情| 美日韩精品免费观看视频| 国产精品一区二区在线观看网站 | 久久久精品2019中文字幕神马| 欧美高清不卡| 国产一区二区三区在线观看免费视频 | 免费h精品视频在线播放| 欧美视频一区| 最新成人在线| 欧美在线免费| 国产精品超碰97尤物18| 亚洲国产婷婷香蕉久久久久久99 | 国模私拍一区二区三区| 中文高清一区| 欧美激情中文不卡| 国内揄拍国内精品久久 | 亚洲欧美怡红院| 欧美日韩精品一区二区三区四区| 国产综合欧美| 欧美亚洲三级| 欧美日本免费一区二区三区| 影音先锋另类| 欧美在线www| 国产精品亚洲а∨天堂免在线| 亚洲九九爱视频| 欧美成人蜜桃| 尤物yw午夜国产精品视频明星| 午夜精品久久久久久99热软件 | 亚洲人成网站777色婷婷| 久久免费观看视频| 国模私拍视频一区| 欧美在线免费观看视频| 国产欧美日韩在线观看| 亚洲伊人伊色伊影伊综合网| 欧美视频日韩视频在线观看| 亚洲精品一二三区| 欧美激情在线观看| 日韩一二三在线视频播| 欧美—级在线免费片| 亚洲成人自拍视频| 久久综合色一综合色88| 影音先锋亚洲一区| 裸体丰满少妇做受久久99精品 | 久久久精品国产免大香伊| 国产亚洲在线| 久久婷婷麻豆| 亚洲黑丝在线| 欧美激情一区二区久久久| 亚洲看片一区| 国产精品白丝av嫩草影院| 亚洲综合色丁香婷婷六月图片| 国产精品视频yy9099| 欧美中文字幕久久| 一区在线观看| 欧美精品一区二区三区久久久竹菊| 亚洲精品国产精品国自产观看浪潮| 欧美另类高清视频在线| 亚洲天堂偷拍| 国产一区二区三区直播精品电影| 久久久久久日产精品| 亚洲激情在线播放|