Homework of week 04 (Submission deadline: 23:59, Sep. 30, 2025)
See also:
In addition, for the case that given $n\lt0$, print an error message "Input number must be a positive integer!!" to the user;
for $n=0$, print $1$ because by definition, $0!=1$.
Send the filename of these shell scripts including their absolute path to me by email.
Hint: For the judgement of condition in bash, refer here. Using if...then would be the simplest but you could also try other syntax.
Note: If you did something weird and got stuck under bash without getting the shell-prompt returned, you can hit Ctrl-C to quit the process.
jsyu@Ukko:~$ grep "[ugd][0-9a][0-9]\{6\}" /etc/passwd | awk -F: '{ print something wrong here }'
>
>
>
> ^C
jsyu@Ukko:~$
Note: Do NOT copy my SVG code; you need to generate the plot by yourself according to your submission last week.
See also here for a brief tutorial for SVG.
Reference for SVG.
Put all of the information together and present as either an HTML file under your
Remember to specify the brand (廠牌) and model number (型號) of your computer in the homework.
Note: You will need to disable the secure boot option in the UEFI to boot Linux from USB flash.
If the UEFI does not allow you to turn off secure boot, try to enable the CSM function so as to boot your system in legacy-BIOS compatible mode.