Conversion from "feet to inches"to"meter and centimeters"

hi,
i need this answer urgently!!!!
i'm trying to write a java program that reads lenghts in feets and inches(or meters and centimeters(or feet and inches). the program askes the user if he/she wants to convert from "feet to inches" to "meters and centimeters" or from "feet to inches". The program then preforms the desired conversion.having the user respond by typing the integer 1 for one type of conversion and 2 for the other conversion.The program reads the user's answer and then executes an if-else-statement. each branch of the if-else statement will be a function call. Include a loop that lets the user repeat this computation for new input values until the user says he or she wants to end the program. Use as many method that are logically needed. The main method should do as little as possible.

I love these questions - especially the little bits at the end that clearly point out it is a homework question.
As joeldi says, show us that you've had a decent go at it and we'll be more interested in helping out.
Regards,
Tim

Similar Messages

  • Convert from feet to inches?

    Can numbers convert imported data from feet notation (i.e. 3' 6 1/2") to decimal inches (i.e. 42.5)? I'd like to be able to import rough opening dimensions from my internal CAD (Vectorworks 2008) spreadsheet to generate cut lists with numbers. I can manually type in the info, but that is prone to errors. I'm also looking into whether Vectorworks can export the data I want in the proper format.
    Thanks for any help
    - Tobias

    Hello
    Assuming that the values are entered in a column,
    select a group of the cells containing them
    copy to the clipboard
    call the passed script
    paste the result where you want.
    If I forget nothing, it take cares of all combinations:
    3’ 6 1/2
    3’ 6
    3’ 3/4
    6 3/4
    3'
    6
    1/2
    3' 6 1/2
    even blank rows are correctly treated.
    Of course, if the source of the datas give you the same kind of list, you may call the script directly.
    It only requires that Numbers is the frontmost application.
    save the script as an Application or an Application Bundle.
    store it in the folder <yourStartupDisk>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
    Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
    Doing so you will be able to run the script from the System's scripts menu.
    Select the block of feets values
    Copy to clipboard
    Call the script
    Paste the block of converted values where you want.
    Yvan KOENIG
    25 février 2008
    --(SCRIPT feets2inches.app]
    property passed : {}
    set passed to the clipboard
    if passed contains return then
    set my passed to my decoupe(passed, return)
    else
    set my passed to {passed}
    end if
    set tt to ""
    repeat with vv in my passed
    set vv to vv as text
    if vv is "" then
    set tt to tt & return
    else
    set l to my decoupe(vv, " ")
    if (count of l) = 1 then (* 3' or 6 or 1/2 *)
    set l1 to item 1 of l
    if character -1 of l1 is in {"'", "’"} then
    set nn to ((text 1 thru -2 of l1) as integer) * 12
    else if l1 does not contain "/" then
    set nn to l1 as integer
    else
    set {c, d} to my decoupe(l1, "/")
    set nn to c / d
    end if
    else if (count of l) = 2 then (* 3' 6 or 3' 1/2 or 6 1/2 *)
    set {l1, l2} to l
    if (character -1 of l1) is in {"'", "’"} then
    if l2 does not contain "/" then
    set nn to (((text 1 thru -2 of l1) as integer) * 12) + (l2 as integer)
    else
    set {c, d} to my decoupe(l2, "/")
    set nn to (((text 1 thru -2 of l1) as integer) * 12) + (c / d)
    end if
    else
    set {c, d} to my decoupe(l2, "/")
    set nn to (l1 as integer) + (c / d)
    end if
    else (* 3' 6 1/2 *)
    set {c, d} to my decoupe(item 3 of l, "/")
    set nn to (((text 1 thru -2 of item 1 of l) as integer) * 12) + (item 2 of l as integer) + (c / d)
    end if
    set tt to tt & nn & return
    end if
    end repeat
    set the clipboard to tt
    set passed to {}
    on decoupe(t, d)
    local l
    set AppleScript's text item delimiters to d
    set l to text items of t
    set AppleScript's text item delimiters to ""
    return l
    end decoupe
    --[/SCRIPT]
    If it works as you wish, I will put it in my idisk.
    Yvan KOENIG (from FRANCE lundi 25 février 2008 15:57:4)

  • Conversion from cubic centimeter to  cubic meter.

    Hi guru,s
    we hv a KF volume deliverd with CCM unit, when i tried to replace with M3(cubic meter)in Query designer.Its giving blank field in BEx..
    Thanks
    hari

    Could it be that it is all in insignificant decimals?
    For example, 123 CCM = 0.000123 M3, and it will display as 000 (if 3 decimal places are displayed).

  • TS4268 Missing Phone Number at "Start new conversations from"

    How come there is missing of the phone number at the "Start new conversations from:" inside Settings -> Messages -> Send & Receive" and only have the e-mail address but both of the phone number and e-mail address under "You can be reached by iMessage at:", please advise how to add it back ?

    Yes, I have solved it.  You could try to go from Settings -> Messages, turn the iMessage from ON to OFF, then you switch off your iphone and turn it on; go back to Settings -> Messages, change the iMessage from OFF to ON, then switch off your iphone and turn it back on, go to check whether you could see or add back the phone number assoicated with the iMessage.   Good Luck !

  • How do I stop the iMessage conversation from automatically showing when I go into the I message center? I only want the contacts to show down the left side and nothing on the right until I select a conversation to view.

    HOW DO I STOP THE WHOLE IMESSAGE CONVERSATION FROM AUTOMATICALLY SHOWING WHEN I GO INTO IMESSAGE? I only want the contact bar on the left to show and not the whole conversation, until I pick one to see.

    You can't. You can sign out of messages and turn it off, but you can't do what you would like to do. You can send feedback to Apple.
    https://www.apple.com/feedback/ipad.html

  • What is involved in conversion from 8i and 9i or in general .....

    Hi,
    I would like to know what is the process involved in conversion from 8i and 9i or in general from one version to another, especially for the role of technical consultant..
    Any documents or related references that explain the steps to do a successful conversion from a technical applications developers perspective would be great.
    Thanks in advance..

    The counter question would be that how you gonna do migration?
    The other important point would be performance. There are many changes in optimizer behaviour comparetivly to 9i optimizer. metalink has so many references and notes on the same. Searching at metalink would be a good point as well.
    Jaffar

  • I am reading about this conversion from an AOL username to a new Apple ID. Is this legitimate and will I lose access to purchases?

    is this conversion from an AOL username to a new Apple ID legit? Will I lose access to purchases?

    Hi Kellyezvous,
    Thanks for participating in the Apple Support Communities.
    The conversion from AOL Username to Apple ID is legit, and you will not lose access to your iTunes Store purchases as a result of this change.
    For more information, see this Apple Support page:
    Convert your AOL Username to an Apple ID - Apple Support
    You must convert your AOL Username to an Apple ID to maintain access to the stores and to content you purchased previously.
    Apple can't provide support for AOL Username accounts that aren't converted by March 31, 2015. The conversion process applies only to AOL Usernames. You don't need to convert an Apple ID that ends in @aol.com. Also, this transition doesn't affect any AOL services that you use with your AOL Username.
    Cheers,
    Jeremy

  • LR and DNG conversions from NEF

    Just received a batch of Nefs and corresponding dng conversions from a client. I immediately noticed that there was a serious white balance difference between these pairs--LR shows the Nefs at 5600 and the dngs at 7100. Is this typical. I have worked with dngs a few times, but this is the first set of images that I have seen with side by side conversions. Is this typical? Neither the dngs or nefs have been previously edited. I don't normally work with dngs--only when a customer insists.
    Very curious about this WB difference. Any explanations from the color gurus here? TIA

    I was aware that the numbers were relative and would likely be different, but in this case the images are visibly very different--I just gave the numbers to indicate what LR saw them as. When the difference is between 5600 (NEF) and 7100 (dng) one sees a big difference between the cool NEF and the warm dng on the screen. This difference is seen systematically in a batch of about 75 images. LR shows no metadata differences except the WB reading. Could this have resulted from a dng conversion in an older dng converter?

  • Poor raw conversion from Fujifilm X100 .raf format in Lightroom 3 and 4

    I'm seeing very poor results when doing raw conversion from Fujifilm X100 .raf format. Who can I contact about this? Is there anything I can do?
    See below for what is supposed to be a white curtain, lit by stage lighting. It results in a blown out blue channel, serious loss of detail, and very ugly gradient.
    (Lightroom 4.2, Camera Raw 7.2 on LEFT  --- Fujifilm X100 in-camera jpg on RIGHT)
    And for more detail:
    (Lightroom 4.2, Camera Raw 7.2 on TOP  --- Fujifilm X100 in-camera jpg on BOTTOM)
    (Lightroom 4.2, Camera Raw 7.2 on LEFT --- Fujifilm X100 in-camera jpg on RIGHT)

    The blue light is so intense that it is, or almost is, saturating the sensor.
    The camera’s built-in raw conversion handles this by shifting the color to cyan—clipping the blue and allowing the green to contribute more.  I doubt there was cyan lighting in the scene, only blue.
    Adobe does not shift the hue, but this makes the blue seem over saturated.  Adobe’s conversion may be more colorimetrically correct, but less pleasing in this case of intense lighting that the sensor cannot accurately record.
    It is a difference in camera profile used between the camera and Adobe.  Since Adobe does not supply camera-match profiles for much more than Nikon and Canon cameras, you’re not going to be able to fix things other than managing the over-saturation using HSL or WB or other things like lower-vibrance, higher saturation. 
    You could try making your own camera profile using an X-Rite Color-Checker Passport or the color-checker and the Adobe DNG Profile Editor:
    http://xritephoto.com/ph_product_overview.aspx?id=1257

  • Can I use my email and phone number to start a new conversation from iMessage?

    Can I use my email and phone number to start a new conversation from iMessage?

    Can I use my email and phone number to start a new conversation from iMessage?

  • I setup messages on my new macbook and now when I have an imessage conversation from my phone it says my email address. How do I change this?

    I setup messages on my new macbook and now when I have an imessage conversation from my phone it says my email address. How do I change this?

    Messages Preferences, select iMessage account, Start new conversations from:
    Same on iPhone, but in the Settings under Messages.

  • I transferred settings and files from old MacBook air to new one.  New one now gives popup about failing to connect to server (old iMac).  the new Mac air and old iMac have never met and are 2000 miles apart. How do I stop the popups?

    I transferred settings and files from old MacBook air to new one.  New one now gives popup about failing to connect to server (old iMac).  the new Mac air and old iMac have never met and are 2000 miles apart. How do I stop the popups?

    Change your settings in Sharing preferences, for one, and remove the server out of the Finder's sidebar. Obviously, this is the result of transfering all your other computer's preferences to your new computer.

  • Airdrop,,Using,Phone,5's,,8.1.1,,and,Mac,Book,pro,early,2011,,OS,X,Yosemite:,try ing,to,send,photo,via,airdrop,FROM,phone,to,computer,,but,airdrop,does,not,find, computer,even,3,inches,away;,WWII,and,bluetooth,are,enabled.,Solution?

    Airdrop solution needed! Using iPhone 5s, 8.1.1, and MacBook Pro early 2011, OS X Yosemite 10.10.1, cannot get iPhone to pickup airdrop signal for computer to send photos from iPhone to computer. WiFi and Bluetooth are enabled.

    adamboettiger wrote:
    Sophos and MacKeeper
    There are many reported problems with both these programs.
    Run through this list of fixes in order, will tune you right up.
    They are in order for a reason.
    ..Step by Step to fix your Mac

  • Converting feet to inches

    I need to conver feet to inches, in my code, I am picking up feet and inches in the input file, and need to convert it all to inches on the output file, for example, a person is 5 07, this needs to be converted to 67 inches....Any suggestions

    Angel_74 wrote:
    I need to conver feet to inches, in my code, I am picking up feet and inches in the input file, and need to convert it all to inches on the output file, for example, a person is 5 07, this needs to be converted to 67 inches....Any suggestionsExcuse me for being late, a just got back from a doctor's appointment.
    So your project is really all about reading text from one file, and writing text to another file right? In that case, you should think about how your program handles the input. Most input comes in the form of a java.lang.String (but not always, depends on your InputStream), then your program needs to convert those String values into int values before you can use the mathematical formulas given above. Then depending on the OutputStream, you may or may not need to convert int back to String or whatever.

  • Conversion from RH7 to RH8 hangs on 1 of 5 projects - no err msg

    I have successfully converted 4 of 5 RH7 projects. The one project that won't convert doesn't have anything special or different about it. It is not my most complex project nor my simplest.
    Once the conversion starts the meter bar goes about 1/3 of the distance then RH8 locks up (stops responding). No error message is presented.
    Pre conversion I removed the projects from RSC, removed read only attribute, and deleted .cpd.
    I have tried the solution from this thread http://forums.adobe.com/message/2312324  (open the .hhp, selecting Noto the xpj prompt.) with no change in the result.
    Obviously the problem is with the project, but I don't know what else to try. Is there a conversion log or some way to know what file is being converted when it locks up?
    Specifics
    OS = XP with all patches
    RH = 8.0.2.208
    Project location = C:\TW_Local\RoboHelpProjects  (not a networked folder )
    Project history =Originally an MS Word file, converted to RH6, converted to RH7
    Project zip size = 28MB
    Thanks for any help or ideas.
    John

    You could check if the rhvariable.apj file is blank. If it is, copy one from a working project. Or see snippet 79 on Peter Grainge's site which contains code you can paste in. The problem manifested in RH6, but it's possible it's still an issue in RH8.

Maybe you are looking for

  • How can I set up another email client to send mail as my dotmac account?

    My business uses an online application that can send emails to our customers as long as we provide it with an email account. I used the following from my mail.app: SMTP HOST: smtp.mac.com SMTP PORT: 25 SMTP_AUTH: true SMTP USER: cryogen (my dotmac ac

  • Payment Term field to be set as Non Editable in Sales Order

    Hi, I have a requirement, in which the user wants to make the Payment Term field in Sales Order as Non Editable in case the Payment terms is copied from Customer Master to Sales order. In case no value is copied, it should be editable. Is there any s

  • Fileupload  UI element in WD ABAP

    Hi , Any one have worked using fileupload UI element in Webdynpro ABAP. Regards Usha

  • Image won't use full width of page in Standard Report

    Using LabVIEW 2012 in both Windows XP and Win7 Specifically, I'm trying to use a cluster control  with strings and numerics for a generic report page.  I stuff the strings and numerics with the info that's needed to create the desired page content. I

  • Custom field in the attachment in shopping cart

    Hi, Can anybody please help me on how to add a custom field into the Shopping cart attachment? I need to add a custom field in for each attachment in SRM? As in adding custom field into SC basic item / Account assignment, i could not find any structu