Many of my friends at University has request me to post the homework code of Vb.net that I have done on my blog. and here the simple Vb.net Console Application that i’m learning at University. So I hope that younger or older brother that learning in IT can see the simple code and correct or implement it together.
-The Code are focus on how to use “ IF Condition” and “ Do Loop” .
Here is the Rounding Currency Code In VB.net Console Application
Module Module1
Sub Main()
Dim ROUND As Double
Dim amount As Double
Dim selected As Integer
Dim modulus As Double
Dim yesno As StringDo
Console.Clear()
Console.WriteLine(“ Rounding Currency Table” )
Console.WriteLine(“ 1.RIEL” )
Console.WriteLine(“ 2.USD” )
Console.WriteLine(“ 3.EURO” )
Console.WriteLine(“ 4.POUND” )
Console.WriteLine(“ Please Select the Currency” )
selected = Console.ReadLineIf (selected = 1) Then
Console.Clear()
Console.WriteLine(“ 1.RIEL” )
Console.WriteLine(“ Input Amount:” )
amount = Console.ReadLine
modulus = amount Mod 100If (modulus = 50) Then
ROUND = amount
ElseIf (modulus > 50) Then
ROUND = (amount – modulus) + 100
ElseIf (modulus < 50) Then
ROUND = amount – modulus
End If
Console.WriteLine(“ Rounded Amount={0}Riel” , ROUND)
ElseIf (selected = 2) Then
Console.Clear()
Console.WriteLine(“ 2.USD” )
Console.WriteLine(“ Input Amount” )
amount = Console.ReadLine
Console.WriteLine(“ Rounded Amount={0} USD” , amount)
ElseIf (selected = 3) Then
Console.Clear()
Console.WriteLine(“ 3.EURO” )
Console.WriteLine(“ Input Amount” )
amount = Console.ReadLine
Console.WriteLine(“ Rounded Amount={0} EURO” , amount)
ElseIf (selected = 4) Then
Console.Clear()
Console.WriteLine(“ 4.POUND” )
Console.WriteLine(“ Input Amount” )
amount = Console.ReadLine
Console.WriteLine(“ Rounded Amount={0} POUND” , amount)
Else
Console.WriteLine(“ Wrong Selection” )
End If
Console.WriteLine(“ Do you want to continue (Y|N)? “ )
yesno = Console.ReadLineLoop Until (yesno = “ n” )
End Sub
End Module
If you have any problem of running the program or need to ask inside code, please fill free to ask me. I might be available from my best tried.






និយាយអីចឹង ខ្ញុំចង់បានកម្មវិធី Vb.net នឹង vb.6 ប្រសិនជាលោកដឹងកន្លែងណា អាចដោនឡូដ free កម្មវិធីទាំងនេះបាន សូមជួយប្រាប់ផង៕
Posoky
បងអាចទាញយក Visual Studio 2008 គ្រាន់តែវាមានទំហំ ធំតិច រហូតដល់ទៅ 3.3 Gb ឯណោះ ។
បងអាចសាកល្បងទាញយកវាតាមរយះ Torrent ខាងក្រោម :
http://thepiratebay.org/torrent/4088718
Thank you guy, hmm anyway I don’t know the instruction how to download from Torrent too
If you wanna download software from Torrent you also have to upload something from your computer. That is a very dangerous because you might loss some important data.
For me, I choose to download software from Rapidshare or Megaupload. If you want to find software to download just type : Rapidshare (softwarename) in google search box than you might be able to find the link to download.
That right. If you decide to get something illegal, You have to be facing with something illegal on you back.
Rapidshare allow you download one file(100Mb) per day. Sometime after few day pass it still say “ your IP Address just download some file from it…” so you can not download.
Rapidshare is Secure but Take time. if you want to get it fast, I recommence you use Bit Torrent to download , Because the speed is depending on the number of seeder and leecher.
@Posoky: you just go to http://www.bittorrent.com/btusers/download/? to download and install on your computer . Then double click on the torrent file that you’ve just got from http://thepiratebay.org/torrent/4088718 –> Then choose the location to store to file.
Let it …! wait for one or two night. you will get it.
Thank guy, not very difficult.
it just a simple console application we learning at University Year 2 in Cambodia.