LiveWire Network Peer Answers Peer Support Teen Forums Tech Forums College Forums 444 users online 225619 members 198 active today Advertise Here Sign In
TeenCollegeTechPhotos | Quizzes | LiveSecret | Memberlist | Dictionary | News | FAQ
Member Spotlight
feeltheshane
You'll always be beautiful in my eyes.
Mood: Frustrated
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
1 online / 79 MPM
Fresh Topics
  LiveWire / Technical Forums / Programming & Application Development / Adding Reply

Adding Reply
Archived Topic: It will not be bumped to the top of the forum.
Topic qbasic
Membername   Not a member? Sign Up Free (takes 20 seconds)
Password   Forgotten your password?
Post

Font:   Size:   Color:

FAQ Keyword Search:
Post Options
Favorites Manager
Notify me of new replies to this topic by email
Notify me of new replies to this topic by private message
Original Post
jamescoleman Posted at 6:58 am on April 29, 2008
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....

Replies
jamescoleman Posted at 7:44 am on April 29, 2008
i wouldn't even understand the c++ pseudocode. lol but i can try
the5e Posted at 7:04 am on April 29, 2008
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


the5e Posted at 6:59 am on April 29, 2008
if it's anything like C++ I can probably help you out
All 3 previous replies displayed.