Level - 2
31 / 3 / 2024
TASK 1: Javascript
JavaScript (often abbreviated as JS) is a high-level, interpreted programming language that enables you to create dynamic and interactive elements on web pages. It's one of the core technologies alongside HTML and CSS that make up the foundation of the World Wide Web
Project :
In this project , I created takes the marks of students and calculates the total marks , percentage and rank . I used html and basic javascript functions to calculate the parameters.
TASK 2: Ascynchronous Javascript
Async JS help in making the websites responsive even when with requested process going on in the background. It helps in dealing with real-time data . The most used in functions in Asyns Js include promises, awai allbacck functons.
Project :
In this project , I created a webpage that takes in user input and returns a random computer generated value . This value is generated using the random function and it has been implemented using the callback function.
TASK 3: Promises
In the above project we have used promises , this function allows the program to continue execute unless there is an error . When there is an error it shows error message. To implement promises we use .then, .catch operations
Project :
In this project , I created a webpage that takes in user input and returns a random computer generated value . This value is generated using the random function and it has been implemented using the callback function.
TASK 4: UBUNTU command line
Ubuntu is a free operating system based on linux. In the below task we have to contactinate two files and display them.
Procedure
- First create an directory using the command 'mk dir'.
- Access the directory using 'cd' command and and create new file 'touch < name of file>'
-Create 2600 folders in this folder 'mkdir -p a[1..2600]'
-Concatente 2 text files and display ' echo < text content-1 >" >> f1
echo "< text content-2 >" >> f2 cat f1 f2 > f3 '
- F3 stores the values of f1 and f2.
TASK 5: VI
VI is a powerful and screen-oriented text editor widely used in Linux and Unix-based operating systems. Some of the most commonly used commands are
Commands
- 'i' : insert data
- 'esc' : escape from the current mode
-':wq' : save and exit
-':r' : Read the file
)
TASK 6: Cloud computing
Cloud computing, is renting computing power and resources over the internet, instead of having your own physical hardware like a database to store data or a Server for computations. There are many services that companies like Aws, google cloud, provide like SaaS, Iaa aa aaS.
Procedure
- Go to network and sharing center and enable network discovery and file and printer sharing in advanced sharing settings for both private and public modes.
-Disable password protected sharing under all network settings.
-Go to SSDP discovery service and under properties, set startup type to automatic.
-Do the same for UPnP Device Host, Function Discovery Provider Host and Function Discovery Resource Publication .
-Select the folder that you want to share and under its properties, go to Sharing tab, select Advanced Sharing. Edit the settings as per your needs and apply. Then click the Share button to share the folder.
TASK 7: Linux continued
In this task , zipped a folder a folder in the terminal window of ubuntu.To do this we used commands such as gzi ar ,gunzip.
Procedure:
- First I piped the information from using the '|' operator into a textfile. Here I used grep to filter out the needed information and then used the '>' redirect operator to redirect it data to a text file.
- Now using the gzip command i was able zip the txt file.
- Using ther 'tar' and 'csvf' i was able to zip the folder
"