Height in feet+inch

hi
i have table and data like below..
CREATE TABLE HEIGHT (FEET NUMBER(2), INCH NUMBER(2), NAME VARCHAR2(6));
INSERT INTO HEIGHT VALUES(3,1,'JOHN');
INSERT INTO HEIGHT VALUES(3,7,'SMITH');
INSERT INTO HEIGHT VALUES(3,0,'MILLER');
INSERT INTO HEIGHT VALUES(5,2,'SCOTT');
INSERT INTO HEIGHT VALUES(5,8,'KING');
INSERT INTO HEIGHT VALUES(6,6,'TIGER');
INSERT INTO HEIGHT VALUES(6,7,'SYS');
INSERT INTO HEIGHT VALUES(6,6,'LUISE');
INSERT INTO HEIGHT VALUES(7,0,'CAT');
INSERT INTO HEIGHT VALUES(7,5,'MAT');
INSERT INTO HEIGHT VALUES(7,9,'RAT');
INSERT INTO HEIGHT VALUES(3,4,'');
SELECT * FROM HEIGHT ORDER BY FEET, INCH
now i want to retrieve date from 5.2 to 7.5.
here 5 is starting feet and 2 is inch
and 7 is sending feet and 5 is inch

hi bencol
by your query i got this erroe message
Error starting at line 1 in command:
select *
from height
where feet*12 + inch between 62 5
Error at Command Line:3 Column:32
Error report:
SQL Error: ORA-00905: missing keyword
00905. 00000 - "missing keyword"
*Cause:   
*Action:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Height in feet and inches

    I have a string value for height in the database that I would like split out into feet and inches. For example the value right now is 66, 65, etc...

    Hi Curt,
    If Unit of measure is CM then use below logic
    (totext(({Database_cm}* 0.0328084),0)) & " Fts   "&Tonumber((Split(totext({Database_.cm}* 0.032808,5),".")[2])) *0.00012 & " Inches"
    If Unit of measure is in Meters then You need to convert meters to CM by using below formula
    {Meters_field}/100
    --Praveen G

  • Convert Feet and Inch to cm (and vice versa)

    I need some help with conversion of height. The form was designed by the department and there is a field where one need to enter the height of the participant.
    The height can either be in cm or in Feet + Inches (not just inches). Once a value has been entered in cm, it converts it automatically to feet and inches. If the user enter the height in feet and inches, it converts it immediately into cm. Much like the kg to lbs conversion fields in the attached document. I have been able to convert the height in cm into Feet and inches e.g. 165 cm = 5'5". However I am not sure how to do the opposite.
    The problem is the way it has been designed as there is a box for Feet and another box for Inches. If the other measure was in Inches only, it would have been easier and that would be like the kg to lbs conversion.
    I have tried multiple way to try to the conversion, but none would do it exactely like the kg to lbs conversion.
    Here is the form:
    https://workspaces.acrobat.com/?d=j8kksFor3eVIg6M07CdkmA

    I tried the following code, but obviously does not work. The problem reside in the fact that I have to reunite 2 fields to get the height in cm and am not sure how to handle that.
    var v1 = (function () {
        var f_source = getField("Feet");
        var result;
        if (event.source && event.source === f_source) {
            result = f_source * 30.48  ;
            event.value = result == 0 ? "" : util.printf("%.0f", result);
    var v2 = (function () {
        var f_source = getField("Inches");
        var result;
        if (event.source && event.source === f_source) {
            result = +f_source  * 2.54 ;
            event.value = result == 0 ? "" : util.printf("%.0f", result);
    event.value = v1 + v2;

  • Feet and inches ' and "

    I have an application that requires height in feet/inches.
    Obviously php/mysql will have an issue with something like 6'2"
    because of the ' and ". What they best way to handle this so I can
    still express it this way... or is it not worth it and just use
    feet and inches, the words?

    jsteinmann wrote:
    > I have an application that requires height in
    feet/inches. Obviously php/mysql
    > will have an issue with something like 6'2" because of
    the ' and ". What they
    > best way to handle this so I can still express it this
    way... or is it not
    > worth it and just use feet and inches, the words?
    >
    I would store the value as inches:
    <script>
    convert=function(input){
    x=input.split(/[^\d]/);
    return x[0]*12+ +x[1];
    </script>
    Mick

  • Case for 13 inch Mac book

    Has anyone purchased a case for their 13 inch mac book from macbook-case.com ? I want a case for my mac book and do not like any of the colors offered in the Apple Store for inCase. I found this site that has hard/soft cases but am not able to find any reviews on them. Any thoughts would be greatly appreciated. Thanks!

    Yes. Thank you. Just wondering if anyone knew off hand.
    Here are the dimensions in case anyone else would like them - they weren't readily available on the "comparison" site - so that's why I asked. I did find them on Apple's site eventually.
    Macbook air - 13
                Height: 0.11-0.68 inch (0.3-1.7 cm)
                Width: 12.8 inches (32.5 cm)
                Depth: 8.94 inches (22.7 cm)
                Weight: 2.96 pounds (1.35 kg)2              
    MacBook Pro - 13
                Height: 0.95 inch (2.41 cm)
                Width: 12.78 inches (32.5 cm)
                Depth: 8.94 inches (22.7 cm)
                Weight: 4.5 pounds (2.06 kg)2

  • Help with an Algorithm for using a level sensor to estimate consumption.

    I'm developing a small HMI-Scada application for monitoring the level of Diesel in four vertical tanks similar to the screen shot below.
    Tank Information:
    20 Feet High
    8 Feet Inside Wall Diameter
    5,000 Gallons Capacity
    (These Tanks supplies four Caterpillar Generators)
    Since each tank already has an Ultrasonic Level transmitter installed (accuracy is plus or minus one Inch) I was thinking of using this Tank level information coming from that sensor to estimate consumption.
    The problem I'm having right now is figuring out the correct math to use inside VB.Net to make this calculation work, considering that Diesel not used by the Generators will be returned back to the tank.
    The consumption data we need is not needed in real time necessarily it is more like at the end of the day we need to know how much diesel was used by each generator, this will help management figure out and print a report with the total carbon emissions
    for that day.
    The HMI-Scada application is going to have a Microsoft SQL Sever collecting the Tank Level Information every one minute.
    To avoid further complications when Mr. Diesel comes with his truck to refill the tanks we are planning to have him manually enter into the HMI-Scada application the total amount of gallons pumped into each tank.
    Do anyone in this forum have an idea of how this can be done?

    Hi,
     Is the 20 feet actually measured from the inside Bottom to the inside Top of the tank? Is the Inside Diameter actually 8 feet all the way from the bottom to the top of the tank?
     If those two answers are true then it seems like it would be easy enough to calculate.
     20 feet * 12 inces = 240 inches
    5000 gallons / 240 inches = 20.833333333333333333333333333333 gallons per inch
    So, if i am right then for example, if you had 200 inches of fuel at the beginning of the day and 80 inches at the end of the day it would be:
    20.833333333333333333333333333333 * 200 = 4166.6666666666666666666666666667 gallons to start with
    20.833333333333333333333333333333 * 80 = 1666.6666666666666666666666666664 gallons at end of day
    So the gallons used would be
    4166.6666666666666666666666666667 - 1666.6666666666666666666666666664 = 2500.00 gallons used for the day
    Example code:
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Dim GallonsPerInch As Double = 5000 / (20 * 12) 'Gallons Per Inch
    Dim StartingInches As Double = 200.0 'get inches at Start
    Dim EndingInches As Double = 80.0 'get inches at End
    Dim GallonsUsedToday As Double = (StartingInches - EndingInches) * GallonsPerInch 'Gallons used from Start to End
    MessageBox.Show("Gallons Used = " & GallonsUsedToday.ToString)
    End Sub
    If you say it can`t be done then i`ll try it
    Thats right Razerz.
    So where height is the change in the tank levels the volume is
    V = (pi)(radius ^ 2)(Height)
    V = (3.14)(4)(4)(Height) = 50.24 (height) cubic feet
    V = (50.24 cuft) (7.48 gal/cuft) (height) = 376 (height) gallons
    So for an inch of height:
    V = 376/12 = 31.3 gallons per inch
    Just for fun
    5000 gals / (12)(31.3) = 13.29 feet high
    Normally the tank does not fill to the top.
    Check my math.
    So all you need to do is Constant(change in height) = gals. Once we get the constant right.
    PS In fact it would be best to just measure the depth when the gas man fills the tank and calc the constant. I doubt the tank is exactly 8 feet. I mean you calc the constant once. And at that time check it is linear ie the tank is a cylinder.

  • How to dynamically load a Base64 string to an image on the Crystal Report?

    I have a signature stored in my SQL Server 2008 DB as a Base64 encoded string. It is in a datatype of nvarchar(MAX), field named ="signature_stream"
    I am using Crystal Reports Basic for Visual Studio 2008.a XML field definition file to load the data to the report.  In that file [signature_stream] is a xs:string type.  This is a asp.net application so ideally I would like not to have to save the image to disk before showing it.
    I need to be able to take [signature_stream] and load it onto my report from server side code. 
    Any help would greatly be appreciated.

    Hi Jimmy,
    CR is a 32 bit app so it won't be able to handle an image in x64 format unless you find a way to convert it to x86 type.
    The MS SQL client may be able to do this for you though. Install the SQL Native 10 client from the MS SQL Tools menu options and then convert/update the report and DSN to use the SQLNCLI10.dll as the client dll.
    See if you can add that field to the report, if that works then you can add any image to the report and set the image formula to that database field using the Formula field:
    click the X-2 button for graphic location and select the field with the image in it.
    Now preview, if the Client converts 64 to 32 bit then this should work for you, if not then only option is as Dell pointed out and save the image to the HD in BMP or JPG format and then you can use the same Graphic Location formula to point to the folder and file location.
    To update it in code it would look like this in the KBase article:
    2021348 - Modifying a Picture object in .NET ignores Object.Height and Object.Width when setting Condition Formula Can Grow is enabled
    Symptom
    When modifying an existing picture object and using a formula to update the image file location and name using the .Modify() method the image is not sizing accordingly.
    Environment
    Crystal Reports for Visual Studio
    VS 2010
    VS 2012
    VS 2013
    Resolution
    You can do this all dynamically and creatively as you wish but the basics to updating the image is as follows:
    CrystalDecisions.ReportAppServer.ReportDefModel.PictureObject boPictureObject = new CrystalDecisions.ReportAppServer.ReportDefModel.PictureObject(); ;
    string strNewImageFilename = "D:\\Atest\\DSC_2655.jpg";
    foreach (CrystalDecisions.ReportAppServer.ReportDefModel.ReportObject oReportObject in objects)
        if (oReportObject.Kind == CrystalDecisions.ReportAppServer.ReportDefModel.CrReportObjectKindEnum.crReportObjectKindPicture)
            var oPlaceholderPicture = oReportObject as CrystalDecisions.ReportAppServer.ReportDefModel.PictureObject;
            if (oPlaceholderPicture != null)
                    // clone the original object so it can be modified
                    var oNewPicture = (CrystalDecisions.ReportAppServer.ReportDefModel.PictureObject)oPlaceholderPicture.Clone(true);
                    var cf = new CrystalDecisions.ReportAppServer.ReportDefModel.ConditionFormula();
                    PicFileLocationFormula.Text = "\"" + strNewImageFilename + "\"";
                    oNewPicture.Format.EnableCanGrow = false;
                    oNewPicture.GraphicLocationFormula = PicFileLocationFormula;
                    oNewPicture.Width = 4320;  // 3 inches
                    oNewPicture.Height = 1440;  // 1 inch
                    rptClientDoc.ReportDefController.ReportObjectController.Modify( oPlaceholderPicture, oNewPicture );
                    // Call the Modify again to update the CanGrow flag to false - default is set to True
                    oNewPicture.Format.EnableCanGrow = false;
                    rptClientDoc.ReportDefController.ReportObjectController.Modify(oPlaceholderPicture, oNewPicture);
    This issue has been tracked with ADAPT01727457 and scheduled for SP 11 ( possibly SP 10 )
    In the mean time use the above work around
    Don

  • OC Certified Motherboard. MSI Z77 MPower

    For those who are wanting to have a good priced performing Z77 motherboard, MSI Bigbang Mpower might be the one for you. These boards have been tested using Prime95 and validated to run at certain OC speeds before releasing it to the market and if ever a Military Class III components gets damaged during overclocking, it will be still covered by warranty which other brands do not offer. MSI has also decided to make the MPower's color scheme to black and yellow to match their Lightning Videocard Series. Combining these two hardwares together, you will have a bad-ass kicking computer system.
    Moving on with the specifics of the Mpower, It has an improved 16-Phase CPU VRM and optimized PCB for delivering higher overclocks and faster response time to the system. It also has an embedded 6-pin PCIE power connector to give additional ampage boost on the graphic cards. We also see a diagnostic LEDs as this helps to troubleshoot hardware problems with the codes it displays and it also acts as CPU Temp Monitor. Voltage measurement points is also provided as this is primarily used by overclockers to check the voltages accurately and in real-time. Three PCI-Express 3.0 x16 (x8/x4/x4) for Nvidia 3 Way SLI or for an AMD 2 Way Crossfire multi-graphic setup.
    The newest feature that MSI integrated to the board is the inclusion of Atheros Bluetooth and Wifi N combo device. With this, you can communicate with the board using a downloadable application called "Command Center" to your ios phone or tablet to overclock the board or turn it into a remote control to do basic windows commands such as power on/off, clearing CMOS setting, playing/stopping media, volume control, and more. Pretty cool right?!
    For a quick review of the Z77 chipset, we all know that it supports both Intel Sandy Bridge and 22nm Ivy Bridge Processors. Native USB 3.0 is implemented and the upgrade of PCI-Express x16 towards 3.0.
    Time for product Show case
    Components, card slots and connectors are all laid-out nicely. The PCB of the board is actually thicker compared with a regular one.
    Comes with the board are Sata 6GB/s Cables, SLI Bridge, V-Check Point Connectors, Easy Connector Header Guide, Antennas for the Wifi N device, IO Backplate
    Manuals, Overclocking Guide, Driver Utility Disc and the Quality Passed Certificate of Quality and Stability
    Military Standard "MIL-STD-810G" Tests consists of the following:
    •Temperature Shock Test
      Method 503.5
      Temperature: -40C to 70C
      Number of Cycles:3
      Test Duration: 4.5hours
    •Humidity Test
     Method 507.5
     Temperature: 24C
     Number of Cycles: 95% (RH)
     Test Duration: 10 Days
    •Vibration Test
     Method 514.6
     Frequency: 10-500 Hz
     Waveform: Random
     Test Duration: 1 Hour/Axis (X/Y/Z)
    •Low Pressure Test
     Method 500.5
     Height: 15000 Feet
     Test Duration: 4 Hours
    •High Temperature Test
     Method 501.5
     Temperature: 71X
     Test Duration: 24 Hours
    •Low Pressure Test
     Method 502.5
     Temperature: -51C
     Test Duration: 24 Hours
    •Shock Test
     Method 516.6
     Drop Height: 10cm
     Drop Surface: Rigid Steel (4.5cm)
     Number of Drops: 4
    Left to Right: PS2 Combo Port which automatically detects if a PS2 Mouse or Keyboard has been connected, Clear Cmos Button which lits up when pressed, Bluetooth , Wifi Antenna , Realtek 8111E Gigabit LAN Port / USB 3.0 Ports, Digital SPDIF Audio (Realtek ALC898 THY TruStudio Pro Software Layered) / HDMI and Display Port Connector which supports 2560x1600 Resolution, 6 Analog Audio Jacks
    Military Class III Components circling around the socket area Improved VRM heatsinks with Superpipe Flat heatpipe for faster heat dissipation.
    From Left to Right: 6Pin Power for additional GPU Power Amp, V-Check Points, The Easy Buttons which consist the Power, Reset and OC Genie II.
    So what does the OC Genie II do?
    Its a chip that detects the hardware configuration and increases the overall system performance through overclocking. It automatically set the clocks and voltages of the CPU/RAM and IGP with just a press of a single button.
    Left to Right: All SATA Ports are handled by Intel Chipset. SATA 3-6 are 3GB/s while SATA 1-2 are 6GB/s. USB 3.0 header and Debug LEDs indicator.
    Switchable Multi Bios A and B. The SW1 is for the Go2Bios which helps you to enter the Bios Screen before the Windows 8 boots up.
    The Red USB Header is for the SuperCharger feature which charges your USB device even if your computer is turned off, you just have to ensure that the PSU is plugged in the electric outlet and switched on. Then you have the regular USB 2.0 black headers.
    4x PCIE 2.0 x1 and the 3x PCI-Express 3.0 X16 slots.
    I tested the board for a short period of time but I noticed right away the fast installation of windows 7 and the fast boot up to windows. Programs are very responsive and I haven't tweaked the Windows yet. The wifi device signal is quite strong too that even without the antenna, it can easily connect to my wifi router which is located at the other room. Lastly, MSI should have integrated realtime Bclock adjustment like the Direct OC before into this board. This is a good additional OC tool for overclockers like me.
     

    Probably co-incidence
    Quote
    Don't understand how enabling Virtu Lucid in the BIOS with OC Genie 'ON' could have such a result.. Has MSI tested this??
    I am sure they tested it, most likely the board was defective and whatever switch was flipped by this change allowed the damage to occur.

  • Works in one tool, but not another...same environment.

    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE     11.2.0.3.0     Production
    TNS for Solaris: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Production
    I'm trying to build a view. It works in TOAD 11.6. It works in Oracle SQL Developer 1.1.3.
    But when I try to run it via SQL/PLUS (putty connection)....it fails.
    alter session set current_schema = fs_nris_fsveg;
    CREATE OR REPLACE FORCE VIEW FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM
       STAND_CN,
       STAND_ID,
       PLOT_CN,
       PLOT_ID,
       STANDPLOT_CN,
       STANDPLOT_ID,
       TREE_CN,
       TREE_ID,
       TAG_ID,
       SITE_TREE_FLAG,
       TREE_COUNT,
       HISTORY,
       SPECIES,
       DIAMETER,
       DIAMETER_HT,
       DG,
       HT,
       HTG,
       HTTOPK,
       HT_TO_LIVE_CROWN,
       CRCLASS,
       CRRATIO,
       DAMAGE1,
       SEVERITY1,
       DAMAGE2,
       SEVERITY2,
       DAMAGE3,
       SEVERITY3,
       DEFECT_CUBIC,
       DEFECT_BOARD,
       TREEVALUE,
       PRESCRIPTION,
       AGE,
       SLOPE,
       ASPECT,
       PV_CODE,
       PV_REF_CODE,
       TOPOCODE,
       SITEPREP
    AS
       SELECT DISTINCT
              s.cn stand_cn,
              s.setting_id stand_id,
              p.cn plot_cn,
              NRV_FVS_DB.To_Num (
                 SUBSTR (p.level_2_id, GREATEST (-1 * LENGTH (p.level_2_id), -4)))
                 plot_id,
              s.cn || '_' || LPAD (p.level_2_id, 4, '0') standplot_cn,
              s.setting_id || '_' || LPAD (p.level_2_id, 4, '0') standplot_id,
              t.cn tree_cn,
              NVL (t.unique_no, NRV_FVS_DB.To_Num (t.tag_id)) tree_id,
              t.tag_id tag_id,
              DECODE(t.site_tree_flag,  NULL, 0,  'Y', 1,  NULL) site_tree_flag,
             -- Check for sub-sampling, calculate stand level tpa equiv if sub-sampling, and      
             -- plot-level tpa equiv if no sub-sampling                                           
              DECODE(
                 s.Has_Sub_Sampling,
                 'Y',                                             /*If sub-samp */
                     ROUND (NRV_TREE.Stand_Equiv (t.cn, t.tpa_equiv, s.cn), 5),
                 /*else not    */
                 t.tpa_equiv)
                 tree_count,
              NRV_FVS_DB.To_History (t.live_dead,
                                     t.recent_mortality_flag,
                                     t.tree_status,
                                     t.tree_class)
                 history,
              t.species_symbol species,
              DECODE(t.diameter_method, 'C', NULL, NVL (t.diameter, 0.1))
                 diameter,
              t.diameter_height diameter_ht,
             -- /* For GST trees only: artf21577 radial growth bug                                                         *
              -- *   If the setting has any prev dia measurements and a prev meas date, DG = fia previous diam measurement *
              -- *   Otherwise, DG = radial growth                                                                         */
             -- /* TO_NUMBER(DECODE(t.growth_sample_tree_flag, NULL, NULL
              --                ,DECODE(NRV_FVS_DB.get_dg_trans(p.setmeas_cn_of)
                --              ,0, t.radial_growth/10  -- Division by 10 to convert units from tenths to inches
                --              ,1, t2.diameter_previous
                 --             ,NULL))) dg, */
              --TO_NUMBER(DECODE(NRV_FVS_DB.get_dg_trans(p.setmeas_cn_of),0, t.radial_growth/10,  -- Division by 10 to convert units from tenths to inches
              --                 1, t2.diameter_previous,NULL)) dg,  -- art24653
              DECODE(
                 t.radial_growth_method,
                 'C', NULL,
                 TO_NUMBER (
                    DECODE(NRV_FVS_DB.get_dg_trans (p.setmeas_cn_of),
                            0, t.radial_growth / 10, -- Division by 10 to convert units from tenths to inches
                            1, t2.diameter_previous,
                            NULL)))
                 dg,                                                   -- art24653
              DECODE(t.height_method, 'C', NULL, t.height) ht,
              --DECODE(t.height_growth_method, 'C', NULL,
              --round(DECODE(t.growth_sample_tree_flag, NULL, NULL, t.height_growth),4)) htg,  -- artf7599 GST tree (dg and htg issue)
              DECODE(t.height_growth_method,
                      'C', NULL,
                      ROUND (t.height_growth, 4))
                 htg,                                                  -- art24653
              DECODE(
                 t.height_to_break_method,
                 'C', NULL,
                 NRV_FVS_DB.To_Height_Top_Kill (t.height_topkill,
                                                t.height_to_break))
                 httopk,
              DECODE(t.crown_base_height_method, 'C', NULL, t.crown_base_height)
                 ht_to_live_crown,
              t.crown_class crclass,
              DECODE(
                 t.crown_ratio_method,
                 'C', NULL,
                 DECODE(
                    NRV_FVS_DB.Only_1_Digit_CRs (s.cn),
                    'Y',                                      /*all 1-digit CRs */
                        t.crown_ratio,
                    /*1- and 2-digit CRs*/
                    DECODE(GREATEST (NVL (t.crown_ratio, -1), 1),
                            LEAST (NVL (t.crown_ratio, -1), 9),      /*CR < 10  */
                                                               10,
                            /*CR >= 10 */
                            t.crown_ratio)))
                 crratio,                            -- artf9733 crown ratio issue
              NRV_FVS_DB.Get_Damage (t.cn, 1) damage1,
              NRV_FVS_DB.Get_Severity (t.cn, 1) severity1,
              NRV_FVS_DB.Get_Damage (t.cn, 2) damage2,
              NRV_FVS_DB.Get_Severity (t.cn, 2) severity2,
              NRV_FVS_DB.Get_Damage (t.cn, 3) damage3,
              NRV_FVS_DB.Get_Severity (t.cn, 3) severity3,
              (  SELECT SUM (td.effect_severity)
                   FROM nrv_tree_disturbances td
                  WHERE t.cn = td.tremeas_cn AND td.effect_code = '014'
               GROUP BY td.tremeas_cn)
                 defect_cubic,
              (  SELECT SUM (td.effect_severity)
                   FROM nrv_tree_disturbances td
                  WHERE t.cn = td.tremeas_cn AND td.effect_code = '013'
               GROUP BY td.tremeas_cn)
                 defect_board,
              /* first check to see if the plot is nonstockable, otherwise assign tree value. */
              DECODE(
                 NRV_FVS_DB.Is_Plot_Nonstockable (p.cn,
                                                  s.region_proc,
                                                  s.loader_version),
                 'Y',                                             /*nonstockable*/
                     8,
                 /* else */
                 NRV_FVS_DB.To_Tree_Value (t.tree_class))
                 treevalue,
              NRV_FVS_DB.To_Num (t.first_treatment_option) prescription,
              --t.age age,
              DECODE(t.age_method,  'DC', NULL,  'TC', NULL,  t.age) age,
              NVL (p.slope, c1.slope) slope,
              NRV_FVS_DB.To_Aspect_Zero (NVL (p.aspect, c1.aspect)) aspect,
              NVL (p.pv_code, c1.pv_code) pv_code,
              NVL (p.pv_ref_code, c1.pv_ref_code) pv_ref_code,
              NRV_FVS_DB.To_Topo_Code (p.slope_position) topocode,
              DECODE(c1.cn,
                      NULL,                                /*no condition record*/
                           NRV_FVS_DB.get_plot_siteprep (p.cn),
                      /*else               */
                      NRV_FVS_DB.get_condition_siteprep (s.cn, c1.cn))
                 siteprep
         FROM nrv_tree_measurements t,
              nrv_fia_tree_measurements t2,
              nrv_setting_measurements p,
              /* sub-select to improve efficiency - to unravel sub-sampling only once per stand-level. */
              (SELECT cn,
                      setting_id,
                      region_proc,
                      loader_version,
                      NRV_FVS_DB.Has_Sub_Sampling (cn) has_sub_sampling
                 FROM nrv_setting_measurements
                WHERE setmeas_cn_of IS NULL) s,
              nrv_fia_mapped_conditions c1
        WHERE     t.setmeas_cn = p.cn
              AND p.setmeas_cn_of = s.cn
              AND t.cn = t2.tremeas_cn(+)
              AND t.mapcond_cn = c1.cn(+)
              AND t.off_plot_flag IS NULL
              AND (t.tree_status IS NULL OR t.tree_status IN ('D', 'L'))
              AND (   t.tree_class IS NULL
                   OR t.tree_class IN
                         ('AC',
                          'DE',
                          'GS',
                          'RF',
                          'RN',
                          'S',
                          'SV',
                          'UA',
                          'US',
                          'WS',
                          'H',
                          'U',
                          'D'))
              AND t.down_flag IS NULL;
    COMMENT ON TABLE FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM IS 'Provides FVS tree-level information from derived from various FSVeg data tables.';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.STAND_CN IS 'Database control number for parent setting record.  This provides a foreign key to NRV_FVS_STANDINIT_VM.';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.STAND_ID IS 'Stand Identification Code.';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.PLOT_CN IS 'Database control number for child setting record.';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.PLOT_ID IS 'Plot Identification number.';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.TREE_CN IS 'Database control number for individual trees.';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.TREE_ID IS 'Tree Identification Code - unique number.';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.TREE_COUNT IS 'Tree Count rounded to 5 decimal places.';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.HISTORY IS 'History Code. 1=live trees, 6=died during mortality observation, 8=died before mortality observation period';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.SPECIES IS 'Tree Species Code.  NRCS plants code.';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.DIAMETER IS 'Tree Diameter measurement in inches.';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.DIAMETER_HT IS 'Height in feet above ground where the diameter was measured.';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.DG IS 'Diameter Growth in inches.';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.HT IS 'Tree Height measurement in feet.';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.HTG IS 'Height Growth in feet.';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.HTTOPK IS 'Height to top kill is the height to the point of the tree of top kill in feet';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.CRRATIO IS 'Percent live crown.';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.DAMAGE1 IS 'Damage Code #1';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.SEVERITY1 IS 'Severity Code corresponding to damage code #1';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.DAMAGE2 IS 'Damage Code #2';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.SEVERITY2 IS 'Severity Code corresponding to damage code #2';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.DAMAGE3 IS 'Damage Code #3';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.SEVERITY3 IS 'Severity Code corresponding to damage code #3';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.TREEVALUE IS 'Tree Value Class Code. 1=desirable, 2=acceptable, 3=cull, 8=non-stock-able plot.';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.PRESCRIPTION IS 'Prescription Code.';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.SLOPE IS 'Slope Percentage of level-2 setting (plot) or FIA condition class.';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.ASPECT IS 'Aspect in degrees of level-2 setting (plot) or FIA condition class.';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.PV_CODE IS 'Potential Vegetation Code of level-2 setting (plot) or FIA condition class.';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.PV_REF_CODE IS 'Potential Vegetation Reference Code -- the document from which the PV_CODE was obtained.';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.TOPOCODE IS 'Topography Code of level-2 setting (plot) 1=bottom, 2=lower, 3=mid slope, 4=upper slope, and 5=ridge top';
    COMMENT ON COLUMN FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM.SITEPREP IS 'Site Preparation Code of level-2 setting or FIA condition class. 1=none, 2=mechanical, 3=burn, 4=road';
    DROP PUBLIC SYNONYM NRV_FVS_TREEINIT_VM;
    CREATE OR REPLACE PUBLIC SYNONYM NRV_FVS_TREEINIT_VM FOR FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM;
    GRANT SELECT ON FS_NRIS_FSVEG.NRV_FVS_TREEINIT_VM TO PUBLIC WITH GRANT OPTION;ERROR:
    SQL> @nrv_fvs_treeinit_vm.sql
    SP2-0042: unknown command "DECODE(" - rest of line ignored.
    SP2-0734: unknown command beginning "t.radial_g..." - rest of line ignored.
    SP2-0042: unknown command "'C', NULL," - rest of line ignored.
    SP2-0734: unknown command beginning "TO_NUMBER ..." - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    SP2-0734: unknown command beginning "DECODE(NRV..." - rest of line ignored.
    SP2-0734: unknown command beginning "0, t.radia..." - rest of line ignored.
    SP2-0734: unknown command beginning "1, t2.diam..." - rest of line ignored.
    SP2-0042: unknown command "NULL)))" - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    SP2-0734: unknown command beginning "dg,             ..." - rest of line ignored.
    SP2-0734: unknown command beginning "DECODE(t.h..." - rest of line ignored.
    SP2-0734: unknown command beginning "DECODE(t.h..." - rest of line ignored.
    SP2-0042: unknown command "'C', NULL," - rest of line ignored.
    SP2-0734: unknown command beginning "ROUND (t.h..." - rest of line ignored.
    SP2-0734: unknown command beginning "htg,      ..." - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    SP2-0042: unknown command "DECODE(" - rest of line ignored.
    SP2-0734: unknown command beginning "t.height_t..." - rest of line ignored.
    SP2-0042: unknown command "'C', NULL," - rest of line ignored.
    SP2-0734: unknown command beginning "NRV_FVS_DB..." - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    SP2-0734: unknown command beginning "t.height_t..." - rest of line ignored.
    SP2-0042: unknown command "httopk," - rest of line ignored.
    SP2-0734: unknown command beginning "DECODE(t.c..." - rest of line ignored.
    SP2-0734: unknown command beginning "ht_to_live..." - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    SP2-0734: unknown command beginning "t.crown_cl..." - rest of line ignored.
    SP2-0042: unknown command "DECODE(" - rest of line ignored.
    SP2-0734: unknown command beginning "t.crown_ra..." - rest of line ignored.
    SP2-0042: unknown command "'C', NULL," - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    SP2-0042: unknown command "DECODE(" - rest of line ignored.
    SP2-0734: unknown command beginning "NRV_FVS_DB..." - rest of line ignored.
    SP2-0734: unknown command beginning "'Y',      ..." - rest of line ignored.
    SP2-0734: unknown command beginning "t.crown_ra..." - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    SP2-0734: unknown command beginning "DECODE(GRE..." - rest of line ignored.
    SP2-0734: unknown command beginning "LEAST (NVL..." - rest of line ignored.
    SP2-0042: unknown command "10," - rest of line ignored.
    SP2-0734: unknown command beginning "t.crown_ra..." - rest of line ignored.
    SP2-0734: unknown command beginning "crratio,  ..." - rest of line ignored.
    SP2-0734: unknown command beginning "NRV_FVS_DB..." - rest of line ignored.
    SP2-0734: unknown command beginning "NRV_FVS_DB..." - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    SP2-0734: unknown command beginning "NRV_FVS_DB..." - rest of line ignored.
    SP2-0734: unknown command beginning "NRV_FVS_DB..." - rest of line ignored.
    SP2-0734: unknown command beginning "NRV_FVS_DB..." - rest of line ignored.
    SP2-0734: unknown command beginning "NRV_FVS_DB..." - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
                 defect_cubic,
    ERROR at line 5:
    ORA-00933: SQL command not properly ended
    Comment created.(all other comments and further commands succeed.
    So what could be causing it to crashin SQL/PLUS through PUTTY? This makes no sense to me.
    I've also ran it through the code formatter, as this will often show the ugly face of something that is hidden. But no such luck.

    Willy_B wrote:
    I removed the one that was listed, thinking that it was implicit to that line. BUT of course, I just went back and removed EVERY empty line, even between the comments and all...and it worked.
    So the lesson here is that PL/SQL could care less about white space, but SQLPlus is picky....
    Thanks. :)Exactly. And I have to make note of that in my written procedure for restoring some of our test databases from a cold backup of production. Turns out the control file trace script (backup controlfile to trace) inserts a blank line ... then sqlplus chokes on it when executing ..

  • New to java, please help me :(

    hi, i have to complete a BMI calculator with arrays and switch, i need it so that if input a / b is selected it will calculate metric / imperial (i know that both calcs are the same, its just a placeholder for the time being). once thats selected users are asked to input name, age, height and weight, then looped again for another user to input into the array.
    once completed the name and age along with the BMI calculation for all the users that have inputted are displayed
    the problem is, the calculations are wrong, where it should be outputting a BMI of between 20-23ish im getting 0.3
    i think i had this problem when i done the switch example previously, but to fix that i just lumped all the code (inputs and calcs) into each case. in this method im guessing that would be an incorrect approach ?
    btw, sorry for my layout, ive been debugging for ages now and havnt had time to clean it up :/
    thank you in advance and heres my code:-
    package bmicalculationex;
    import javax.swing.*;
    public class Main {
    public static void main(String[] args) {
    String output;
    double Hfeet=0, Wstone=0, Hinches=0, Wlbs=0;
    String Hfeetstr, Wstonestr, Hinchesstr, Wlbsstr, age;
    String name;
    double bmiweight=0, bmiheight=0, BMI=0;
    Item[] myItemArray = new Item[2];
    for(int i = 0;i<2;i++){
    myItemArray[i] = new Item();
    String input = JOptionPane.showInputDialog(
    "Welcome to Chunks BMI calculator\n"+
    "a) Metric.\n"+
    "b) Imperial\n"+
    "q) Quit\n"+
    "\nPlease enter letter code" );
    char code = input.charAt(0);
    switch(code){
    case 'a':
    output= "Imperial.";
    Wlbs = Wlbs * 0.45359237;
    Hinches = Hinches * 0.0254;
    Hfeet = Hfeet * 0.3048;
    Wstone = Wstone * 6.35029318;
    break;
    case 'b': output= "Metric.";
    Wlbs = Wlbs * 0.45359237;
    Hinches = Hinches * 0.0254;
    Hfeet = Hfeet * 0.3048;
    Wstone = Wstone * 6.35029318;
    break;
    default: output= "Error.";
    JOptionPane.showMessageDialog(null,"Invalid Selection.\n"+ "Please try again.");
    JOptionPane.showMessageDialog(null, "You have selected :- " + output + "\n\n" +" Thank you.");
    //User In-
    for(int c=0;c<2;c++){
    name = JOptionPane.showInputDialog("enter your name");
    age = JOptionPane.showInputDialog("enter your age");
    Hfeetstr = JOptionPane.showInputDialog("enter your Height");
    Hinchesstr = JOptionPane.showInputDialog("enter the remainder");
    Wstonestr = JOptionPane.showInputDialog("enter your weight");
    Wlbsstr = JOptionPane.showInputDialog("enter the remainder");
    Hfeet = Float.parseFloat(Hfeetstr);
    Wstone = Float.parseFloat(Wstonestr);
    Hinches = Float.parseFloat(Hinchesstr);
    Wlbs = Float.parseFloat(Wlbsstr);
    bmiweight = Wstone + Wlbs;
    bmiheight = Hinches + Hfeet;
    BMI = bmiweight / (bmiheight*bmiheight);
    myItemArray[c].setname(name);
    myItemArray[c].setyear(age);
    myItemArray[c].setBMII(BMI);
    String message = "";
    for(int n=0;n<2;n++){
    message = message + "Name :- " + myItemArray[n].getname() + " " + "Age :- " + " " + myItemArray[n].getaged() + "BMI :- " + " " +myItemArray[n].getBMI() +"\n";
    JOptionPane.showMessageDialog(null, message);
    }//end of main method
    }//end of main class
    class Item{
    private String namea;
    private String agea;
    private double BMIa;
    public Item(){
    agea = "";
    BMIa = 0;
    namea = "";
    public Item(String nameb, String ageb, double BMIb){
    namea = nameb;
    agea = ageb;
    BMIa = BMIb;
    public String getname(){
    return namea;
    public String getaged(){
    return agea;
    public double getBMI(){
    return BMIa;
    public String setname (String nameb){
    namea = nameb;
    return nameb;
    public void setyear(String ageb){
    agea = ageb;
    public void setBMII(double BMIb){
    BMIa = BMIb;
    }

    yush !
    i done it :D
    i just ended up lumping all the code into each case like i did last time, as when i had the calculations outside of the cases it wasnt taking the values from inside the case. nevermind....
    another problem i do have though, i need a loop so that once the program finishes it repeats itself until an X is entered, im not very good with loops :S
    i tend to try it like this
    quit = 1;
    while (quit<2){
    then just have one of the cases as quit +1
    so in mine it looks liek this:
    int quit=1;
    while (quit<2){
    String input = JOptionPane.showInputDialog(
    "Welcome to Chunks BMI calculator\n"+
    "a) Metric.\n"+
    "b) Imperial\n"+
    "q) Quit\n"+
    "\nPlease enter letter code" );
    char code = input.charAt(0);
    switch(code){
    case 'a':
    JOptionPane.showMessageDialog(null, "You have selected imperial. "+"\n\n" +" Thank you.");
    for(int c=0;c<2;c++){
    name = JOptionPane.showInputDialog("enter your name");
    age = JOptionPane.showInputDialog("enter your age");
    Hfeetstr = JOptionPane.showInputDialog("enter your Height in feet");
    Hinchesstr = JOptionPane.showInputDialog("enter the remaining inches");
    Wstonestr = JOptionPane.showInputDialog("enter your weight in stone");
    Wlbsstr = JOptionPane.showInputDialog("enter the remaining lbs");
    Hfeet = Float.parseFloat(Hfeetstr);
    Wstone = Float.parseFloat(Wstonestr);
    Hinches = Float.parseFloat(Hinchesstr);
    Wlbs = Float.parseFloat(Wlbsstr);
    Wlbs = Wlbs * 0.45359237;
    Hinches = Hinches * 0.0254;
    Hfeet = Hfeet * 0.3048;
    Wstone = Wstone * 6.35029318;
    bmiweight = Wstone + Wlbs;
    bmiheight = Hinches + Hfeet;
    BMI = bmiweight / (bmiheight*bmiheight);
    String cat="";
    if (BMI <18.5) cat = ("Posh spice");
    else if (BMI >= 18.5 && BMI <=25) cat = ("Fit !");
    else if (BMI >25 && BMI <=30) cat = ("Fatty !");
    else if (BMI >30)cat = ("Super Fatty");
    myItemArray[c].setcat(cat);
    myItemArray[c].setname(name);
    myItemArray[c].setyear(age);
    myItemArray[c].setBMII(BMI);
    break;
    case 'b': output= "Metric.";
    etc.....
    this is causing me the problems:
    for(int i = 0;i<2;i++){
    myItemArray[i] = new Item();
    says a non static variable cannot be referenced from a static context, i know im being stupid with my implementation, but whats a better way ?
    thanks again :)
    Edited by: Clunk on Nov 17, 2008 4:05 PM

  • Want to see constant text, say, TEST with strike off (like in MS word) prit

    Hi
    I hv a smartform, in which I hv a box with the size of 1 inch height and 10 inch width. I hv some text in it, say, "TEST", well.
    Now I need to print it as strikeTEST (meaning strike off like in MS word)
    So, pls. let me know How can get it?
    Thank you

    Thank you,
    "there are ready made fonts with strike out option"........Can you pls. mention couple, so that, will get it from Google. Right now, I dont know any such.
    Thank you,

  • Case Switch in subclass not working?

    I wrote a class and a subclass to convert an integer in feet and inches to centimeters and vice versa. I used a case switch in the subclass but when I run the program and type 1 for example it just goes to the next statement in the mian class and not whats in the switch. Sorry if this seems confusing. Here are the porgrams. First is the subclass.
      import java.util.*;
        public class Measure
          static Scanner console=new Scanner(System.in);
          public int feet;
          public int inch;
          public double cent;
          public int measure;
           public Measure()
             switch(measure)
                case 1:
                   System.out.println("Enter feet for conversion, if feet equals zero, type 0");
                   feet=console.nextInt();
                   if(feet<0)
                      System.out.println("ERROR");
                      System.out.println("Invalid Entry");
                      System.out.println("Please enter a positive number");
                   System.out.println("Enter inches for conversion, if inches equals zero, type 0");
                   inch=console.nextInt();
                   if(inch<0)
                      System.out.println("ERROR");
                      System.out.println("Invalid Entry");
                      System.out.println("Please enter a positive number");
                   break;
                case 2:
                   System.out.println("Enter centimeters for conversion");
                   if(cent<0)
                      System.out.println("ERROR");
                      System.out.println("Invalid Entry");
                      System.out.println("Please enter a positive number");
                   break;
                case 3:
                   System.out.println("GOODBYE");
                   break;
           public int getFeet()
             feet=12*inch;
             return feet;
           public int getInch()
             return inch;
           public double getCent()
             cent=inch*2.54;
             return cent;
           public void printMeasure()
       }Here is the main class
    import java.util.*;
        public class MeasurementMain extends Measure
          static Scanner console=new Scanner(System.in);
           public static void main(String[]args)
             int feet=0;
             int inch=0;
             double cent=0;
             int measure=0;
             System.out.println("***********************************");
             System.out.println("****                           ****");
             System.out.println("****  Measurement Conversion   ****");
             System.out.println("****                           ****");
             System.out.println("***********************************");
             while(measure!=3)
                System.out.println("Type 1 to enter a measurement in Feet and Inches, or 2 for centimeters");
                System.out.println("Type 3 to EXIT");
                measure=console.nextInt();
                if(measure==1)
                   System.out.println(""+feet+" feet and "+inch+" is equal to "+cent+"");
                if(measure==2)
                   System.out.println(""+cent+" centimeters are equal to "+feet+" feet and "+inch+" inches");
       }Thanks in advance.

    I moved my case switch to the main program but i can't get the conversion methods to work or print.
    Thanks in advance.The subclass is listed first.
      import java.util.*;
        public class Measure
          static Scanner console=new Scanner(System.in);
          public static final double CM_PER_INCH = 2.54;
          public static final double INCHES_PER_FOOT = 12;
          public double feet;
          public double inch;
          public double cent;
          public int measure;
           public Measure()
             System.out.println("***********************************");
             System.out.println("****                           ****");
             System.out.println("****  Measurement Conversion   ****");
             System.out.println("****                           ****");
             System.out.println("***********************************");  
           public void printMeasure()
           public double inchesToCentimeters(double inch)
             return cent=inch*2.54;
           public double feetToInches(double feet)
             return feet=inch*12;
           public double centimetersToInches(double cent)
             return cent=inch/2.54;
           public double inchesToFeet(double inch)
             return      feet = inch * 12;
       }Here is the main
        import java.util.*;
        public class MeasurementMain
          static Scanner console=new Scanner(System.in);
           public static void main(String[]args)
            int measure=0;
            int feet=0,inch=0;
            double cent=0;
             Measure m=new Measure();
             while(measure!=3)
                System.out.println("Type 1 to enter a measurement in Feet and Inches, or 2 for centimeters");
                m.printMeasure();
                System.out.println("Type 3 to EXIT");
                measure=console.nextInt();
                switch(measure)
                   case 1:
                      System.out.println("Enter feet for conversion, if feet equals zero, type 0");
                      feet=console.nextInt();
                      m.feetToInches(feet);
                      m.inchesToCentimeters(inch);
                      if(feet<0)
                         System.out.println("ERROR");
                         System.out.println("Invalid Entry");
                         System.out.println("Please enter a positive number");
                      System.out.println("Enter inches for conversion, if inches equals zero, type 0");
                      inch=console.nextInt();
                      m.inchesToCentimeters(inch);
                      m.printMeasure();
                      if(inch<0)
                         System.out.println("ERROR");
                         System.out.println("Invalid Entry");
                         System.out.println("Please enter a positive number");
                      break;
                   case 2:
                      System.out.println("Enter centimeters for conversion");
                      cent=console.nextInt();
                      m.centimetersToInches(cent);
                        m.inchesToFeet(inch);
                      if(cent<0)
                         System.out.println("ERROR");
                         System.out.println("Invalid Entry");
                         System.out.println("Please enter a positive number");
                      break;
                   case 3:
                      System.out.println("GOODBYE");
                      break;   
                if(measure==1)
                   System.out.println(""+feet+" feet and "+inch+" inches is equal to "+cent+" centimeters");
                if(measure==2)
                   System.out.println(""+cent+" centimeters are equal to "+feet+" feet and "+inch+" inches");
       }

  • SpaceX Seeking Full-Time Electrical Engineers in Texas!

    Please contact Brandon Garrett at [email protected] for more information. Full job description and application can be found here. 
    ENGINEER THE FUTURE
    SpaceX is a U.S.-based advanced technology company founded by residing CEO and CTO, Elon Musk. Founded in 2002, SpaceX builds rockets and spacecraft from the ground up, including cutting edge electronics, software, vehicle structures, and engine systems. The Falcon Launch Vehicle and Dragon Spacecraft programs are some of the most ambitious engineering systems in the world, designed to support our ultimate goals of aviation-like spaceflight capability and making humanity a multi-planet species. Our team is made up of more than 3,000 SpaceXers located across our Hawthorne, California headquarters; and other facilities in Florida, Texas, and Washington, DC.
    ADVANCE THE COURSE OF HUMAN HISTORY AND PAVE THE WAYS TO MARS
    This is SpaceX. We are not like most companies. Our goal is to do what has never before been done--enabling mankind to live on other planets. We push the boundaries of what is currently possible, and understand it takes rare individuals to help us make this happen. We celebrate our successes, and each other. We seek future colleagues with a rare mix of drive, passion, scrappiness, intelligence, and curiosity to seek what’s beyond the stars.
    Playing a direct role in advancing the course of human history is no small endeavor. Join us, and find your place in the SpaceX legacy.
    ELECTRICAL ENGINEER (DATA AND CONTROL SYSTEMS)
    RESPONSIBILITIES:
    Maintain National Instruments SCXI/PXI data acquisition systems: identify hardware requirements and compatibility; assemble, setup, and validate DAQ hardware configurations; troubleshoot DAQ hardware related problems
    Design wiring layouts and routing for interfacing to data acquisition systems:  improve grounding and shielding of data systems; specify wiring specifications for harness builds; integration of new features into existing systems
    Perform other related duties, as assigned, for the purpose of ensuring an efficient and effective work environment
    Provide technical support for instrumentation on test stands:  provide and update drawings of electrical power systems, data/control systems; provide troubleshooting support for electronic technicians; calibration of instrumentation sensors; evaluate new systems, technologies, and architectures to reduce development time, increase reliability, and to streamline operations
    BASIC QUALIFICATIONS:
    Bachelor’s Degree in Electrical Engineering or related field; years of experience in lieu of degree will be considered
    PREFERRED SKILLS AND EXPERIENCE:
    5 years of relevant experience preferred; entry level positions also available
    Experience with National Instruments SCXI/PXI data acquisition systems
    1-2 years’ experience with AutoCAD
    1-2 years’ experience with Visio
    Experience with Autodesk AutoCAD Electrical a plus
    Proficient manual electronic skills such as soldering, insulation and wiring, splicing, and component selection
    Working knowledge of data acquisition systems
    Proficient with pressure transducers, thermocouples, RTDs, accelerometers, strain gauges, flow meters, load cells, relays, solenoid valves
    Familiarity with National Instruments products, services and resources
    Demonstrated ability to implement and troubleshoot National Instruments hardware
    Proficient in noise reduction, shielding, grounding techniques, termination and analog and digital filtering to provide high fidelity measurements
    Ability to specify instrumentation wiring needed for various interfacing of data systems and sensors
    Experience with electrical power distribution, a plus
    Working knowledge of Labview, a plus
    Ability to rapidly change roles/responsibilities while working in a high-paced, challenging work environment
    Ability to deal with ambiguity and manage multiple priorities
    ADDITIONAL REQUIREMENTS:
    Ability to perform job duties that require standing, kneeling, crouching, twisting upper body, working in cramped positions in small openings and climbing hand over hand.
    Ability to work at elevated heights (200+ feet)
    Physical effort with climbing up and down stairs regularly throughout the day
    Physical effort with some handling of light weight supplies or materials (0 to 15 lbs)
    Work performed in an environment requiring exposure to fumes, odors, and noise
    Typically 50 hour work weeks, schedule varies depending on site operational needs, flexibility required
    Typically exposed to work in extreme outdoor environments – heat, cold, rain
    ITAR REQUIREMENTS:
    To conform to U.S. Government space technology export regulations, applicant must be a U.S. citizen, lawful permanent resident of the U.S., protected individual as defined by 8 U.S.C. 1324b(a)(3), or eligible to obtain the required authorizations from the U.S. Department of State. Learn more about ITAR here.
    SpaceX is an Equal Opportunity Employer; employment with SpaceX is governed on the basis of merit, competence and qualifications and will not be influenced in any manner by race, color, religion, gender, national origin/ethnicity, veteran status, disability status, age, sexual orientation, gender identity, marital status, mental or physical disability or any other legally protected status.
    Applicants wishing to view a copy of SpaceX’s Affirmative Action Plan for veterans and individuals with disabilities, or applicants requiring reasonable accommodation to the application/interview process should notify the Human Resources Department at (310) 363-6000.
    CONNECT WITH US
    Want to learn more about SpaceX career opportunities and culture? Be sure to connect with our recruiting team on social media: Twitter, Facebook, LinkedIn, Tumblr, and SpaceX Careers.
    Link to job decription and application found here.

    Still waiting for the Venice, CA team, just kidding.
    LabVIEW Champion . Do more with less code and in less time .

  • Creating a print template

    I am considering purchasing Photoshop elements but have one problem.  I like to print photo album sheets from home on 8.5x11" paper in portrat orientation with about 9 dfferent photos per sheet.  I can't find any way to resize/reorient the photobook pages or make a new template.  Does anyone have any ideas or is there a way to ask someone at Adobe this quetion?  Thank you.

    I put this together a while back for 2 place holders. You can adapt this for several more, depending on size of paper and size requirement for each picture.
    The size of each box created with the marquee tool in steps 2&3 is critical.
    Open a new, blank file (File>new>blank file) and set width & height in the inch size of your paper stock (4x6"), resolution 300px/in, background white (can be any color)
    Access the rectangular marquee tool, and in the the tool's option bar select "Fixed size", and put in 3.75x2.75", for example. Turn on the grid and snap to grid via View>grid & snap to grid. You can configure the grid via Edit>preferences>Guides and grids if you want to.
    Duplicate the background layer, and create the first box by clicking with the rectangular marquee tool. Position the box, then fill it with 50% gray (Edit>fill selection, and under contents select 50% gray.) Select>deselect gets rid of the marching ants
    Repeat for the next box. You should now have a document containing two rectangular boxes filled with 50% gray.
    Select the first box that you wish to fill (with the picture) with the magic wand tool. On the tool's option bar be sure that contiguous is checked. You should see "marching ants" around the selection, indicating that it is active.
    Open picture 1, go to Select>all, Edit>copy, then go to your layout as completed in step #5, and Edit>paste into selection
    Your image will be larger that the rectangular box, but you can drag it around to position the person that you wish to display. CTRL+T will allow you to resize the image with the corner handles, and to maneuver it
    Repeat for picture 2 with the 2nd box

  • Making sure photos are the exact same size

    I am creating before and after photos and need to make sure that each are the same size.  I will have groups of 2 side by side and then groups of 6 with 2 across and 3 down.  Once I create them in layers, is there a way that I can check to make sure that each of the photos is exactly the same size?   I have turned on grid and rulers, but wondered if there was any easier way to look at the pixle size of each individual photo?

    Consider making templates to the exact size required for your project. Here is a method which can be modified by changing the numbers to suit, but once set up can be used over and over again. It is a bit tedious - -
    Open a new, blank file (File>new>blank file) and set width & height in the inch size of your paper stock (4x6"), resolution 300px/in, background white (can be any color)
    Access the rectangular marquee tool, and in the the tool's option bar select "Fixed size", and put in 3.75x2.75", for example. Turn on the grid and snap to grid via View>grid & snap to grid. You can configure the grid via Edit>preferences>Guides and grids if you want to.
    Duplicate the background layer, and create the first box by clicking with the rectangular marquee tool. Position the box, then fill it with 50% gray (Edit>fill selection, and under contents select 50% gray.) Select>deselect gets rid of the marching ants
    Repeat for the next box. You should now have a document containing two rectangular boxes filled with 50% gray.
    Select the first box that you wish to fill (ultimately with the picture) with the magic wand tool. On the tool's option bar be sure that contiguous is checked. You should see "marching ants" around the selection, indicating that it is active.
    Open picture 1, go to Select>all, Edit>copy, then go to your layout as completed in step #5, and Edit>paste into selection
    Your image will be larger that the rectangular box, but you can drag it around to position the person that you wish to display. CTRL+T will allow you to resize the image with the corner handles, and to maneuver it
    Repeat for picture 2 with the 2nd box

Maybe you are looking for

  • How to sync app on iphone after reinstalling mac OS X

    Hello, I had to reinstall the whole system Mac OS. Now, Itunes doesn't allow me to sync applications I have bought on my iphone. Canno't even restore the iphone. How to do to to make it work again ? Thank's. Message was edited by: Michael Salama Mess

  • Trackpad acting weird after spill

    Hi, I am in kind of a problem right now. My trackpad is acting weird after some juice spilled over it from a drinking straw. Everything else works fine. I have turned the power off just to be safe. I need advice as to what to do. I bought my mac (lat

  • Passing control reference to subVI crashes labview

    Hi, using a image control (as indicator) provided by imaq Vision, I tried to pass the reference of the control to a subVI. On a computer it works and on a other (same labview version, same vision version, same os, same hardware and hardware drivers!)

  • HT4928 is there anyway to delete hidden apps?

    Hi there, recently had an ipad and downloaded a few naughty apps that i deleted after a few days, they always still appear even when i have hidden them, i have sold my ipad on now and only have an iphone and a new macbook pro, when i sign into itunes

  • "Right-click" Adobe options not available anymore

    I used to be able to highlight multiple PDF files and right click and "combine into single PDF". That option is no longer available. Also when I try printing to PDF sometime it does absolutely nothing and says "error" Any help would be much appreciat