Changing from upper to lower case without character class

hi all,desperatley need help.
I need to create an algorithm as follows
the implement into a program without using character class
i have no idea how to go about this
Create an algorithm for a program that continually reads (loops) a single character from the user and displays the ordinal (ASCII) value of the character. The program should then change the case of the character, so if it is an 'a' change to an 'A' and vise-versa and then display the new ordinal value. The program should quit when the user enters the '#' character. The program should display an error message if an invalid character is entered.
Implement the program from question 1 into a java program. You are not allowed to use any of the methods provided in the Character class to implement your solution
regards Paul

How time flies...they are already assigninghomework
for the fall term.Yeah, the nice thing about the summer is that we don't
get as many homework problems on the forums. Oh
well...I love how they don't even take the time to reword the hw and instead just post the prof's exact text.
"I need help with a problem, its Ch. 9, Q 23a, can anyone help me?"

Similar Messages

  • Changing case from UPPER to lower case

    On MS Word I would easily change if I had all CAPS and wanted lower case
    How do I do this with Apple Mail? Example: CAPITAL to capital
    Thanks
    Steve

    So no way to take upper case capitals and just click
    to make it lower case?
    You might have a look at Devon WordService:
    http://www.devon-technologies.com/download/index.html
    (bottom of the page)

  • Capitalization doesn't work as described. One can start with lower case and change to upper, but changing from upper case to any of the other options doesn't work. Is there a way around this or is this just a glitch that needs fixing?

    In Pages capitalization doesn't work as described. One can start with lower case and change to upper, but changing from upper case to any of the other options doesn't work. Is there a way around this or is this just a glitch that needs fixing?

    I think it does work as described, but the description is not very complete. Capitalization does not change any of the characters that you type; what it does is allow some of the lower case characters to display as capitals. If you copy the result and paste it as plain text, you'll see that the lower case characters are still there. It doesn't actually say anywhere that it can make capitals display as lower case, and it can't.
    The obvious way around this is to actually type what you want.
    The more powerful way is to install WordService from Devon Technologies which adds the functionality of Pages' capitalization menu as well a lot of other ones. WordService actually changes the character to the one displayed, and it works in most of the applications on your Mac.

  • Upper and Lower Case in J2EE

    Hi Friends!
    I have an oracle database and i want to do string comparision.
    But i have and problem.
    I can use these sql in oracle gui
    <b>select UPPER(BTITLE) from sapsr3db.bilim_blog
    select BTITLE from sapsr3db.bilim_blog where {fn LCASE(bilim_blog.BTITLE)}='test'</b>
    But i cannot use in J2ee sap portal application. It gives these error sequently
    <b>Upper Function are not allowed here</b>
    <b>SQL syntax error: an illegal character "{" has been found in the statement text </b>
    Also someone asked same question before and didnt get answer.
    <u>Re: Case insesitive String comparison in Open SQL</u>
    Best Regards
    Eray

    Hi
    here you can find all the functions permitted in the OpenSQL:
    http://help.sap.com/saphelp_nw04/helpdata/en/9b/f46cabaa874bc9a82234e8cf1d0696/frameset.htm
    So I think that Upper/Lower are not permitted... the work around is to get all the records and check the Upper and Lower case using Java Code functions into your business methods.
    Hoper this help.
    Vito

  • Mac keep automatically changing ALL CAPS to lower case in Pages.

    MacBook Pro automaticaly changes all CAPS to lower case in Pages. It will automatically revert and I can't make the CAPS stay, regardless if I hold 'shift' and type or press the 'caps lock' key. Is there a setting where I can disable this feature?

    You have not said where you are copying this from but it sounds like what you have is text that is styled by CSS on a web page or ATSUI (Apple's typographic type engine) to appear ALL CAPS.
    The actual text is actually U&lc or lowercase.
    You can restyle it using:
    Menu > Format > Font > Capitalization > All Caps
    Peter

  • Is Central Search Searchable Via Upper and Lower Case Letters

    Good evening,
    Does anyone know if Central Search is searchable using both upper and lower case letters?  We have the functionality enabled and can only bring back search results when we use upper case letters.  When we search on the same marketing object using lower case letters, we do not get any results. For example, TK2292 brings back marketing object TK0002292 but tk2292 does not bring back any results.  Advanced Search appears to be able to handle both search scenarios.  Any guidance would be greatly appreciated. 
    Regards,
    Gregg

    Hello,
    Did you put a breakpoint in the query method to check what you receive in the field 'marketing object' when you start from the central search of the advanced search?
    Is it different?
    Regards,
    Fred

  • Upper- and lower case filenames

    I have two Mac OS Extended (journaled) drives with one on my laptop and one on my desktop. I sometimes get an error that reads:
    "You can't copy some of these items because their names are the same as other items on the destination volume, and that volume does not distinguish between upper and lower case letters in filenames. Do you want to skip these items and continue copying other items?"
    Recently this happened when trying to force move (using the Command Key) data from my iDisk to my desktop hard drive.
    Does anyone know what is going on here?
    Is it advisable to first copy data to the desktop on the volume that you are moving to and then move it onto the harddrive and if so what is the reason for this?
    Thanks,
    Jon

    Hi Kappy.
    Thanks. Good information. Are you saying you can only /move/ across filesystems or disk volumes or are you saying you can only /copy/ across filesystems or disk volumes.
    My impression was that going from one hard drive to another hard drive - that the default was copy, but that you could force a move by holding down the Command Key. When I do this over here the little green plus symbol goes away seeming to imply that it is moving. However, /sometimes/ the dialog says it is Copying and sometime is says it is Moving.
    The problem is when it craps out in the middle of a Move (or a Copy). Ignoring the dupe file names with caps issue for the moment - what are you supposed to do when you get through a Move or a Copy (from Hard Drive to Hard Drive for instance) and Finder presents you with an error?!
    My understanding of your explanation is that Finder has gotten part way through a Copy and/or (?!) part way through an Erase.
    Is there any way of understanding WHERE it has gotten when it says it cannot complete an operation because filexyz.pdf is in use (even when it is not)? If I am moving 100 GB of data (or whatever) how am I supposed to know if it has only Copied some information, Copied and Erased some information, Moved some information, or Moved and Erased some information?
    Irrespective of the amount of data, when you get to the point that you cannot reasonably be expected to manually sort through this data how in the world am I supposed to know what Finder has done? More importantly, what is the best way to get back to a point at which you know what information is where?
    Thanks,
    Jon
    P.S. I'm moving data in Target Disk mode at this point and I am not getting errors like "The operation can't be completed because an item with the name "folder 100" already exists - WHEN I HAVE ALREADY SELECTED APPLY TO ALL AND OVERWRITE EXISTING FILES.

  • Upper and lower case Username creates Contact, Calendar, Note acces problems

    Dear All
    Maybe someone has a solution for this or discovered the same case. Our server infrastructer is using Username with upper and lower case letters e.g "Galler".
    Pushing these access data (Username, server adress etc.) for E-Mail, Contact, Calendar and Notes via the profile manager creates problems for the Contact, Calendar and Notes access, because profiles is rechanging the username in all lower case letters "galler". For the E-Mail it is not the case.
    Every help would be very appreciated. Maybe some solution in using username alias with only lower case letters, but I don't no how to establish.
    Thanks in advance for your help.

    Perre wrote:I'm used to being able to pick one or a couple of songs and then adding it a specified playlist. Is this impossible in sonata?
    It's clearly not impossible, just different than you expect. Create your playlist as you want it to appear in the Current tab (meaning don't dump every single song from your library in there, just the ones you want) and then save the playlist.
    Perre wrote:And if I try to play the m3u file created (the one with every song listed) through freevo I get a message that the directory is empty. What am I doing wrong??
    Look at save_absolute_paths_in_playlists in your mpd.conf.

  • Queries using "LIKE" but ignoring upper or lower case

    I have a question. I need to query the database in a cursor for a search results page. The thing is that I'm searching for a contact name, lets say, and the name is "Steven". My query "WHERE" clause says:
    WHERE contactName LIKE '%steven%';
    but it doesnt find it because I understand Oracle is case sensitive. Is there an extension to the LIKE keyword to ignore upper or lowe cases in this type of instance?
    Thanks for your help,
    Alejandro

    hope this will help
    dev>WITH names AS
      2        (SELECT 'steven' lname  FROM dual
      3         UNION ALL
      4         SELECT 'Steven'   FROM dual
      5         UNION ALL
      6         SELECT 'STEVEN' FROM dual
      7         )
      8       ,name_list as(
      9         SELECT 'steven' dname FROM dual   
    10           )
    11     SELECT lname
    12     FROM names,name_list
    13     WHERE upper(lname) like '%'||upper(dname)||'%'
    14  ;
    LNAME
    steven
    Steven
    STEVEN

  • Why upper or lower case choices for image file extensions?

    Thanks ahead of time for any help.
    I'm wondering why you would want the file extension in lower or upper case.   Is there a reason to choose one or the other in various situations?  This choice is an option in the import dialog window box under File Renaming> Extensions with choices of Leave as-is, Lowercase & Uppercase.

    JG_Coleman wrote:
    clvrmnky wrote:
    Modern Macs are case-preserving and case-aware but not case-sensitive.
    The option is just to provide more control for specific workflows.
    Really..."to provide more control for specific workflows"???  I've gotta say... if I'm wrong about UNIX systems and case-sensitive file extensions... it truly would seem senseless that there would be a setting for controlling the case of file extensions.  So far as I know, almost every major application omits such a feature.  For what type of workflow would you ever need to specify the file extension case, if not for a file system that uses case-sensitive file extensions?  I'm just curious, myself, actually...  Is there something I'm missing?
    What about writing to legacy network storage where extensions are not accepted unless in a specific case.  I believe Netware used to enforce upper-case extensions at some point.  If you had a collection of legacy data or datastore and had some service or scripts that operating on them, and could not be easily changed, you might really want to control exactly how those filenames are created.
    There are any number of paths one can go down where you can end up cursing an application because it cannot do a simple action, like write out a filename in the right case. Think of all the complaints found in these forums where someone has cited some odd use-case no one else could ever have imagined and then stated that it is obvious that Lr should accommodate this because it is so simple to fix (e.g., to do something like provide an option whereby extensions are made all upper- or lower-case.)
    You do know that even Windows and OS X are case-preserving, right?  So, the actual case used to create the file is in the file metadata, regardless of what the Finder or Explorer or shell may decide to show you. How this metadata is used by various APIs is open-ended.

  • Can i use another storage flash for my apple air mackbook(change from current 128Gb to 256GB without any issue)

    Can i use another storage flash for my apple air mackbook(change from current 128Gb to 256GB without any issue)

    There are some upgrade options available from do it yourself sites.
    See the MBair SSD upgrades on mid way down this page:
    http://eshop.macsales.com/shop/SSD/OWC/

  • How can I change a column to lower case?

    I selected an entire column and discovered that it's already set at Format > Font > Capitalization > None
    If I change "None" to "All Caps," it capitalizes everything. But when I change it back to "None," letters that were originally capitalized remain capitalized. How can I change EVERY letter in a column to lower case?
    Thanks.

    Format > Font > Capitalization changes how the text is displayed. But it doesn't change the actual text.
    To change all letters to lower case you can use the LOWER() function in cells that refer to the original text. Then select the cells with the formula displaying the "recapitalized" text, command-c to copy, and Edit > Paste Formula Results to remove the formulas.
    SG

  • UPPER and lower case file extensions for Photo Shop Elements using Windows 7

    How do I persuade WIndows 7 to show both UPPER and lower case file extensions, which is a very useful facility offered by my ancient, 2002, version of Photoshop Elements? When processing large volumes (100 plus) photos it is very useful to be able to spot those that have been processed among those awaiting my gentle touch. The JPEG file extension produced by my camera is UPPER case so by using "Save as" with lower case the modified photos are immediately spotted. This worked fine on Windows XP and the same programme has loaded and works well on my new laptop which came loaded with Windows 7 EXCEPT that it persists in using UPPER case all the time, irrespective of the preference settings in PSE. HELP!
    Camperman1

    In PSE there is a facility "File > process multiple files".
    Using this facility you can actually process multiple files at one go and you can easily rename images.
    Addi

  • Upper to Lower Case Scripts

    Hi. Does anyone have Upper to Lower Case scripts for iTunes? In other words translates Song Titles to Lower Case.
    Thanks in Advance!!

    Go to http://dougscripts.com/itunes/index.php - there are loads of scripts for most iTunes needs including what you are looking for.
    MJ

  • String to upper or lower case

    i can't remember that method ( i'm pretty sure there is one ), that takes a string and makes it all either upper or lower case.
    can anyone tell me?
    appreciate it.

    ah, thank you! i forgot about that...i was looking in StringBuffer...
    cheers (**goes back to homework...)

Maybe you are looking for

  • Acrobat X printer issue

    While attempting to scan a document, I receive an error alert telling me that that is an "error interacting the the scanner: selected scanner not found"  The HP Officejet Pro 8500 is present and functioning on the PC.  Have uninstalled/installed the

  • My iMessage isnt working and it's noy letting me activate it

    I am in europe and my iMessage all of a sudden won't let me activate it ans it isn't working

  • What Fonts are in Adobe Reader XI Font Packs - Asian and Extended Language Pack?

    I have been unsuccessful in determining what fonts are included in the "Adobe Reader XI Font Packs - Asian and Extended Language Pack". Is there a description link or a way to determine from within Reader? Thanks

  • All redo log groups is active

    Hello dear gurus! After shutting database with option "abort" we have unconsisten state of datafiles. I ask to explain : 1) - does the ARCH background processes flash whole redo buffer into redolog ? (In other words how reached consistency if all red

  • Custom lookup

    hello every body I just begin siebel CRM ondemand and i don't know a lot about it. I want to create custom lookup functionality to populate custom fields on an On demand page. For example Lookup a Partner Account to the Opportunity Detail Page using