Skip to main content

Posts

Showing posts with the label problems_to_do

Dynamic Divs

Some days before I was asked to do something like this. That was terribly simple! Here is a snapshot from my wandering editor.. See the Pen dynamic divs by Vajahath Ahmed ( @vajahath_ahmed ) on CodePen .

Sorting table with angular

Below is a demo of sorting a table with Angular. ----------- Name Age Salary DEC table will be ordered by {{orderBy}} name age gender email salary {{employee.name}} {{employee.age}} {{employee.gender}} {{employee.email}} {{employee.salary}} ----- codes -----

4 tiny questions you fail easily.

Below are four (4) questions and a bonus question. You have to answer them instantly. You can't take your time, answer all of them immediately. OK?        Let's find out just how clever you really are .     Ready?  GO!!! (Scroll down)  Question 1 : You are participating in a race. You overtook the second person. What position are you in?  ......  ......  ......  ......  ......  ......  ......  ......  ......  ......   ......   ......   ......   ......   ......   ......   ......  ......  ......  ......  -first?, lol absolutely wrong! -If you overtake the second person and you take his place, you are second!  Try not to screw up in the next question.  ...

Formia Screenshots - Google Forms Simulation.

Below are a some sample views of Formia: You can download Formia here . Screenshots. Home Create Forms Here are your forms here is your live form. Results Comment below your suggestions. ----

Formia - A Simulation of Google Forms. Part 1 - My Experience

This time I would like to share one of the exciting moments in my life, in which I understood what the Client - Server Concept means and by the Grace of God , simulated one of the Internet Giant's product, Google Forms from scratch. I finished the project a couple of months ago. Here is the story. (and the project ). Analysis page, See more screenshots Screenshots Install Formia. What it is? Formia is an incredible web application for Massive Feedback Analysis. Developed on May 2015. More than  4000 lines of codes. Flexible. Well structured. This can be viewed as a simulation of  Google Forms , a product hosted by the  Internet Giant, Google. Service available in  mobile, laptop, tabs . Languages Formia is constructed on  7 languages , including PHP, AJAX, JS, SQL etc. The Analysis part utilizes  Google APIs  which is one of the coolest (and  hottest ) feature. Usability Formia is optimized for easine...

Formia - A Simulation of Google Forms. Part 2 - Download and Install

<< Formia - A Simulation of Google Forms. Part 1 OK guys, here is how to try Formia. All you have 6 steps to go. Download the project. Run the server. Create user. Copy the folder. Run initialization file. Good to go. Go to Github Page. Documentation/Report. Install Formia Note For My Personal Friends: When you finished installation, you will be prompted to create an account on Formia. Use your original First Name. The steps are also available at here. Follow the steps below to install Formia. Step 1: Download the Project In 2 ways you can get the project From Github: (recomended). Getting the files from Github is recommended because, you will be getting the latest version of Formia. Also it's backed up with a large community. If you have no git installed on your device, no problem. You can download the zip of the project files from  my github page . Look for the " download zip " button. If you got git software on you machine, Open command ...

Merge sort algorithm

This video show how merge sort works out: ----------------------------------------

Java Program to FILTER PRIMES

Hi guys, This simple java program accepts a number as a limit and analyse each number. If it is prime a flag is set and it is displayed. Also it shows the total number of primes obtained within the range. Here's the program. PROGRAM Click  here  for  instructions for executing  the program. --------------------------------------- If not working/incorrect execution please notify me below. Also share your experience. Have a nice day.

Java: Another Simple Example of Displaying a Text

This is a simple Java program to display a text: This program enable you to understand: How to declare variable. Structure. Output statement. public class BeingAwesome                 {                 public static void main(String []args)                                 {                                 System.out.println("*****#####*****===+++@@@@&^%$#@!+_)(*&{}|");                           ...

The Simplest Java Program! - Displaying a Text

This is a simple Java program to display a text: 'i=100'. This program enable you to understand: How to declare variable. Structure. Output statement. class Awesome {                 static int i;                 public static void main(String[] args)                 {                                 i=100;                                 System.out.println("i="+i);                 } } Cl...

Simple Java Program That Display a Text

This is a simple java program that display a text (“I’m Vajahath” here). class Test {                 public static void main(String []args)                 {                                 System.out.println(“wow! It’s working..!”);                 } } Click here for instructions for executing the program.

Cpp Simple Program For Finding Average

F inding average is one of the simplest programs. Here we input 5 variables, then added together for ‘sum’ and the ‘sum’ is divided by the 5 to produce the average. The Program //program to find average. #include<iostream.h> #include<conio.h> void main() { int i,x,sum=0,avg; clrscr(); cout<<"Enter the 5 elements\n"; for(i=0;i<5;i++)                 {                 cin>>x;                 sum=sum+x;                 } avg=sum/5; cout<<"sum="<<sum; cout<<"avg="<<avg; getch(); } Run the program after compilation. If any problems: post at here...

Dynamic initialization of variables.

T he below described is a program that shows how variables are declared in a dynamic manner. We can also initialize these variables dynamically. Hope this would be so simple for you. By trying some another examples, you can master on it.! The program // using simple dynamic initialization of variables #include<iostream.h> #include<conio.h> void main() { clrscr(); int b,c=sizeof("xloi");    //dynamic initialization for 'c' cout<<"\nvalue for b="; cin>>b; int q=b*1.3*c;  //dynamic initialization for 'q' cout<<"q="<<q; getch(); }

Using the key word "const" in cpp

T he const key word creates symbolic const ants in Cpp. The values declared as const cannot be modified by the program in any way. So it is a way of declaring const ants throughout the program. The program //using const data type #include<conio.h> #include<iostream.h> const int q=10;    // const are global in nature. void main() { const char w[q]="\nhello\n"; const char e='k'; clrscr(); cout<<q<<w<<e; getch(); }

Program to check weather a number is amstrong or not.

Hi guys, This is a simple cpp program to check weather a number is amstrong or not. A number is amstrong if the sum of the cubes of the digits of the number is the same number. Thus as a common example we use the number 153. Then, 1^3=1 5^3=125 3^3=27 the total will be 1+125+27=153 ,the same number. In the program, we: input the number to be checked. extract each digits from the number. take cubes. add up. check the result with the given number. display the result. Now try the program given below: //amstrong #include<conio.h> #include<iostream.h> class dom { int dgt,dum,flag; public: void get() { cout<<"Enter the digit:"; cin>>dgt; cout<<"done!"; dum=dgt; } void check(); void disp() { if(flag==1) cout<<"\n Awesome! Amstrong"; else cout<<"\noops! not *_* TRY AGAIN"; } }; void dom::check() { int q,sum=0; while (dum!=0) { q=dum%10; sum=sum+q*q*q; dum=dum/10; } ...

Object Orientation Enlarged by an Example!

T his program illustrates how to implement the arithmetic operation in an object oriented way. Here we have a class with 2 variables. For each operation an object of this class is created to do the operation instead of declaring such much variables. Therefore, this method is, for a large scale implementation, is quite efficient. so have a try on it. Program: //simple operations in object oriented method #include<conio.h> #include<iostream.h> class dom { int a,b; public: void get() { cout<<"oops..!\nnumbers:"; cin>>a>>b; cout<<"passed"; } void add() { cout<<endl<<"a+b="<<a+b; } void diff() { cout<<endl<<"a-b="<<a-b; } void mult() { cout<<endl<<"a*b="<<a*b; } void div() { cout<<endl<<"a/b="<<a/b; } }; void main() { clrscr(); dom add, mult,diff,div; cout<<"\n+"; ...

C++ Program to find the sum of matrices

We input two sets of matrices and the output is obtained simply adding the curresponding elements of the matrices. A game of simple logic. Program: //matrix #include<iostream.h> #include<conio.h> class dom { int m,n,i,j,a[3][3],b[3][3],c[3][3]; public: void get(); void check(); void disp(); }; void dom::get() { cout<<"enter the order of matrix\n"; cin>>m>>n; cout<<"enter the elements of first matrix\n"; for(i=0;i<m;i++) for(j=0;j<n;j++) cin>>a[i][j]; cout<<"enter the elements of second matrix\n"; for(i=0;i<m;i++) for(j=0;j<n;j++) cin>>b[i][j]; }; void dom::check() { for(i=0;i<m;i++) for(j=0;j<n;j++) c[i][j]=a[i][j]+b[i][j]; }; void dom::disp() { cout<<"the sum of matrix is \n"; for(i=0;i<m;i++) { for(j=0;j<n;j++) { cout<<"\t"<<c[i][j]; } cout<<"\n"; } } void main() { clrscr(); dom...

A program closely resembles to the one used by Adobe Reader

Ultimately, this is a program for searching strings. This program enables us to give a key string to be searched in given set of sentences. The output will be the position at which the given string is present. This can be improved in the C++ platform to exactly mention the string as selected.  //A Search program closely resembles to the one used by Adobe Reader. #include<stdio.h> #include<conio.h> #include<iostream.h> #include<string.h> class para { public: char ckey,skey[10],sent[40]; int i; void get() { cout<<"Type the paragraph of maximum 40 characters, press enter to finish:\n------------------------"<<endl; gets(sent); cout<<"---------------------------------------------\nput the letter to be searched:"; cin>>ckey; cout<<"type the string to be searched:"; gets(skey); cout<<"processing...\n"; } void check(); }; void para::check() { int l=strlen(sent); c...