Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

made techrity-tmp22 week-1 & week-2 projects #16

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#include<iostream>
using namespace std;
void swapping(int &a, int &b) { //swap the content of a and b
int temp;
temp = a;
a = b;
b = temp;
}
void display(int *array, int size) {
for(int i = 0; i<size; i++)
cout << array[i] << " ";
cout << endl;
}
void bubbleSort(int *array, int size) {
for(int i = 0; i<size; i++) {
int swaps = 0; //flag to detect any swap is there or not
for(int j = 0; j<size-i-1; j++) {
if(array[j] > array[j+1]) { //when the current item is bigger than next
swapping(array[j], array[j+1]);
swaps = 1; //set swap flag
}
}
if(!swaps)
break; // No swap in this pass, so array is sorted
}
}
int main() {
int n;
cout << "Enter the number of elements: ";
cin >> n;
int arr[n]; //create an array with given number of elements
cout << "Enter elements:" << endl;
for(int i = 0; i<n; i++) {
cin >> arr[i];
}
cout << "Array before Sorting: ";
display(arr, n);
bubbleSort(arr, n);
cout << "Array after Sorting: ";
display(arr, n);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Html_Form</title>
</head>
<body>
<u><h1>FORM</h1></u>
<form>
<label>NAME :</label><br>
<input type="text" name="name" placeholder="Enter Your Name" /> <br><br>

<label>AGE :</label><br>
<input type="number" name="name" placeholder="Enter Your Age "/> <br><br>

<label>DEGREE :</label><br>
<input type="text" name="name" placeholder="Enter Your Degree" /> <br><br>

<label>GRADUATION YEAR :</label><br>
<input type="number" name="name" placeholder="Enter Your Graduation Year" /> <br><br>

<label>RESUME :</label>
<input type="file" name="name" placeholder="Upload Your Resume" /> <br><br>

<label>INTRODUCTION :</label><br>
<textarea rows="3" cols="60" name="introduction" placeholder="Enter Your Introduction" ></textarea><br>
<!-- <input type="text" name="name" placeholder="Enter Your Name" /> <br> -->
</form>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HtmlTag</title>
</head>
<body>
<center><h1>HTML TAGS </h1>
<table border="3">
<!-- <th>HTML TAGS</th> -->
<tr>
<th>Tag</th>
<th>Descriptions</th>
<th>Inline Tag</th>
<th>Block Tag</th>
</tr>

<tr>
<td>&lt;div&gt;</div></td>
<td>Container for HTML elements.</td>
<td></td>
<td>yes</td>
</tr>

<tr>
<td>&lt;header&gt;</td>
<td>Container of introduction.</td>
<td></td>
<td>yes</td>
</tr>

<tr>
<td>&lt;section&gt;</td>
<td>Add a section.</td>
<td></td>
<td>yes</td>
</tr>

<tr>
<td>&lt;main&gt;</td>
<td>Add the main content we used the main tag.</td>
<td></td>
<td>yes</td>
</tr>

<tr>
<td>&lt;a&gt;</td>
<td> It is used to link other web pages. The most important attribute of the anchor tag is the href because it indicates the destination of the link.</td>
<td>yes</td>
<td></td>
</tr>

<tr>
<td>&lt;b&gt;</td>
<td> It makes the text bold.</td>
<td>yes</td>
<td></td>
</tr>

<tr>
<td>&lt;nav&gt;</td>
<td>Add navigation links.</td>
<td></td>
<td>yes</td>
</tr>

<tr>
<td>&lt;img&gt;</td>
<td>To link image addresses.</td>
<td>yes</td>
<td></td>
</tr>

<tr>
<td>&lt;br&gt;</td>
<td>It is used to insert a line break and has no end tag.</td>
<td>yes</td>
<td></td>
</tr>

<tr>
<td>&lt;hr&gt;</td>
<td>Separate content using horizontal lines.</td>
<td></td>
<td>yes</td>
</tr>

<tr>
<td>&lt;form&gt;</td>
<td>Get information from the user input.</td>
<td></td>
<td>yes</td>
</tr>

<tr>
<td>&lt;h1&gt;-&lt;h6&gt;</td>
<td>Define HTML headings, where h1 is largest and h6 is smallest.</td>
<td></td>
<td>yes</td>
</tr>

<tr>
<td>&lt;input&gt;</td>
<td>It is used to get user input text where users can enter data.</td>
<td>yes</td>
<td></td>
</tr>

<tr>
<td>&lt;span&gt;</td>
<td>To highlight a text or part of a document.</td>
<td>yes</td>
<td></td>
</tr>

<tr>
<td>&lt;textarea&gt;</td>
<td>It is used to get input data from users in multiline form.</td>
<td>yes</td>
<td></td>
</tr>

<tr>
<td>&lt;table&gt;</td>
<td>Add a table.</td>
<td></td>
<td>yes</td>
</tr>

<tr>
<td>&lt;li&gt;</td>
<td>Add list items, ordered(&lt;ol&gt;) or unordered lists (&lt;ul&gt;).</td>
<td></td>
<td>yes</td>
</tr>

</table>

</center>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Resume</title>
</head>
<body>
<u><h1>My Resume</h1></u>
<div>
<img
src="/week-2_projects/assests/kush.jpg"
alt="Kush Gupta"
height="200"
width="200"
/>
</div>
<h3>Kush Gupta</h3>
<p>
passionate about web development,Goal is to achieve a good by doing
satisfying work in the IT field,Storngly Focused to complete the tasks in
fast-faced environment
</p>

<u><h2>EDUCATION</h2></u>

<ul>
<li><h3>High School</h3></li>
<h4>St.John Intermediate College, Kanpur</h4>
<p>2016-2017</p>

<li><h3>Intermediate</h3></li>
<h4>St.John Intermediate College, Kanpur</h4>
<p>2018-2019</p>

<li><h3>Bachelor Of Computer Applications</h3></li>
<h4>College of Management Studies,Kanpur</h4>
<p>2019-2022</p>
</ul>

<u><h2>EXPERIENCE</h2></u>
<ul>
<li><h3>Social Media Marketting Intern</h3></li>
<h4>Aashman Foundation</h4>
<p>05/2021-08/2021</p>
</ul>

<u><h2>ACHIEVEMENTS</h2></u>
<ul>
<li>
<h3>Master Diploma in Computer Information & System Management</h3>
</li>
<p>2016-2017</p>
</ul>

<u><h2>CONTACT</h2></u>
<ul>
<li>
<p><b>Email :</b> mekushguta@gmail.com</p>
</li>
</ul>
</body>
</html>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.