LiveWire Network Peer Answers Peer Support Teen Forums Tech Forums College Forums 619 users online 157502 members 2364 active today Advertise Here Sign In
TeenCollegeTechPhotos | Quizzes | LiveSecret | Video | Dictionary | News | FAQ
You have 1 new message.
Emergency Help
Until you sign up you can't do much. Yes, it's free.

Sign Up Now
Membername:
Password:
Already have an account?
Invite Friends
Active Members
Groups
Contests
Moderators
6 online / 20 MPM
Fresh Topics
  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic

qbasic
metric conversion
Replies: 3Last Post April 29 7:44am by jamescoleman
Single page for this topic Email Print Favorite
( jamescoleman )


Dairy Product Addict
Reply
so i have to write a program on metric to imperial conversion in qbasic. i'm having alot of trouble trying to do this. i'm not gonna cheat or anything but i just need a very good point in the correct direction in doing this.  
i know qbasic is old....

6:58 am on April 29, 2008 | Joined Feb. 2008 | 66 Days Active
Join to learn more about jamescoleman Michigan, United States | Straight Male | 619 Posts | 1284 Points
the5e


Dairy Product Addict
Reply
if it's anything like C++ I can probably help you out

-------
my signature is awesome

6:59 am on April 29, 2008 | Joined Mar. 2008 | 39 Days Active
Join to learn more about the5e Colorado, United States | Straight Male | 1400 Posts | 1858 Points
the5e


Dairy Product Addict
Reply
basicly though, it's easy: Written in C++ pseudocode (you can get the idea):

float unconvertedVar = 0;
float convertedVar = 0;
string typeOfConversion;

(type in) unconvertedVar;
(type in) typeOfConversion;

if (typeOfConversion == "inches to feet") //this is just an example
{
convertedVar = unconvertedVar / 12;
}

(print out) convertedVar; //output variable


Post edited at 7:09 am on April 29, 2008 by the5e

-------
my signature is awesome


7:04 am on April 29, 2008 | Joined Mar. 2008 | 39 Days Active
Join to learn more about the5e Colorado, United States | Straight Male | 1400 Posts | 1858 Points
( jamescoleman )


Dairy Product Addict
Reply
i wouldn't even understand the c++ pseudocode. lol but i can try

7:44 am on April 29, 2008 | Joined Feb. 2008 | 66 Days Active
Join to learn more about jamescoleman Michigan, United States | Straight Male | 619 Posts | 1284 Points
Single page for this topic Email Print Favorite

Quick Reply

You are signed in as our guest.

Looking for something else?
 

  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic