vault backup: 2024-04-21 22:58:56
BIN
.1b.csv.swp
Normal file
3
.obsidian/community-plugins.json
vendored
@@ -6,5 +6,6 @@
|
|||||||
"obsidian-diagrams-net",
|
"obsidian-diagrams-net",
|
||||||
"obsidian-full-calendar",
|
"obsidian-full-calendar",
|
||||||
"obsidian-style-settings",
|
"obsidian-style-settings",
|
||||||
"url-into-selection"
|
"url-into-selection",
|
||||||
|
"obsidian-csv-table"
|
||||||
]
|
]
|
3454
.obsidian/plugins/obsidian-csv-table/main.js
vendored
Normal file
10
.obsidian/plugins/obsidian-csv-table/manifest.json
vendored
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"id": "obsidian-csv-table",
|
||||||
|
"name": "CSV Table",
|
||||||
|
"version": "1.2.0",
|
||||||
|
"minAppVersion": "0.11.10",
|
||||||
|
"description": "Render CSV data as a table within your notes.",
|
||||||
|
"author": "Adam Coddington <me@adamcoddington.net>",
|
||||||
|
"authorUrl": "https://coddingtonbear.net/",
|
||||||
|
"isDesktopOnly": false
|
||||||
|
}
|
8
.obsidian/plugins/obsidian-csv-table/styles.css
vendored
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
.csv-table {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.csv-error {
|
||||||
|
font-weight: 700;
|
||||||
|
padding: 10em;
|
||||||
|
border: 1px solid #f00;
|
||||||
|
}
|
50
.obsidian/workspace.json
vendored
@@ -25,7 +25,7 @@
|
|||||||
"state": {
|
"state": {
|
||||||
"type": "markdown",
|
"type": "markdown",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "Semester 2/Database Systems/Trimester 2 Assignment.md",
|
"file": "Semester 2/Computer Systems Internals & Linux/Trimester 2 Assignment/Trimester 2 Assignment.md",
|
||||||
"mode": "source",
|
"mode": "source",
|
||||||
"source": false
|
"source": false
|
||||||
}
|
}
|
||||||
@@ -99,7 +99,7 @@
|
|||||||
"state": {
|
"state": {
|
||||||
"type": "backlink",
|
"type": "backlink",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "Semester 2/Database Systems/Trimester 2 Assignment.md",
|
"file": "Semester 2/Computer Systems Internals & Linux/Trimester 2 Assignment/Trimester 2 Assignment.md",
|
||||||
"collapseAll": false,
|
"collapseAll": false,
|
||||||
"extraContext": false,
|
"extraContext": false,
|
||||||
"sortOrder": "alphabetical",
|
"sortOrder": "alphabetical",
|
||||||
@@ -116,7 +116,7 @@
|
|||||||
"state": {
|
"state": {
|
||||||
"type": "outgoing-link",
|
"type": "outgoing-link",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "Semester 2/Database Systems/Trimester 2 Assignment.md",
|
"file": "Semester 2/Computer Systems Internals & Linux/Trimester 2 Assignment/Trimester 2 Assignment.md",
|
||||||
"linksCollapsed": false,
|
"linksCollapsed": false,
|
||||||
"unlinkedCollapsed": true
|
"unlinkedCollapsed": true
|
||||||
}
|
}
|
||||||
@@ -139,7 +139,7 @@
|
|||||||
"state": {
|
"state": {
|
||||||
"type": "outline",
|
"type": "outline",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "Semester 2/Database Systems/Trimester 2 Assignment.md"
|
"file": "Semester 2/Computer Systems Internals & Linux/Trimester 2 Assignment/Trimester 2 Assignment.md"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -181,38 +181,39 @@
|
|||||||
},
|
},
|
||||||
"active": "3ed058b7ba32ddc0",
|
"active": "3ed058b7ba32ddc0",
|
||||||
"lastOpenFiles": [
|
"lastOpenFiles": [
|
||||||
"images/Pasted image 20240417140336.png",
|
"images/Pasted image 20240421224020.png",
|
||||||
"images/Pasted image 20240417140243.png",
|
|
||||||
"Semester 2/Database Systems/Week 11/Week 11 Database Systems.md",
|
|
||||||
"Semester 2/Database Systems/Trimester 2 Assignment.md",
|
"Semester 2/Database Systems/Trimester 2 Assignment.md",
|
||||||
|
"Semester 2/Computer Systems Internals & Linux/Trimester 2 Assignment/Trimester 2 Assignment.md",
|
||||||
|
"images/Pasted image 20240421194501.png",
|
||||||
|
"images/Pasted image 20240421190116.png",
|
||||||
|
"1b.csv",
|
||||||
|
"1a.csv",
|
||||||
|
"Semester 2/Computer Systems Internals & Linux/Trimester 2 Assignment/1a.csv",
|
||||||
|
"images/Pasted image 20240421172016.png",
|
||||||
|
"images/Pasted image 20240421171351.png",
|
||||||
|
"images/Pasted image 20240421171345.png",
|
||||||
|
"images/Pasted image 20240421171300.png",
|
||||||
|
"images/Pasted image 20240421171121.png",
|
||||||
|
"images/Pasted image 20240421170953.png",
|
||||||
|
"images/Pasted image 20240421170326.png",
|
||||||
|
"images/Pasted image 20240421165326.png",
|
||||||
|
"Semester 2/Computer Systems Internals & Linux/Trimester 2 Assignment/q2.sh",
|
||||||
|
"Semester 2/Computer Systems Internals & Linux/Trimester 2 Assignment/q1txt2.txt",
|
||||||
|
"Semester 2/Computer Systems Internals & Linux/Trimester 2 Assignment/q1txt1.txt",
|
||||||
|
"Semester 2/Computer Systems Internals & Linux/Trimester 2 Assignment/q1.sh",
|
||||||
|
"Semester 2/Computer Systems Internals & Linux/Trimester 2 Assignment",
|
||||||
|
"Semester 2/Database Systems/Week 11/Week 11 Database Systems.md",
|
||||||
"Semester 2/Database Systems/Exercise Booklet.pdf",
|
"Semester 2/Database Systems/Exercise Booklet.pdf",
|
||||||
"Semester 2/Database Systems/Week 11",
|
"Semester 2/Database Systems/Week 11",
|
||||||
"Semester 2/Untitled",
|
|
||||||
"Semester 2/Database Systems/Week 10/Week 10 Database Systems.md",
|
"Semester 2/Database Systems/Week 10/Week 10 Database Systems.md",
|
||||||
"Semester 2/Database Systems/Week 9/Week 9 Database Systems.md",
|
"Semester 2/Database Systems/Week 9/Week 9 Database Systems.md",
|
||||||
"Semester 2/Database Systems/Week 8/Week 8 Database Systems.md",
|
"Semester 2/Database Systems/Week 8/Week 8 Database Systems.md",
|
||||||
"images/Pasted image 20240415190127.png",
|
|
||||||
"images/Pasted image 20240415190010.png",
|
|
||||||
"images/Pasted image 20240415175614.png",
|
|
||||||
"images/Pasted image 20240415135455.png",
|
|
||||||
"images/Pasted image 20240415134042.png",
|
|
||||||
"Semester 2/Programming 2/Week 10 Revision/Q5.md",
|
"Semester 2/Programming 2/Week 10 Revision/Q5.md",
|
||||||
"Semester 2/Programming 2/Assessment 3 Revision/Parameter Passing WS2.md",
|
"Semester 2/Programming 2/Assessment 3 Revision/Parameter Passing WS2.md",
|
||||||
"Semester 2/Programming 2/Assessment 3 Revision/Parameter Passing WS1.md",
|
"Semester 2/Programming 2/Assessment 3 Revision/Parameter Passing WS1.md",
|
||||||
"Semester 2/HCI/Week 3/Week 3 Human Computer Interfaces.md",
|
"Semester 2/HCI/Week 3/Week 3 Human Computer Interfaces.md",
|
||||||
"Semester 2/Programming 2/Assessment 3 Revision/Parameter Passing WS3.md",
|
"Semester 2/Programming 2/Assessment 3 Revision/Parameter Passing WS3.md",
|
||||||
"Semester 2/Programming 2/Project/Part 2/package.bluej",
|
|
||||||
"Semester 2/Programming 2/Project/Part 2",
|
|
||||||
"Semester 2/Programming 2/Project/Part 4 Complete.zip",
|
|
||||||
"Semester 2/Programming 2/Project/Part 4 Complete/doc/resources/inherit.gif",
|
|
||||||
"Semester 2/Programming 2/Project/Part 4 Complete/doc/stylesheet.css",
|
|
||||||
"Semester 2/Programming 2/Project/Part 4 Complete/doc/resources",
|
|
||||||
"Semester 2/Programming 2/Project/Part 4 Complete/doc/package-summary.html",
|
|
||||||
"Semester 2/Programming 2/Project/Part 4 Complete/doc/package-list",
|
|
||||||
"images/Pasted image 20240319234142.png",
|
|
||||||
"images/Pasted image 20240319225420.png",
|
|
||||||
"Semester 2/Programming 2/Week 10 Revision/Q4.md",
|
"Semester 2/Programming 2/Week 10 Revision/Q4.md",
|
||||||
"images/Pasted image 20240319224232.png",
|
|
||||||
"Semester 2/Programming 2/Week 10 Revision/Q3.md",
|
"Semester 2/Programming 2/Week 10 Revision/Q3.md",
|
||||||
"Semester 2/Programming 2/Week 10 Revision/Q1.md",
|
"Semester 2/Programming 2/Week 10 Revision/Q1.md",
|
||||||
"Semester 2/Database Systems/Week 2/Week 2 Database Systems.md",
|
"Semester 2/Database Systems/Week 2/Week 2 Database Systems.md",
|
||||||
@@ -223,7 +224,6 @@
|
|||||||
"Semester 2/Database Systems/Week 7/Week 7 Database Systems.md",
|
"Semester 2/Database Systems/Week 7/Week 7 Database Systems.md",
|
||||||
"Semester 2/Database Systems/Week 6/Week 6 Database Systems.md",
|
"Semester 2/Database Systems/Week 6/Week 6 Database Systems.md",
|
||||||
"Semester 2/Computer Systems Internals & Linux/Week 6/Week 6 Computer Systems Internals.md",
|
"Semester 2/Computer Systems Internals & Linux/Week 6/Week 6 Computer Systems Internals.md",
|
||||||
"Semester 2/Computer Systems Internals & Linux/Untitled.md",
|
|
||||||
"Semester 2/Database Systems/Week 5/Week 5 Database Systems.md",
|
"Semester 2/Database Systems/Week 5/Week 5 Database Systems.md",
|
||||||
"Semester 2/HCI/Week 2/Week 2 Human Computer Interfaces.md",
|
"Semester 2/HCI/Week 2/Week 2 Human Computer Interfaces.md",
|
||||||
"Semester 1/Database Systems/Week 11/Week 11 Database Systems.md",
|
"Semester 1/Database Systems/Week 11/Week 11 Database Systems.md",
|
||||||
|
9
1a.csv
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
A,B,C,XOR1,OR,NAND,NOT,XOR2,X
|
||||||
|
0,0,0,0,0,1,1,0,0
|
||||||
|
0,0,1,0,1,1,0,1,1
|
||||||
|
0,1,0,1,1,0,1,1,1
|
||||||
|
0,1,1,1,1,0,0,0,0
|
||||||
|
1,0,0,1,0,1,1,0,0
|
||||||
|
1,0,1,1,1,0,0,0,0
|
||||||
|
1,1,0,0,1,1,1,0,0
|
||||||
|
1,1,1,0,1,1,0,1,1
|
|
9
1b.csv
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
IN1,IN2,IN3,OUT
|
||||||
|
0,0,0,1
|
||||||
|
0,0,1,1
|
||||||
|
0,1,0,0
|
||||||
|
0,1,1,0
|
||||||
|
1,0,0,0
|
||||||
|
1,0,1,0
|
||||||
|
1,1,0,1
|
||||||
|
1,1,1,1
|
|
@@ -0,0 +1,232 @@
|
|||||||
|
| Roll Number | 00677611 |
|
||||||
|
| ----------- | -------- |
|
||||||
|
| ID | CHC119 |
|
||||||
|
|
||||||
|
# 1 - Linux Bash
|
||||||
|
|
||||||
|
### 1.1 - If Statements
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
### 1.2 - Processing Variable Number of Arguments with While, Using if
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
# 2 - Linux System Administration
|
||||||
|
|
||||||
|
#### Setup:
|
||||||
|
|
||||||
|
- Create **sysadmin** user:
|
||||||
|

|
||||||
|
- Add **sysadmin** to the **root** group
|
||||||
|

|
||||||
|
- Create global_aliases.sh and set permissions
|
||||||
|

|
||||||
|
- Create aliases:
|
||||||
|

|
||||||
|
- Add source for existing users:
|
||||||
|

|
||||||
|
- Create users:
|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|
- Create group for Hugh and Ryan
|
||||||
|

|
||||||
|
- Add Hugh and Ryan to the group
|
||||||
|

|
||||||
|
- Create shared directory
|
||||||
|

|
||||||
|
- Set permissions to directory to allow root and sharedaccess to read, write and execute, others can read
|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|
- Set permissions of all folders in /home/ to rwx for exclusively the user that owns it. Other users may not read, write or execute
|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
#### Testing:
|
||||||
|
|
||||||
|
##### Aliases
|
||||||
|
|
||||||
|
- Test **ll** alias:
|
||||||
|

|
||||||
|
- Test **la** alias:
|
||||||
|

|
||||||
|
- Test other uses can use alias:
|
||||||
|

|
||||||
|
|
||||||
|
##### Shared Directory:
|
||||||
|
|
||||||
|
- Both Ryan and Hugh can read and write inside the shared directory.
|
||||||
|

|
||||||
|
|
||||||
|
- Rob can read from the directory:
|
||||||
|

|
||||||
|
|
||||||
|
- Rob cannot write to the directory:
|
||||||
|

|
||||||
|
|
||||||
|
##### Home Directories:
|
||||||
|
|
||||||
|
- Users cannot access each other's home directories.
|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
- However, the owner may access the home directory.
|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
#### bash_history
|
||||||
|
|
||||||
|
# CSI Task 1
|
||||||
|
|
||||||
|
### a)
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
#### i)
|
||||||
|
|
||||||
|
```
|
||||||
|
X = (A ∧ B ∧ C) ∨ ( ¬A ∧ B ∧ ¬C) ∨ ( ¬A ∧ ¬B ∧ C)
|
||||||
|
```
|
||||||
|
|
||||||
|
#### ii)
|
||||||
|
|
||||||
|
```csvtable
|
||||||
|
source: 1a.csv
|
||||||
|
```
|
||||||
|
|
||||||
|
### b)
|
||||||
|
|
||||||
|
Truth Table:
|
||||||
|
|
||||||
|
```csvtable
|
||||||
|
source: 1b.csv
|
||||||
|
```
|
||||||
|
|
||||||
|
Karnaugh Graph:
|
||||||
|
|
||||||
|
| | | AB | | | |
|
||||||
|
| --- | --- | --- | --- | --- | --- |
|
||||||
|
| | | 00 | 01 | 11 | 10 |
|
||||||
|
| C | 0 | 1 | 0 | 1 | 0 |
|
||||||
|
| | 1 | 1 | 0 | 1 | 0 |
|
||||||
|
|
||||||
|
As we can see from the Karnaugh Graph, the output of C is completely irrelevant.
|
||||||
|
|
||||||
|
Boolean Expression:
|
||||||
|
|
||||||
|
```
|
||||||
|
OUT = (IN1 ∧ IN2) ∨ ( ¬IN1 ∧ ¬IN2)
|
||||||
|
```
|
||||||
|
|
||||||
|
Logic Circuit:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
# CSI Task 2
|
||||||
|
|
||||||
|
### a)
|
||||||
|
|
||||||
|
| Name | George |
|
||||||
|
| ------- | ---------------------------------------------------------------------------------------- |
|
||||||
|
| Decimal | 71,101,111,114,103,101 |
|
||||||
|
| Binary | 1000111,1100101,1101111,1110010,1100111,1100101 |
|
||||||
|
| 8N2 | 0(Idle) 1(Start) 01000111 00(Stop) 1(Start) 01100101 00(Stop) 1(Start) 01101111 00(Stop) |
|
||||||
|
| | 1(Start) 01110010 00(Stop) 1(Start) 01100111 00(Stop) 1(Start) 01100101 00(Stop) 0(Idle) |
|
||||||
|
|
||||||
|
- 
|
||||||
|
|
||||||
|
### b)
|
||||||
|
|
||||||
|
| Sent | UTF-8 | Binary | UTF-8 | Received |
|
||||||
|
| -------- | ----- | ------------ | ----- | -------- |
|
||||||
|
| G | 71 | 0100 0111 | 71 | G |
|
||||||
|
| e | 101 | 0110 0101 | 101 | e |
|
||||||
|
| o | 111 | 0110 1111 | 111 | o |
|
||||||
|
| r | 114 | 0111 0010 | 114 | r |
|
||||||
|
| g | 103 | 0110 0111 | 103 | g |
|
||||||
|
| e | 101 | 0110 0101 | 101 | e |
|
||||||
|
| Sum | 601 | 10 0101 1001 | 601 | |
|
||||||
|
| Checksum | 89 | | 89 | |
|
||||||
|
|
||||||
|
601 $mod$ 256 = 89
|
||||||
|
or,
|
||||||
|
10 0101 1001 AND
|
||||||
|
00 1111 1111
|
||||||
|
00 0101 1001 = 89
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
| Sent | UTF-8 | Binary | UTF-8 | Received |
|
||||||
|
| -------- | ----- | ------------- | ----- | -------- |
|
||||||
|
| G | 71 | 0100 0111 | 71 | G |
|
||||||
|
| e | 101 | 011**1** 0101 | 117 | u |
|
||||||
|
| o | 111 | 0110 11**0**1 | 109 | m |
|
||||||
|
| r | 114 | 0111 0010 | 114 | r |
|
||||||
|
| g | 103 | 01**0**0 0111 | 71 | G |
|
||||||
|
| e | 101 | 0110 0101 | 101 | e |
|
||||||
|
| Sum | 601 | 10 0100 0111 | 583 | |
|
||||||
|
| Checksum | 89 | | 71 | |
|
||||||
|
|
||||||
|
Here we can detect an error in transmission, since the checksum differs on each side of the message. A checksum however cannot detect *where* an error occurs, just the fact that it has.
|
||||||
|
|
||||||
|
### c)
|
||||||
|
|
||||||
|
$Baud Rate = \frac{Bitrate}{Bits Per Symbol}$
|
||||||
|
|
||||||
|
$Bit Rate = 2MBps$
|
||||||
|
$Bits Per Symbol = 8 data + 1 start + 2 stop = 11 bits$
|
||||||
|
|
||||||
|
$Baud Rate = \frac{2MBps}{11b} = 0.1818MHz = 181.8kHz$
|
||||||
|
|
||||||
|
$5F = 5 * \frac{Baud Rate}{2}$
|
||||||
|
$5F = 5 * 90.9kHz = 454.5kHz$
|
||||||
|
|
||||||
|
Required Bandwidth: 454.5kHz
|
||||||
|
|
||||||
|
# CSI Task 3
|
||||||
|
|
||||||
|
### a)
|
||||||
|
|
||||||
|
#### Page Accesses
|
||||||
|
|
||||||
|
1. 1 2 3 4 5
|
||||||
|
2. 2 3 4 1 5
|
||||||
|
3. 3 4 1 2 5
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Using the clock algorithm, there are 7 page faults total with this sequence of page accesses.
|
||||||
|
|
||||||
|
### b)
|
||||||
|
|
||||||
|
Since A has a runtime of 4 seconds, it is impossible to allocate 4-7 (4, 5, 6, 7 -> 5 processes) second runtime with no conflicts, so I will allocate 4 in a process of my choice.
|
||||||
|
|
||||||
|
$Response Ratio = \frac{Wait Time + Run Time}{Run Time}$
|
||||||
|
|
||||||
|
| Process | Runtime | Start Time | Response Ratio |
|
||||||
|
| ------- | ------- | ---------- | -------------- |
|
||||||
|
| A | 4 | 0 | 1 |
|
||||||
|
| B | 5 | 1 | 1.2 |
|
||||||
|
| C | 6 | 2 | 1.33 |
|
||||||
|
| D | 7 | 3 | 1.43 |
|
||||||
|
| E | 4 | 4 | 2 |
|
||||||
|
|
||||||
|
Process E has the highest Response Ratio, and will be scheduled first.
|
||||||
|
Then Process D, Process C, B and finally A.
|
||||||
|
|
||||||
|
| t (Time) | Complete Process | Start Process |
|
||||||
|
| -------- | ---------------- | ------------- |
|
||||||
|
| 0 | | A |
|
||||||
|
| 4 | A | E |
|
||||||
|
| 8 | E | D |
|
||||||
|
| 15 | D | C |
|
||||||
|
| 21 | C | B |
|
||||||
|
| 26 | B | |
|
||||||
|
|
||||||
|
Since the only available process at t=0 is A, it must still be performed first, regardless of where it sits in the queue.
|
||||||
|
E is then available at t=4, when A is completed, allowing the remaining queue to run in descending order of response ratio.
|
@@ -0,0 +1,22 @@
|
|||||||
|
#!bin/bash
|
||||||
|
|
||||||
|
if [ $# -ne 2 ]; then
|
||||||
|
echo "Please provide 2 files as arguments"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -f "$1" ] || [ ! -f "$2" ]; then
|
||||||
|
echo "Both arguments must be files"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
print() {
|
||||||
|
file="$1"
|
||||||
|
echo "$file"
|
||||||
|
head -n 2 "$file"
|
||||||
|
}
|
||||||
|
|
||||||
|
print "$1"
|
||||||
|
print "$2"
|
||||||
|
|
||||||
|
echo "Total number of characters is: $(cat "$1" "$2" | wc -c)"
|
@@ -0,0 +1,3 @@
|
|||||||
|
1
|
||||||
|
2
|
||||||
|
3
|
@@ -0,0 +1,8 @@
|
|||||||
|
4
|
||||||
|
5
|
||||||
|
6
|
||||||
|
7
|
||||||
|
8
|
||||||
|
9
|
||||||
|
10
|
||||||
|
11
|
@@ -0,0 +1,25 @@
|
|||||||
|
#!bin/bash
|
||||||
|
|
||||||
|
if [ $# -ne 6 ]; then
|
||||||
|
echo "Please provide 6 arguments"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
total=0
|
||||||
|
count=0
|
||||||
|
|
||||||
|
marks=("$@")
|
||||||
|
# Expands the list of arguments to be space seperated, then splits the output
|
||||||
|
# on a space with a newline. The list is then sorted in descending order.
|
||||||
|
# This allows the iteration through the list until count = length=1, removing
|
||||||
|
# the last value from the calculation.
|
||||||
|
marks=($(echo "${marks[@]}" | tr ' ' '\n' | sort -nr))
|
||||||
|
|
||||||
|
while [ "$count" -lt 5 ]; do
|
||||||
|
total=$((total + marks[count]))
|
||||||
|
count=$((count + 1))
|
||||||
|
done
|
||||||
|
|
||||||
|
avg=$(( ( total + 5 / 2 ) / 5 ))
|
||||||
|
|
||||||
|
echo "Average of best five modules: $avg%"
|
BIN
images/Pasted image 20240421151943.png
Normal file
After Width: | Height: | Size: 38 KiB |
BIN
images/Pasted image 20240421152012.png
Normal file
After Width: | Height: | Size: 75 KiB |
BIN
images/Pasted image 20240421160405.png
Normal file
After Width: | Height: | Size: 117 KiB |
BIN
images/Pasted image 20240421160513.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
images/Pasted image 20240421161729.png
Normal file
After Width: | Height: | Size: 94 KiB |
BIN
images/Pasted image 20240421161749.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
images/Pasted image 20240421162622.png
Normal file
After Width: | Height: | Size: 763 B |
BIN
images/Pasted image 20240421162657.png
Normal file
After Width: | Height: | Size: 825 B |
BIN
images/Pasted image 20240421162803.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
images/Pasted image 20240421162846.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
images/Pasted image 20240421162908.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
images/Pasted image 20240421163023.png
Normal file
After Width: | Height: | Size: 663 B |
BIN
images/Pasted image 20240421163110.png
Normal file
After Width: | Height: | Size: 670 B |
BIN
images/Pasted image 20240421163115.png
Normal file
After Width: | Height: | Size: 670 B |
BIN
images/Pasted image 20240421163204.png
Normal file
After Width: | Height: | Size: 670 B |
BIN
images/Pasted image 20240421163226.png
Normal file
After Width: | Height: | Size: 692 B |
BIN
images/Pasted image 20240421163525.png
Normal file
After Width: | Height: | Size: 729 B |
BIN
images/Pasted image 20240421163552.png
Normal file
After Width: | Height: | Size: 747 B |
BIN
images/Pasted image 20240421163651.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
images/Pasted image 20240421163841.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
images/Pasted image 20240421163852.png
Normal file
After Width: | Height: | Size: 864 B |
BIN
images/Pasted image 20240421164122.png
Normal file
After Width: | Height: | Size: 869 B |
BIN
images/Pasted image 20240421164145.png
Normal file
After Width: | Height: | Size: 937 B |
BIN
images/Pasted image 20240421164421.png
Normal file
After Width: | Height: | Size: 6.8 KiB |
BIN
images/Pasted image 20240421164507.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
images/Pasted image 20240421164526.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
images/Pasted image 20240421164724.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
images/Pasted image 20240421164909.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
images/Pasted image 20240421164948.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
images/Pasted image 20240421165135.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
images/Pasted image 20240421165151.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
images/Pasted image 20240421165222.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
images/Pasted image 20240421165256.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
images/Pasted image 20240421165326.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
images/Pasted image 20240421170326.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
images/Pasted image 20240421170953.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
images/Pasted image 20240421171121.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
images/Pasted image 20240421171300.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
images/Pasted image 20240421171345.png
Normal file
After Width: | Height: | Size: 6.6 KiB |
BIN
images/Pasted image 20240421171351.png
Normal file
After Width: | Height: | Size: 6.6 KiB |
BIN
images/Pasted image 20240421172016.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
images/Pasted image 20240421190116.png
Normal file
After Width: | Height: | Size: 31 KiB |
BIN
images/Pasted image 20240421194501.png
Normal file
After Width: | Height: | Size: 225 KiB |
BIN
images/Pasted image 20240421224020.png
Normal file
After Width: | Height: | Size: 23 KiB |