LiveWire Network Peer Answers Peer Support Teen Forums Tech Forums College Forums 624 users online 211454 members 1352 active today Advertise Here Sign In
TeenCollegeTechPhotos | Quizzes | LiveSecret | Memberlist | Dictionary | News | FAQ
Member Spotlight
crashdummi7
Cool Things: guitar, soccer
Mood: Lonely
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
5 online / 39 MPM
Fresh Topics
  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic

qbasic
metric conversion
Replies: 3Last Post April 29, 2008 7:44am by jamescoleman
Welcome to LiveWire!
We're Stronger Together.
Join the Community
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 | Days Active: 184
Join to learn more about jamescoleman Michigan, United States | Straight Male | Posts: 1,144 | Points: 2,929
the5e


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

-------
when god gives you lemons you FIND A NEW GOD

6:59 am on April 29, 2008 | Joined: Mar. 2008 | Days Active: 67
Join to learn more about the5e Colorado, United States | Straight Male | Posts: 2,163 | Points: 2,929
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

-------
when god gives you lemons you FIND A NEW GOD


7:04 am on April 29, 2008 | Joined: Mar. 2008 | Days Active: 67
Join to learn more about the5e Colorado, United States | Straight Male | Posts: 2,163 | Points: 2,929
( 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 | Days Active: 184
Join to learn more about jamescoleman Michigan, United States | Straight Male | Posts: 1,144 | Points: 2,929
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