Sikander Aqeel

VENUS DISTANCE FROM SUN

May 2nd 2016, 11:00 am
Posted by aqeelsika
338 Views

(Liberty Basic in methametical machine of Sikander Aqeel) 

It is simple program of one line of distance of Venus, here second print value is a line of words, third last print is answer, which is equal to rotation of Venus, 

Liberty Basic 4.03 

---------------------------------------------------------------------------------------------

    '-----programing of Solar system

    '-----Venus

 

    open "myfile.dat" for output as #my

    print #my, "hey abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz"

    close #my

 

    open "myfile.dat" for binary as #my

    seek #my, 12

    print #my, "Venus 1074 light seconds away from Sun,"

    seek #my, 12

    print input$(#my, 7+1+0+7+4+5+5+5+5)

    close #my

--------------------------------------------------------------------------------------------

 

Here third input$ print is important to understand 

Here third input$ print = 7+1+0+7+4+5+5+5+5 =  

 

 

    print input$(#my, 7 = Venus 

           Venus = 1074 = light seconds  

                      5 = seconds 

                      5 = away 

                      5 = from 

                      5 = sun, 

                  --------------- + 

                       = 1101 / 4.92 ratio of rotation = 223.78 

                       = 223.75 day rotation of Venus, 

 

 

Bookmark & Share:

Please Like Us
Please Like Us