The Theory of Nothing

By jeshi99

144K 8.5K 5.8K

These are my thoughts on some philosophical issues that are pertinent to Science Fiction in particular and ma... More

Can there be nothing?
Is the universe finite?
Are there other intelligent species out there?
What would an extraterrestrial look like?
Will we ever go to the stars?
What would it be like to make a first contact?
What the heck is a God particle?
Is there a creator?
What is the creator like?
Do we have souls?
When did the Earth have oceans and continents?
Is there an afterlife?
Is the human race diverse?
What's so special about the sun?
How does resurrection work?
Is there a Heaven and Hell?
Is Santa Claus real?
What's down with gravity?
Is Global Warming real?
What's up with all these Biblical conspiracies?
Are UFO's real?
Is the Earth going to be destroyed by a global calamity?
How do atoms form molecules necessary for life?
Is the Devil real?
What's up with quantum physics?
Could a Star Trek transporter work?
What had to take place in order for us to exist?
Will there be a Zombie Apocalypse?
What will our future be like?
What the heck is the Fermi Paradox?
Why are there so many different species on Earth?
Are animals smarter than we think they are?
Why did the Book of Genesis pick on the serpent?
Did Al Gore invent the Internet?
Is time real or an illusion?
Why do we suffer pain?
What the heck is an aura?
Why are scientists so fascinated with light?
What the heck does 'Spooky action at a distance' mean?
How have plastics changed the world?
How did the vacuum tube change the world?
What the heck is the fragile-X syndrome?
Was Jesus a real person?
How do electrons work?
How did the transistor change the world?
How does a computer work?
How does a digital camera work?
Will dogs go to heaven?
How has the integrated circuit changed the world?
How did humans evolve?
Are vampires possible?
How do viruses work?
Is genetic engineering ethical?
What does random mean?
What is quantum gravity?
How does GPS work?
What would aliens look like?
What is this thing we call Love?
How does God talk to us?
How good is virtual reality?
How fast are we going?
What are dreams made of?
Are werewolves possible?
Is the Bermuda Triangle responsible for paranormal events?
What happened to the Ark of the Covenant?
What about dragons?
What makes chemicals react?
How do videos work?
How do rockets work?
Are we humans destined to be like God?
Will science extend human lifespan?
Could humans evolve to have super powers?
How does an ion thruster rocket work?
Are there more than five senses?
Why do humans resort to war?
Is reality real?
What is the ultimate fate of the universe?
How does carbon dating work?
Could science create a dinosaur?
Will we ever harness fusion?
Why do humans have emotion?
How will we deal with overpopulation?
Could a Star Trek Phaser actually work?
What causes weather?
Why are there so many different languages?
How could a universal translator work?
Is time travel possible?
How were metals created?
Is the Yeti (Big Foot) real?
Are parallel universes real?
What the heck is a moon pigeon?
Is the Loch Ness Monster real?
Could a Frankenstein monster be created?
What is artificial intelligence?
How many dimensions are there?
Will robots take over?
What's going to happen to our sun?
What will happen to our galaxy?
Where is the Illuminati?
How do we hear sounds?
Why do we listen to music?
What's inside the Earth?
Where did the imagery for the Book of Revelation come from?
What is Opus Dei?
Are mermaids real?
How do plants produce oxygen?
What are the consequences of the speed of light?
How do we see colors?
How do muscles work?
What the heck are Buckyballs?
What the heck is a Magnestar?
Why are there so many nebulas out there?
What is so important about absolute zero?
What happens during vigerous chemical reactions?
What is instinct?
How is CGI created?
How are video games created?
What are electron shells?
What is truth?
What is entropy?
How do crystals form?
How is sex determined?
What is the specter of the gun?
Is Mental telepathy possible?
What about magic?
What the heck is existentialism?
What kind of planets would intelligent aliens live on?
Why do the planets rotate and orbit the sun?
What the heck is a quasar?
How are astronomers detecting planets around distant stars?
Could the human brain be expanded?
How did physicists detect the neutrino?
What the heck is dark matter?
What exactly does baptism do?
What the heck is a pulsar?
What the heck is dark energy?
What about déjà vu?
How do antibiotics work?
How did Christianity get spread around so fast?
How do metal detectors work?
How many galaxies are out there?
Is Zayn Malik still in One Direction?
How do we use statistics?
How does logic work?
What good is calculus?
What is glass?
How do LED's and LCD's differ?
What will we ultimately find on Mars?
How do vinyl records, CD's and DVD's work?
What is our place in the universe?
How does radar work?
How does the cellular phone work?
How does magnetism work?
How do printers work?
Are plants sensitive to our emotions?
How did Saturn get rings?
Is a habitable moon like Pandora possible?
How do lenses work?
What the heck is string theory?
How will we understand an alien radio transmission?
What is the astral plane?
How do X-rays work?
What the heck is a VOC?
How does an invisible fence work?
How does a spacesuit work?
How do barcodes work?
How do we measure temperature?
What exactly does supernatural mean?
How does friction work?
What the heck is Brane Theory?
Is the end near?
How do proteins work in our diet?
How does Wi-Fi work?
How does tidal force work?
What do extraterrestrial planets look like?
What about supernovae?
How does ethics work?
What the heck are star clusters?
What's inside a black hole?
What the heck is b-mode polarization?
What about astrology?
What the heck is plate tectonics?
What does the Hadron Collider do?
What is a supermassive black hole?
How does mitosis work?
Brain, what brain?
What is empathy?
How has beer saved humanity?
What about right brain-left brain?
What is superconductivity?
What exactly is an accident?
How does a sunscreen work?
What the heck are nanotubes?
What is a Cepheid variable?
What's up with Marijuana?
What is beauty?
Did ancient aliens help humans?
What's inside Jupiter?
This is the end?

What are the elements of computer programming?

256 28 18
By jeshi99

What are the elements of computer programming?

A/N: Computer programming is the latest hot item job career. People who can program are making good money and are in high demand, and the good thing is that you don't need a computer science degree. The trick is to learn programming. There are schools out there that will teach you programming for a price. That's the only drawback, but it's less expensive than a four-year college degree.

I'm writing this to give you an idea about what computer programming is all about. We'll talk about C++ language in this simple essay. C++ is considered an advanced language and it's probably one of the most used these days.

Writing computer programs is like writing a well-designed story. First you need characters. These are called variables in programming. Variables, like characters, come in several flavors. They can be numbers or strings. A number can be either an integer or a real, formally called a floating-point number. Strings are a series of alphabet characters (or alpha numeric symbols) that can contain words. After you define your variables, you need to figure out how these variables are going to interact to determine an outcome. In story writing this is called a plot, and in the case of a computer program this plot has to be logical.

So, here is a simple C++ program designed to compute the cost of a pizza.
First you need to include some routines that are part of the language.

#include <iostream.h> this is a header file (a file of programming statements that goes in front of the main program) that contains routines to input and output stuff. A header file has programming for certain routine tasks that the compiler substitutes for certain program statements as needed.

#include <conio.h>: this is header file that contains routines to operate the console i.e. keyboard and screen.

void main() { this is always the start of the main function in a program. It's a void function, meaning it returns no value. If it were to return a value, the 'void' would be 'int' or 'real' depending on what it would return if called in a subsequent programming line.

The next step is to define the variables -- sort of like a character list for a story.

int NumberOfToppings; This is an integer value

int CostForToppings; This is another integer value

int Cost; Same here

Now that we have the list of variables we need the program to use them.

cout << "How many toppings do you want?

; This function outputs this question to the screen

cin >> NuberOfToppings; This function takes what the operator (the person running the program) types in as number

CostForToppings = NumberOfToppings * 2; This multiplies the Number of toppings by 2

Cost = 10 + CostForToppings; this adds ten to the value from the last line

cout << *Your pizza costs $* << Cost << *

*; This puts the result on the screen.

cout << *

Press any key to end*; The

prints a carriage return and linefeed - move the cursor ( a blinking C: character) down on the screen.

while (!kbhit()); This is a loop that checks for a key press--basically, it waits until a keyboard key is pressed and when that happens the kbhit() function returns a value and any positive value makes the loop stop because the kbhit() return is not zero.

Notice that all programming lines in C++ require a semicolon to indicate the end of the line. The reason for this has to do with the way that a compiler reads the program. A compiler is a complicated computer program that reads through the program as written and interprets what you want it to do. It needs the semicolon to know that it has reached the end of a programming line. Actually, the compiler simply reads the programming file one character at a time and looks for key words and then numerical values. Then, it creates the machine (machine language is a more primitive language dealing with the computer processor chip) code necessary to do whatever the line commands. When it sees a semicolon, it knows that the instructions of that line have ended. As long as the syntax (the commands as arranged in the line - this is like grammar) is okay it will chug along to the end of the file. Otherwise it issues an error report telling the programmer that he or she has goofed.

The compilers ultimate job is to create binary code that a computer needs to run a program. The computer doesn't know English or any other language for that matter. It only understands binary.

The final step in the process is accomplished by what is called a Linker, which essentially links binary code together. The reason it's called a linker is because it links object files from the compiler together to form a single executable file that the operating system can use to run the finished program.

The cornerstone of C++ language is the use of objects. An object is a unit of programming that combines both variables and functions in a single unified object. For example we could make a pizza object (also called a class).

class Pizza {

public: this declares the class to be usable by all other routines

void ChooseSize (); this says that this routine doesn't return a value

void ChooseToppings (); same for this

void PrintOrder(); and this

private: this declares that what follows is only used by the main routine

ToppingList *Toppings; *Toppings is a pointer to the location in memory of the variable ToppingsList.

int Size; declares an integer

float Cost; declares a floating value

}; this marks the end of the class declaration

Of course, you must define what the three routines in the public part of the object do. Pointers are tricks in C++ that make it more efficient to access variables.

As you can see from this very simple program that programming is complicated and requires learning a new very complicated language that doesn't allow syntax errors. It makes you respect what programmers have to do.

Thanks for reading.

Continue Reading

You'll Also Like

3K 610 42
discreption ඉල්ලෙයි. කියවලාම බලන්න. School Love story එකක්.
758K 15.4K 111
Yaszy Romano has been through so much pain and suffering her entire life but it makes her who she is. Dark Angel...Dangerous, Powerful. An Assassin...
6.2K 1.6K 13
"හරි නරකයි ඔහෙ මට ඉන්න දෙන්නැ ඉහි..ඉහි ,අනික මන් ඔහෙගෙ නමවත් දන්නෑ" යෙහස් බිම බලාගෙන කිව්වා.. "මගෙ නම විහංඟ , විහංඟ ප්‍රභාෂ්වර රත්නායක ....කවුරැහරි උ...
154K 18K 54
"කේතු දන්නවද මම කේතුට කොච්චරක් ආදරෙයි කියල ?" "හැමතිස්සෙම වචනෙන් නොකිව්වත් සර්ගෙ ඇස් මගේ ඇස් එක්ක පැටලෙනකොට ඒ දිලිසෙන ඇස්වලින් මට පේනවා සර් මට කොච්...