Skip to content

Instantly share code, notes, and snippets.

View gcs-abdulwahab's full-sized avatar

Abdul Wahab gcs-abdulwahab

  • 14:54 (UTC +05:00)
View GitHub Profile
// Loading required libraries
import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
public class MyServlet extends HttpServlet{
public void doGet(HttpServletRequest request, HttpServletResponse response)
@gcs-abdulwahab
gcs-abdulwahab / Debug.cpp
Created October 1, 2022 11:20
ITU_Assignment 0 for debugging
// 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 September 27, 2022 07:38
Display Values from Database in JSP Page
<%@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 September 23, 2022 07:45
Finding Max using Loop while/For Loop
#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 September 23, 2022 06:33
Finding Max using if and else if
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 September 23, 2022 06:03
Finding the Maxmimu using only if statement
#include <iostream>
using namespace std;
int main() {
int a1 = 1 ;
int a2 = 1 ;
int a3 = 1 ;
int a4 = 1 ;
int a5 = 1 ;
/*
#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 September 7, 2022 10:00
Fibonacci Code using Dynamic Programming
// 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 August 30, 2022 12:35
Midterm Syllabus for Internet Programming GCS 2022
# 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
@gcs-abdulwahab
gcs-abdulwahab / Information System Midterm Syllabus
Last active August 29, 2022 10:19
IT-311 Information System for GCS Syllabus
Midterm 2022 Information System Syllabus
Introduction to Information Systems / Information Management
Introduction to Decision Support Systems
Developing and Implementing
change Programs, Organization and Management Issues.
Midterm Paper from Past papers!