-
Notifications
You must be signed in to change notification settings - Fork 1
Home
CHDollar Programming Language is a modern technology consists of JAVA OOPS, C# OOPS, Behave like CDOLLAR OOPS, GDOLLAR OOPS,used in Remote WebApplication , and Advanced OOPs. It is mainly used as a Remote Webappilication. It is used in case of Billing,Forms ,normal remotewebapplication , CH$-GRAPHICS ,and complex problems.
client-server.but it will post and get objects from server that can be
exchanged through out sessions or between two computers say client and server.
When you enter details using CH$ program that creates a data object
called as .dsn file; that can be exchanged through out sessions.
Difference between webserver and remoteserver means remotserver
has remote-client connection but webserver don't have.
Data flow is unknown using J$ architecture. where as in
webserver and application server like tomcat,JSTAR SERVER,Jboss server, etc; here dataflow is known.
JSTAR webserver is used only for webdesign so we don't focus remoteserver.
In webserver data will be sent between client(browser) and server
is known to users.
so this indicates webserver has no security but remoteserver using J$ architecture
has more security according to research.
Remoteserver uses http + socket connection where as webserver uses only http connection
Remote web application server => webserver + Applicationserver + datasecurity.
So J$ is most advanced in security side. but it has more framework and latest technology
and follows shortest code than any technology and including advanced business and many advantages
over other technologies.
It is concenterated in building and designing Advanced Operating systems. CH$ is invented in GDollar in year 2008. CH stands for GAMMA and dollar stands for money. So we called as GAMMA Technology.
It is Good to create any compilers..and Advanced Operating systems and utilities. It has simpilified code it uses Pointers concept. CH$ also used with C@ and Arrow# in mobile and cloud computing. it is learnable ,easy to use, and let developers to focus only c++ or C# Programming Language CH$ also support CHDOLLARAJAX it can be used to execute .exe files.
It is used to build normal remote webapplication absence of framework in CH$ .
CHDOLLAR has only 1 pillars which is present in SRGX and jittechsection1
a).CH$(simillar to Advanced OOPS with CUTIL and C++ combination) called as CWEB
accepting only .exe and .dll files.
@Remote // to load CHDollar packages // pack will act like namespace { { public void main() { <! CHDOLLAR LOGIC !> } } }
At first Developers write a CH$ program and compile
using javac filename.CH$ it creates filename.CH$.exe file for that.
now execute the file at url as filename.CH$ when you run remoteserver
the .exe output is displayed in browser as a fast manner.
============================================================
How to run remoteserver in windows?
click on CHDOLLARSERVER located at CHDOLLAR folder.
note : default hostname is localhost or ip address.
Why we need remotewebapplication? what is the difference between webapplication and this?
webapplication webpages will not travel around web but remotewebapplication is seen in internet ,mobiles, and all devices.
================================================================================== UNIT -2: a) CHDollar with CDollar
CDOLLARARRAYS
CDollarArrays list1 = new CDollarArrays(string); to add any collection objects to array use add (String) functions and to Display those objects use list1.Display(); Any class that use CDollarArrays you should extends Array in class...
TreeArray = new TreeArray(String); .add(elements); where elements may be string or collections....
LISTOFARRAY
LArray = new LArray(string); .add(elements); The elements may be string or collection elements.
- => ADD ++=> Increment
- => Substract --=> Substract
- => Mulitply / = Division ~ => bitwise unary not operator NOT (!) => flips true values to false and false values to true.
, >>>, and << => IT is used to shift all the bits of a number left or right a Specified number of places... Other Operators
AND => && And operator OR => || OR operator ?: => value =condition ? value1 : value2 (similar to if then else) == => compare two values... = => Assignment operators Equals => Compare two objects
= => Greater than , Greater than equals. < <= => Less than , Less than equal = or != => Equals and not equals
if statements else statements1 if statements1 else if condition1 statement2 .... and soon. SWITCH Statements:
switch (expression) { case value1 : statement1; [break] ................ case valuen: statementn; [break]
If the expression is equals value1 statement1 will be executed. if you use break it comes out of the loop otherwise it continue to execute next statement. The default value at the end is optional. It can be included if there are other values that can be held in your variable but that you haven't checked for elsewhere in the switch statement. THE WHILE LOOP
while ( ) { < Statements block> } Note: if the condition is true the block get executed. otherwise the loop will be continued. THE DO --- WHILE LOOP
do { < Statements block> } while( ) Note: if the condition is true the block get executed. and it is tested at the end of the loop, but not at the beginning. The loop will be continued until it satisfies the condition. biggest reason to be use the do - while loop is that when you need the body of the loop to be run atleast once. FOR LOOP
for ( variable : collection) statement; for eg) If you add integers (1 to 3) to arraylist and if you wish to copy and store it in an integer variable so that you can print the values that is copied from arraylist. Then follow this method of for each statements... for ( int a in ar) { < Block statements >
Break means it break out of loop and continue means it will continue to execute the statements; for eg)
CHDollar structure is another user defined data type available in CDollar programming, which allows you to combine data items of different kinds. using the same memmory location. It also provide an efficient way of using the same memory location for multi-purpose. Thus CHDollar Structures is Equivalent = C progamming Structures and union. and it uses less memmory capacity than any Programming languages. IT is also used to store collections, object ,etc. IT is the most important datastructure implemented by wilmix jemin j. He reduces the demerits of C Programming and Gdollar child is CHDollar. So CHDollar has very beautiful and Advanced Concepts than any Programming Languages.
SYNTAX:
list = (object); list.add(object);
What is Pointers?
Variables that hold memory address are called pointers. Why we mainly use Pointers? Pointers reduces the length and complexity of the program, They increase the execution speed. It holds the memmory addres..
{}<> Pointer<>(intialvalue); for eg) s ="Life is beautiful"; {}<> l Pointer<>(s); The given above statement will store the string "Life is beautiful" in Pointer name l;
Bucket are used to store key,value data, and Generated Random number where datatype may be string ,object ,etc. SYNTAX:
Using Bucket you can also Retrieve the values stored n position. Searching and Insertion is fast than other DTS. Random Indexing is possible. eg) If you store a duplicate value such Random key will be different. It also used to add many values. EXTEND
Extend class is used in CDollar since to provide multiple inheritence about 100000000 classes . Extends class also list values in methods and constructor values. Extend means a Bucket contains List of class and it is also Behave like Bucket. So it is also one of the Advanced concepts in CDollar. SYNTAX:
EXTEND <> list11 = EXTEND <> (STRING); list.KeyAdd(); list.add(); list.RandomAdd(); list.Display(list); Advantages: It is also used to add many values Indexing is possible Value can also be list by index and behave like bucket. It list only the class value and object value. It is stateless. PIPE:
PIPE is used to maintain stateful state. It is used for DataFlow in a Program. We can also add the values, Constructor values of one class and other class and display it. It also list the values from the Bucket.
Pipe <> list11 = Pipe <> (STRING); list.KeyAdd(); list.add(); list.RandomAdd(); list.Display(list); Why we Prefer CDollar for software Field? Used in BILLS, Forms ,Reports,Charts, any software project , GRAPHICS to web etc.
A) CHDollar is the combination of C# , C/C++, and Advanced OOPS. b) CHDollar will only accept the shortest attractive syntax. c) CHDollar also used for construction of any datastructures. d) it is easy to focus ,learn and use. e) It also supports friendly function, pointers , and structures. f) CHDollar support Virtual memmory and garbage collection. g) It is efficient, fast and easy to understand, and it is a OOPS Technology. h) CHDollar is a High level language. i) CHDollar is highly portable language j) Using CHDollar you can create any datastructures as libraries and use it in your Application program. k) CHDollar language is a structured and object programming language. l) CHDollar has OOPS concepts like JAVA. m) CHDollar have the concept of Packages,etc. n) CHDollar have the concept of constructor or destructor and had magic oops concepts. o) It Support functions with Default Arguments q) It Supports Exception handling r) It have pointer and Nodes.. s) CHDollar is much simpler oops concepts, which leads to faster development and less mental overhead. t) CHDollar is almost always explicitly compiled u) CHDollar is easy to learn. CHDollar was designed to be easy to use and is therefore easy to write,compile, debug, and learn than other programming languages. CHDollar is object-oriented. This allows you to create modular programs and reusable code.
v) CHDollar creates .class, .exe or .dll files and it can be used with CHDollar main program.
w) CHDollar will compile and run at same time where other technology can't
do
x) CHDollar is mainly used in complex programming , Billing the
goods,Graphics,etc
y) CHDollar is used with OAKJAVA
z) CHDollar has Advanced OOPS like CDollar , and GDollar.
AA) CHDollar is an interactive Technology.
BB) CHDOLLAR is used as a remote webapplication
A) A C /C++ Programmer or any oops developer or C# programmer
can easily study it....
======================================================================== UNIT -3 :CHDOLLAR Program Syntax AND ADVANCED CONCEPTS PROGRAM.
Syntax:
<% { public FLOAT CHDollar-MAIN() {
<! CHDOLLAR LOGIC!>
%>
?>
Bag is the extension of LinkedHashmap and it is the fastest datastructures than Dictionary.
Bag object = new Bag(); object .put(key,value); Functions getValues(key) => it is used to get the values for a particular key get(key,loc) => it is used to get the value stored at a loc (indexing purpose) boolean containsValue(object Value) => To check the value present in bag or not. put(key,value) => it is used to add key and value in Bag remove(key ,value) => It is used to remove key and value.
TreeList simillar to Bucket but store items in tree format.
TreeList list = new TreeList ("BUCKETS"); list.KeyAdd(KEY); list.add(VALUE1); list.RandomAdd(RANDOMNO); list.DisplayO(list,0);
It is the extension of Tree Structure and it can store many values using mask object and we can also retrieve the values stored in mask. Mask m = new Mask(); m.add(multiple values); m.getR(Loc); => Get the values stored in right position m.getL(LOC) => Get the values stored in left position
Creates a tree , puts the data into tree in a fairly balanced way and displays the tree's size and data in a tree by performing an inorder traversal. Heap hob = new Heap(); hob.add(datum); hob = new Heap(key,value1,value2);
Bucktist is similalr to Bucket but it is used to addd two values with one key. Bucktist l = null; l= new Bucktist(key,value1,value2);
Wicket is used to store multiple values using same object with 4 values per key.
Syntax:
Wicket list12; list12=new Wicket(key,v1,v2,v3,v4); list12.Display(); list12.Display(list12,location);
EXAMPLE -1: BAG
MyP <% Programs { public FLOAT CHDollar-MAIN() {
Bag b <NEW> Bag();
b.PUT(1,34); b.PUT(2,444);
(""+b);
%>
?>
CUTIL;MyP { Programs {
public FLOAT CHDollar-MAIN()
{
ar (); for (int i=0;i<=100000;i++) ar.add(i,i);
list1 ("ANIMALS "); list1.add("1 horse"); list1.add("2 pig"); list1.add("3 cow"); list1.add("4 goat"); list1.add("5 chicken");
list1.add("6 ostrich"); list1.Display();
%>
?>
EXAMPLE-3: CREATE AN BOOTLOADER Using CHDOLLAR
MYOS { MYOs { public FLOAT CHDollar-MAIN(){
("HelloWorld for booting MYOS");
%>
?>
EXAMPE-4: POINTERS
MyP { Programs { public FLOAT CHDollar-MAIN() {s="dsdds";
{*} l Pointers (s);
l.add(s);
for (int i = 0; i NOT= l.size(); i = i + 1) {
obj=l.GETKEY(i); (obj);
}
%>
?>
Example-6: EXTEND
MyP
<% Programs <% public FLOAT CHDollar-MAIN()
{
EXTEND list EXTEND("BUCKETS");
list.KeyAdd("1101");
list.add("jemin");
list.RandomAdd();
list.Display(list);
(""+list.DisplayO(list,1));
%>
?>
EXAMPLE-7: HEAP
MyP { Programs { public FLOAT CHDollar-MAIN() {
Heap root Heap("wilmix");
for (int i = 0; i <= 10; i = i + 1) { root.add("item " + i); }
(root.size() ); root.printTree();
%>
?>
Example-8: LArray
MyP { Programs { public FLOAT CHDollar-MAIN() {
LArray root LArray("root");
root.add("wilmix"); root.add("jemin"); root.add("shalom"); root.add("1010"); root.add("101"); root.add("201"); root.add("100000000"); //print the tree's size and contents
root.printTree();
%>
?>
Example-9 : PIPE
MyP
{ Programs { public FLOAT CHDollar-MAIN() {
Pipe list Pipe("BUCKETS");
list.KeyAdd("1101");
list.add("jemin");
list.RandomAdd();
list.Display(list);
(""+list.DisplayO(list,1));
%>
?>
EXAMPLE-10: TREELIST
MyP
{ Programs { public FLOAT CHDollar-MAIN() {
TreeList list TreeList ("BUCKETS");
list.KeyAdd("1101");
list.add("jemin");
list.RandomAdd("1111");
TreeList list2 TreeList("BUCKETS"); list2.KeyAdd("1102");
list2.add("rahul");
list2.RandomAdd("1112");
("DATA="+list.DisplayO(list,0));
("DATA="+list2.DisplayO(list2,0));
%>
?>
Example-11 : MASK
My { Programs { public FLOAT CHDollar-MAIN() {
MASK root MASK("wilmix");
for (int i = 0; i NOT= 10; i = i + 1) { root.add("item " + i); }
root MASK("root1",1211211,54441);
root MASK("root2",121121,5444); root MASK("root5",99121888,"5");
root MASK("root3",12112,544);
root MASK("root4",1211,54);
root MASK("root51",121,5);
root.printTree();
%>
?>
Example-12 : WICKET
MyPo { Programs { public FLOAT CHDollar-MAIN() { Wicket list12; list12 Wicket(1000,10002,43433,4343,5555451); list12 Wicket(10001,100021,434331,4343,5555452); list12 Wicket(10002,100022,434332,4343,5555453); list12 Wicket(10003,100023,434333,4343,5555454); list12 Wicket(10004,100024,434334,4343,5555455); list12 Wicket(10005,100025,434335,4343,5555456);
list12.Display(list12);
("DATA="+list12.DisplayO(list12,0));
%>
?>
Example-13 : STRUCTURE
MyPoi { Programs { public FLOAT CHDollar-MAIN() {
s="dsdds";
{*} l Pointers(s);
l.add(s);
for (int i = 0; i NOT= l.size(); i = i + 1) {
obj=l.GETKEY(i); (obj);
}
list (l.GETKEY(0));
for (int i11 = 0; i11 NOT= list.size(); i11 = i11 + 1) {
el=list.ret(i11);
("SNO= "+el);
}
%>
?>
Example-14 : BUCKETIST
bucketist.java
MyP { Programs { public FLOAT CHDollar-MAIN() {
Bucketist bp Bucketist("wilmix");
bp Bucketist(1,222,434); bp Bucketist(1,222,434);
bp.Display(bp);
("DATA="+bp.DisplayO(bp,1));
%>
?>
Note: This CHDOLLAR - Tutorial- EXERCISES is a Practical Exercises for CDollar Programmers we can use CHDOLLAR-LIB DLL in CHDollar program
================================================================================== UNIT:4 : CHDOLLARJAVA , CHDOLLAR with WDBA DB
CHDOLLARJAVAC compiler is to compile .CH$ file and produces .exe and .dll which can be reused by other CH$ program. CHDollar-JAVA which is used to run .exe files.
================================================================
UNIT-5: CH$ Remote Webpage Syntax
===============================================================
SYNTAX to execute executable files by remoteserver:
Compile using javac filename.CH$ will create filename.CH$.exe
Rename .exe files as filename.CH$.exe
and execute filename.CH$ in browser the .exe output will be displayed
in the browser.
armg=SPLITREQUEST.RESULT(arraylistobject,"arraylist.dsn",howmanyGUI,incrementor);
it is used to get the value from WeBGui like text box ,etc.
HTML.displayhtml("filename.html") => it is used to print the html form contents
in the webpage. and it is used in CHDOLLAR-AJAX.
Print.Println(datatype,datatype) for CH$ program.
MY FIRST CH$ PROGRAM
@Remote p { MyArray { public void main() { int [] n = new int[15]; /* n is an array of 15 integers */ int i,j;
ArrayList ar = new ArrayList();
/* initialize elements of array n */
for ( i = 0; i < 15; i++ )
{
n[ i ] = i + 100;
ar.add(i,n[i]);
}
/* output each array elements value */
for (j = 0; j < 15; j++ )
{
Print.Println(""+j,""+ar.get(j).ToString()); // To String to convert object to String.
}
}
} }
now compile using javac wil.CH$
what happens?
It produces the .exe file wil.CH$.exe.
TS <% Y { public FLOAT CHDollar-MAIN() {
BOOK u BOOK("Wilmix");
for (int i=0;i<=100;i++) u.add("col"+i);//add the values to book
for (int i=0;i<=100;i++) (""+u.ret(i));// print the book values
%>
?>
HierachialTree <% roots { public FLOAT CHDollar-MAIN() {
Bag tree Bag();
Bag Member Bag();
//add a,b,c,d to class5 section and class6 to class6 section
Member.PUT("A","CLASS5"); Member.PUT("B","CLASS5"); Member.PUT("C","CLASS5"); Member.PUT("D","CLASS5"); Member.PUT("CLASS6","CLASS6");
//add s1,s2,s11,s21,s12,s22 slibings.
Bag slibings Bag(); slibings.PUT("A","s1"); slibings.PUT("A","s2"); slibings.PUT("B","s11"); slibings.PUT("B","s21"); slibings.PUT("C","s12"); slibings.PUT("C","s22");
//add cricket,read,swin to activities..
Bag activity Bag(); activity.PUT("s1","cricket"); activity.PUT("s2","read"); activity.PUT("s21","swim"); activity.PUT("s12","swim"); tree.PUT(1,Member); tree.PUT(2,slibings); tree.PUT(3,activity);
activity.remove("s1","cricket"); //remove cricket activity tree.remove(3,activity); //remove activity object tree.PUT(3,activity); //again put the activity to 3 index
//so what will be the output?
("output="+tree.containsValue(Member)); //this print statement will print output=true
//this print statement will print tree values ("output="+tree);
%>
?>
on compilation with CWE EDITOR
will create tre.exe file for futhure use...
and rename it as tre.CH$.exe and execute it in browser.
Write a remote webpage program for that?
b)CH$ remote webpage using BOOK dts
TS <% Y { public FLOAT CHDollar-MAIN() {
BOOK u BOOK("Wilmix");
for (int i=0;i<=100;i++) u.add("col"+i);
for (int i=0;i<=100;i++) (""+u.ret(i));
%>
?>
follow the same procedure as i said above..
and create a remotewebpage for that.....
c) Create a CH$ using wnosql db
CDollar.WDBA;
WDBA;
TSwdba <% Ywdba { public FLOAT CHDollar-MAIN() {
string g = WDBASQL.WDBASQLS("datastores", "USEDATABASE", "dbpwds", "C:\Prog\WNOSQ\WNOSQL\WNOSQL-cod"); //path where .wdba serverer files is stored
string t = WDBASQL.WDBASQLS("dbuser", "dbpwds", 1, "wilmix78", "wilmix78", 1, 5, g);
//supply username and password
string s11 = "RIGHTJOIN from student 0 to 1 , 1 to 4 ?= emp For X f(x) : {0,1,2,3,4,5,6,7,8,9,10,11} : {0,1,2,3,4,5,6,7,8,9,10,11} : {0}";
//perform right join between student and employee
string s1 = "SelectAll from student 0 to 1 , 1 to 4 ?= XXX By X f(x) : {0,1,2}: {3,4,5} :{2,4}";
//select * from stodent from 0 to 1
<PRINTLN>(""+SQL.WDBAQUERY( s1, t));
//print the select(*) Query ("" + SQL.WDBAQUERY(s11, t)); //Print rightjoin query
%>
?>
compile using CWE EDITOR and create wdba.exe
and rename as wdba.CH$.exe and
put it in CH$/bin directory
and rename it as abc6.CH$.exe and execute it in browser.
CH$ AJAX ,CH$ Forms , Bills,etc,Animation and Graphics
==================================================================================
Print.Println("string"," "); this above statement will print the string on the webpage will act like chdollar servlet
Print.Println("
",""); if BILL.CH$ is the current CH$ program when you give method=post and action=CH$ it will act like CH$ AJAX.WXML.wxmlr("filename.wxml", wxmlindex,string+"");
for example) WXML.wxmlr("bill.wxml", 4,s3+""); => this statement is used to print bill , Forms,TABLES.
4=> indicates bill format 1=> indicates Forms 2=> indicates TABLES
CHDOLLAR MVC is userdefined it is very easy for developers to focus like struts. take 3 class Model(wdba database code) , formview (with set and get methods), controller .
call controller class result to CH$ main program
ie)
public void main() {
String name= ///parametervalue //this statements are mandaltory eg)
//to get the value from WeBGui like text box ,etc.
controller.set(name); //set form values. CHDollar.out.println(controller.get()); //this statement will print the output in webpage }
Image to use:
Canvas to fill:
Your browser does not support the HTML5 canvas tag.Try it
<script> function myCanvas() { var c = document.getElementById("myCanvas"); var ctx = c.getContext("2d"); var img = document.getElementById("scream"); ctx.drawImage(img,10,10); } </script>p { graphics { public void main() {
HTML.displayhtml("html1.html");
}
} }
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> <script> $(document).ready(function(){ $("button").click(function(){ var div = $("div"); div.animate({left: '500px'}, "slow"); div.animate({fontSize: '3em'}, "slow"); }); }); </script>Start
p { MyArray { public void main() {
HTML.displayhtml("animate.html"); }
}
}
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>p { MyArray { public void main() {
HTML.displayhtml("ang.html"); }
}
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>p { MyArray { public void main() {
HTML.displayhtml("bootstrap.html"); }
}
}
What is the directory structure for CH$?
Note:
The Necessary files needed for CHDollar is chdollar -javac , chdollar -java
and CWEEditor -cdrun to execute .exe files and create .dll files.
CHDollar P.L is designed so that C# Professionals ,C/C++ can easily follow it.
p { index { public void main() {
HTML.displayhtml("Register.html");
}
} }
Register.html
<title>GCLOUDOS USER REGISTRATION</title> <div id="chaptersAccordion">
<h2><a href="#chapter1">Enter your System Details</a></h2>
<div>
Enter the Name:
Enter your Username :
Enter the password :
</div>
Write a Oak java for Jquerytest as we see this same example in JSTAR.
rename it as Jquerytest.CH$.exe
and execute in browser.
==============================
p { index1 { public void main() {
HTML.displayhtml("Eregister.html");
}
} }
<title> USER REGISTRATION</title> <div id="pageContent">
<div id="chaptersAccordion">
<h2><a href="#chapter1">Enter your EMP Details</a></h2>
<div>
Enter the Name:
Enter your Username :
Enter the password :
</div>
Write a Oak java for Program8 as we see this same example in JSTAR.
rename it as Program8.CH$.exe
and execute in browser.
==============================================
use wdba.exe and rename it as wdba.CH$.exe
and now excecute in browser as shown below...
=====================================================================
CHDollar is a wide topic focused only on
Proxy Remote Webapplication with TYPE-2 (CLient and Server)...
There are 4 modules present in CHDollar...
=> CHDOLLAR
=> CHDOLLAR-JSTAR
=> CHDOLLAR-JWP
=> CHDOLLAR with JDollar(JWEB) Technology...
=> It is used with C# and Arrow# - Manufacturing and statistics domain
CH$ is used in variety of remote webapplication like ATM banking, biometric,
Reservation like bus,train,cinema ticket,etc.
Suppose a banking customer want to update his account
in banking website.. That data or information is stolen hackers when you use any today webservers..
SO CHDollar is used for security side for banking and finance domain
Since we already know the fact that if you use .exe or .dbs file in CHDollar then
it will be more safe..
So CHDollar is focused ....
When you host Jdollar or Chdollar Servers in any of your today
available hosting provider. You can see Jdollar or Chdollar website at any mobile phones
or at internet. but there is no need to reveal your information to google...
SO Hosting is mandaltory for CHDollar p.L and Jdollar p.l to publish the webpages.
=========================================END OF CHDOLLAR TUTORIAL===========================================