Computer problems,Computer help
*AX SOFT>>>Programming & Design

Write a SUB procedure in QBasic?


Write a SUB procedure that will recieve a specific number of quarters, dimes, nickles, and pennies, and then translate these coins into a dollar amount . The dollar amount returned to the calling program. For, example for the following values, the dolar amount returned to the calling program would be 2.02: quarters:5;dime:3; and pennies: 7.

public sub Dollar(quarter as int, dime as int, nickel as int, penny as int, Dollars as single)

Dollars = (quarter * 25) + (dime * 10) + (nickel * 5) + penny
dollars = dollars /100
end sub

Tags
  General - Computers & Internet   Software   Security   Programming & Design   Facebook   Flickr   Google   MSN   MySpace
Related information
  • How can I get started with programming?

    Alright, fresh blood. God I miss those days when I was reading through all of the beginner books and tutorials to figure out how to program. Personally I started out with python (See links below)...

  • What sorce did this come from?

    If it's from a digital camera, you can tell very easily. Almost all digital cameras (and camera phones) will append the 'Camera Model' detail to the file. Right-click on the image, g...

  • C programming simple question?

    I'm not sure I understand your question... if you have variables a, b and c, just pass them into your method like this : findRoots(a, b, c); That can't really be your question can ...

  • How to get image links to work?

    Myspace does NOT like outside websites that compete with their own. I had to simply list my yahoo website on the site. There is no way to get around it, because their site filters are set to catc...

  • Hotmail.com?

    the new hotmail thing is now @live.com/ca/ etc.. you can also get some other cool endings like @live.fr,girl.girl, etc google it and you'll find a code that you paste into the address bar th...

  • I have to do a project in java language in my college curriculum...please suggest me any good topic?

    write a program that reads in a serialized sudoku puzzle and prints out the solution. I had to code one of these in college and it was a blast!

    ...
  • Very simple math help in C programming?

    9 3 6 answers are: ivalue1=9 ivalue2=3 ivalue3=6 so first i start from ivalue3,ie easy c compiler precedence first give preference to brackets iValue3 = 3 * (5%3) ; so first 5%3,it ta...

  • Can somebody give me the names of other video uploading sites...?

    Hi, now a days most of the social networking websites come with a video upload facility. I could name a few: rediff ishare hi5 google...there are lots...just browse it or google it!..u would f...

  •  

    Categories--Copyright/IP Policy--Contact Webmaster