• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to make a number lower case?

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Write a program to convert uppercase numbers to lowercase numbers. You may use any part of the Java API but may not team together with other students and turn in group work. You must write the class and provide at least 5 methods but no more than 8 methods to accomplish this task. Your program must be able to accept arguments from the command line
public class MakeLowerCaseNumber
{
public MakeLowerCaseNumber(String[] args)
{
int i;
for (i =0; i < args.length; i++)
{
makeLower(args);
}
}
private void makeLower(String argument)
{
System.out.print("Making " + argument + " into a lowercase number ");
}
public static void main(String[] args)
{
MakeLowerCaseNumber makeLowerCaseNumber = new MakeLowerCaseNumber(args);
}
}

I am lost. I have written this much. It doesn't make my number lowercase. Can someone show me what to do?
 
ananthamiyer ananthamiyer
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please some one help me fast.It is my school assignment and i need help urgently
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you provide for us the definition of a "lower-case number?" The Arabic digits used in much of the world don't have case.
 
ananthamiyer ananthamiyer
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I suppose they are Natural Numbers
All i know is that i need to submit this assignment hook or crook or i may get demoted.So to the Java Gurus please finish this assignment for me.
Or teacher does not seem to understand and she is very keen on everybody submitting this assignment
So kindly help me
 
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

So to the Java Gurus please finish this assignment for me.


Excuse me, but I don't think you will get a big response from the users of this board like that. If you have a specific question, we will be glad to help.
I don't know what a lower case number is, but could it mean that the numbers are spelled out for you from the command line? Like maybe:
java ConvertNumber FIVE
What other part of the program is giving you problems?
 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
all your program does at current is call a method makeLower , for every index in an array..
What exactly is required? do you want
'THREE' to become 'three'
or
' 1 2 3 ' to become '3 2 1' ?
remember we are here to help, but not just simply complete your assignment for you. if its for the Conversion from THREE to three then this should help:
 
Ranch Hand
Posts: 233
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
or simply:
System.out.println(number);
System.out.println(number.toLowerCase);
[ January 28, 2004: Message edited by: Steve Wysocki ]
 
Timmy Marks
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
All of which makes me wonder if that is what is needed, since there should be at least 5 methods!
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic