Skip to content

Instantly share code, notes, and snippets.

@gcs-abdulwahab
gcs-abdulwahab / DSA Syllabus for Resit Exam on 10th October 2022
Created Oct 3, 2022
DSA Syllabus for Resit Exam on 10th October 2022
View DSA Syllabus for Resit Exam on 10th October 2022
Intro to DSA
Arrays : Sparse / Dense Array / Matrix
LinkedList : Singly , Variant , Doubly LinkedList
Stack : and its applications , PostFix / Infix / Prefix conversion and Evaluation using Stack
Queue and its Implementations
DEQUE
Algorithmic Analysis of algorithms : Best , Worst Case
Recursion Tree Analysis
View MyServlet.java
// Loading required libraries
import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
public class DatabaseAccess extends HttpServlet{
public void doGet(HttpServletRequest request, HttpServletResponse response)
@gcs-abdulwahab
gcs-abdulwahab / Debug.cpp
Created Oct 1, 2022
ITU_Assignment 0 for debugging
View Debug.cpp
// This is a Program of a calculator.It will enter two numbers and a character from user and perform the entered operation.
#include <iostream>
using namespace std;
//This Function will output message on screen.
void OutputMessage()
{
cout<<"Welcome to Faltu Calculator by Zuraiz, Israr and Munir...!!!"<<endl<<endl
<<"Enter number 65535 to END program"<<endl<<endl;
}
//It will enter "Number" from user and return that value.
@gcs-abdulwahab
gcs-abdulwahab / index.jsp
Created Sep 27, 2022
Display Values from Database in JSP Page
View index.jsp
<%@page import="java.sql.DriverManager"%>
<%@page import="java.sql.ResultSet"%>
<%@page import="java.sql.Statement"%>
<%@page import="java.sql.Connection"%>
<%
String driver = "com.mysql.jdbc.Driver";
String connectionUrl = "jdbc:mysql://localhost:3306/";
String database = "database";
String userid = "root";
String password = "";
@gcs-abdulwahab
gcs-abdulwahab / Max_3.cpp
Created Sep 23, 2022
Finding Max using Loop while/For Loop
View Max_3.cpp
#include <iostream>
using namespace std;
int main() {
int a[10] = {1 ,2 ,3 ,5 , 3 , 1};
int max = a [0];
for (int i = 1; i < 5; ++i) {
if ( a[i] > max )
max = a[i];
@gcs-abdulwahab
gcs-abdulwahab / Max_2.cpp
Created Sep 23, 2022
Finding Max using if and else if
View Max_2.cpp
if (a1>a2) {
if (a1 > a3) {
if (a1 > a4) {
if (a1 > a5) {
cout << a1 << " is maximum";
}
}
}
}
else if (a2 > a3){
@gcs-abdulwahab
gcs-abdulwahab / FindMax_A.cpp
Last active Sep 23, 2022
Finding the Maxmimu using only if statement
View FindMax_A.cpp
#include <iostream>
using namespace std;
int main() {
int a1 = 1 ;
int a2 = 1 ;
int a3 = 1 ;
int a4 = 1 ;
int a5 = 1 ;
/*
View Sample.cpp
#include <iostream>
using namespace std;
int main (){
int x = 14;
int y = 3;
cout<<"Enter Values of x and y ";
cin>> x >> y;
// I can change it
int d = y;
@gcs-abdulwahab
gcs-abdulwahab / Fibonacci_DP.cpp
Created Sep 7, 2022
Fibonacci Code using Dynamic Programming
View Fibonacci_DP.cpp
// Online C++ compiler to run C++ program online
#include <iostream>
using namespace std;
unsigned long X[100];
bool doesExist(int n){
if (X[n] != -1)
return true;
@gcs-abdulwahab
gcs-abdulwahab / Midterm Syllabus for Internet Programming
Last active Aug 30, 2022
Midterm Syllabus for Internet Programming GCS 2022
View Midterm Syllabus for Internet Programming
# Midterm Syllabus for Internet Programming GCS
HTML Forms
Client Server Architecture , CSS , Simple and Compound Selectors
Javascripts DOM
AJAX , XMLHTTPRequest
JSON
Intro to JAVA , WORA
JVM Java->bytecode