Saturday, 30 November 2013
Science Podium: Your First Simple JAVA GUI Application
Science Podium: Your First Simple JAVA GUI Application: Hi Fellows, here i'm going to create a simple JAVA based GUI Application Retail Price Calculator . I hope if you follow this example y...
Saturday, 5 October 2013
Your First Simple JAVA GUI Application
Hi Fellows, here i'm going to create a simple JAVA based GUI Application
Retail Price Calculator. I hope if you follow this example you'll able to create your own Simple JAVA GUI Applications:
Tools you need:
1. Eclipse IDE (Integrated Development Envoirnment) can be downloaded Here
2. JVM (JAVA Virtual Machine) should be installed on your PC.
Skills you need:
1. Basic Understanding of Creation of JAVA GUI Application for this i recommend this Book of Tony Gaddis "Starting Out With JAVA: From Control Structure through Objects". Currently its 5th edition is available for sale Here . But for students i have found a free version which you can feely download from Here. :)
I'm here going to give you solution of very simple Programming Problem
"Retail Price Calculator". First Understand the problem definition mentioned below use your concepts from the book i recommended you and try to make your own solution. If you have any problem then take help from my solution code. :)
Problem Definition:
Create a GUI application where the user enters the wholesale cost of an item and its markup
percentage into text fields. (For example, if an items wholesale cost is $5 and its markup percentage is 100 percent* then its retail price is $10.) The application should have a button
that displays the item's retail price when clicked.
Possible Interface:
Retail Price Calculator. I hope if you follow this example you'll able to create your own Simple JAVA GUI Applications:
Tools you need:
1. Eclipse IDE (Integrated Development Envoirnment) can be downloaded Here
2. JVM (JAVA Virtual Machine) should be installed on your PC.
Skills you need:
1. Basic Understanding of Creation of JAVA GUI Application for this i recommend this Book of Tony Gaddis "Starting Out With JAVA: From Control Structure through Objects". Currently its 5th edition is available for sale Here . But for students i have found a free version which you can feely download from Here. :)
I'm here going to give you solution of very simple Programming Problem
"Retail Price Calculator". First Understand the problem definition mentioned below use your concepts from the book i recommended you and try to make your own solution. If you have any problem then take help from my solution code. :)
Problem Definition:
Create a GUI application where the user enters the wholesale cost of an item and its markup
percentage into text fields. (For example, if an items wholesale cost is $5 and its markup percentage is 100 percent* then its retail price is $10.) The application should have a button
that displays the item's retail price when clicked.
Possible Interface:
Solution Code:
I'll recommend that first you try to solve the above problem by yourself then if needed take help from my Code.. :) Here is the Solution (.rar).
Finally, i will say thank you for visiting my web blog, I'll be very happy if you give your comments and suggestions for further improvements. Thank You!
Regards,
Mudassar Malik
C#.NET Project (Personal Windows Control Panel)
Hi, everyone..
This is my Personal Windows Control Panel which i created with C#. As clear from picture it has many useful features. I'm providing here link to source code, and Executable file.
Code is simple to understand, i just created windows processes in C# Form Application with Visual Studio 2010 and every button click performed required functionality. I would appreciate your comments and suggestion for improvement. Thank You!
Regards,
Mudassar Malik
Link:
Source Code and Executable: (.rar)
This is my Personal Windows Control Panel which i created with C#. As clear from picture it has many useful features. I'm providing here link to source code, and Executable file.
Code is simple to understand, i just created windows processes in C# Form Application with Visual Studio 2010 and every button click performed required functionality. I would appreciate your comments and suggestion for improvement. Thank You!
Regards,
Mudassar Malik
Source Code and Executable: (.rar)
Thursday, 31 January 2013
C++ Project (Bubble Sort)
Following C++ Program Sorts Characters in Ascending Order......
I also Used Templates, it will help you alot....
Regards,
Mudassar Malik
Here is the code,, Copy it and paste it in C++ editor and Compile....
Don't Forget to practice it....
#include<iostream>
#include<conio.h>
using namespace std;
template<class type>
void Sort(type* arr,int s)
{
type temp;
for(int i=0;i<s-1;i++)
{
for(int j=1;j<s-i;j++)
{
if(arr[j-1]>arr[j])
{
temp=arr[j-1];
arr[j-1]=arr[j];
arr[j]=temp;
}
}
}
}
void main()
{
char *Array;
int Size;
cout<<"Enter Size of Array: ";
cin>>Size;
cout<<endl;
Array=new char[Size];
for(int i=0;i<Size;i++)
{
cout<<"Enter Value: ";
cin>>Array[i];
cout<<endl;
}
cout<<"Unsorted Array: "<<endl;
for(i=0;i<Size;i++)
{
cout<<" "<<Array[i];
}
cout<<endl;
Sort<char>(Array,Size);
cout<<"Sorted Array: "<<endl;
for(i=0;i<Size;i++)
{
cout<<" "<<Array[i];
}
cout<<endl;
getch();
}
I also Used Templates, it will help you alot....
Regards,
Mudassar Malik
Here is the code,, Copy it and paste it in C++ editor and Compile....
Don't Forget to practice it....
#include<iostream>
#include<conio.h>
using namespace std;
template<class type>
void Sort(type* arr,int s)
{
type temp;
for(int i=0;i<s-1;i++)
{
for(int j=1;j<s-i;j++)
{
if(arr[j-1]>arr[j])
{
temp=arr[j-1];
arr[j-1]=arr[j];
arr[j]=temp;
}
}
}
}
void main()
{
char *Array;
int Size;
cout<<"Enter Size of Array: ";
cin>>Size;
cout<<endl;
Array=new char[Size];
for(int i=0;i<Size;i++)
{
cout<<"Enter Value: ";
cin>>Array[i];
cout<<endl;
}
cout<<"Unsorted Array: "<<endl;
for(i=0;i<Size;i++)
{
cout<<" "<<Array[i];
}
cout<<endl;
Sort<char>(Array,Size);
cout<<"Sorted Array: "<<endl;
for(i=0;i<Size;i++)
{
cout<<" "<<Array[i];
}
cout<<endl;
getch();
}
Celluon Laser Projection Keyboard
Compatible OS: iOS 4 and later, Mac OS 10 and later, Android 2.2 and later, Windows XP/Vista/7 and later, and any device with Bluetooth HID support.
1)Bluetooth connection mode
2)Input power: 0.5 - 5 V DC adapter
3)Built-in battery, no external power supply, uses about 150 minutes.
4)Projection keyboard size is about 241 x 106 mm (the macbook keyboard size)
World’s 1st Microchip Pills
——————————-
Bye Bye to all expensive scans, X-rays and other unnecessary tests prescribed by doctors. World’s first microchip pill has been introduced and approved by FDA.
…
…
The microchip is a normal digital chip made up of silicon with traces of magnesium and copper and is no bigger than the size of a normal medicine. Once the microchip is ingested, it gets activated by the digestive fluids of stomach and starts generating electric signals. These signals are received by a battery operated patch on the patient’s skin which forwards the medical information to a mobile app on patient’s consent. The battery operated patch has a life of seven days and in the mean duration, it is responsible for receiving all the inner-body conditions from the microchip.
…
The microchip is a normal digital chip made up of silicon with traces of magnesium and copper and is no bigger than the size of a normal medicine. Once the microchip is ingested, it gets activated by the digestive fluids of stomach and starts generating electric signals. These signals are received by a battery operated patch on the patient’s skin which forwards the medical information to a mobile app on patient’s consent. The battery operated patch has a life of seven days and in the mean duration, it is responsible for receiving all the inner-body conditions from the microchip.
Frozen Smoke
Aerogel, also know as frozen smoke, is the world’s lowest density solid, clocking in at 96% air. If you hold a small piece in your hand, it’s practically impossible to either see or feel, but if you poke it, it’s like styrofoam. It supports up to 4,000 times its own weight and can withstand a direct blast from two pounds of dynamite. It’s also the best insulator in existence!
Tuesday, 29 January 2013
Subscribe to:
Posts (Atom)