Sunday 18 January 2015

what you can do with a Language - Java

                                                            YES I CAN DO IT  


It would be so nice if all this complexity was free, but unfortunately, it isn't.
Someone has to think hard and decide exactly what to ask the computer to
do. After that thinking, someone has to write a set of instructions for the
computer to follow.

Given the current state of affairs, you can’t write these instructions in English
or any other language that people speak. Science fiction is filled with stories
about people who say simple things to robots and get back disastrous, unexpected
results. English and other such languages are unsuitable for communication
with computers for several reasons:



✓ An English sentence can be misinterpreted. “Chew one tablet three
times a day until finished.”
✓ It’s difficult to weave a very complicated command in English. “Join
flange A to protuberance B, making sure to connect only the outermost
lip of flange A to the larger end of the protuberance B, while joining the
middle and inner lips of flange A to grommet C.”
✓ An English sentence has lots of extra baggage. “Sentence has
unneeded words.”
✓ English is difficult to interpret.



class PayBarry {


public static void main(String args[]) {
double checkAmount = 1257.63;
System.out.print(“Pay to the order of “);
System.out.print(“Dr. Barry Burd “);
System.out.print(“$”);
System.out.println(checkAmount);

         }


}


No comments:

Post a Comment