LiveWire Network Peer Answers Peer Support Teen Forums Tech Forums College Forums 431 users online 223920 members 513 active today Advertise Here Sign In
TeenCollegeTechPhotos | Quizzes | LiveSecret | Memberlist | Dictionary | News | FAQ
Member Spotlight
mountain hare
I haven't filled out my profile...
Mood: Disturbed
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
4 online / 16 MPM
Fresh Topics
  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic

Code Help
Replies: 3Last Post Nov. 6, 2006 6:19pm by Whuppee
Welcome to LiveWire!
We're Stronger Together.
Join the Community
Single page for this topic Email Print Favorite
( ESimon1 )


Grasshopper
Reply
ok, im a little lost on how to write this code out. im suppose to ask the user to input "air" "water" or "steel".. heres the question

Medius     Speed
Air          1100 feet per second
Water      4900 feet per second
Steeler     16,400 feet per second

now i have to write a program that ask the user to enter "air" "water" or "steel" and the distance that a sound wave wil travel in the medium. The program should then display the amount of time it will takes and calculate the amount of time it takes sound to travel in air with the following formula.
   Time=distance/1100

you can calculate the amount of time it takes sound to travel in steel with the following formula
    Time = distance/4900


anyone here knows how to do this?


12:34 pm on Nov. 6, 2006 | Joined: Nov. 2006 | Days Active: 3
Join to learn more about ESimon1 United States | Posts: 7 | Points: 37
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