Question: Needed in beginners JAVA programming with explanation on what you do. Within the 1900 folder on your desktop, create a new folder named Lab6HWLastnameFirstname (4

Needed in beginners JAVA programming with explanation on what you do.  Needed in beginners JAVA programming with explanation on what you do.
Within the 1900 folder on your desktop, create a new folder named

Within the 1900 folder on your desktop, create a new folder named Lab6HWLastnameFirstname (4 pts) Problem 1 An ordinal number can be thought of as the "adjective forin" of a nunber. Examples of ordinal numbers are 1st, 78th, and 782nd. In Euglish. au ordinal uunber can usually be produced by addiug "th" to the end of the number, but there are exceptions for numbers ending in 1 (1st. 101st). 2 (2nd, 892nd). or 3 (3rd, 4573rd). Therc's also an exception to that exception for munbers that eund iu 11. 12. or 13 these just use the standard tlh (111th. 8013th). (Isu't uatural lauguage wonderful??) Within your Lab6HW folder, crcatc a new class named OrdinalNumbers.java. Within that class. write a method named toordinal that takes one int paraueter and returns the ordiual versiou of that parameter as a string. If the parameter is negative, toordinal should return the string "invalid". toOrdinal should work correctly for any non-ncgative int value. Here are some example arguments for the toordinal method and their expected return values. Note that the double quotos in the return valucs simply indicate that these are strings thenselves should not be included as characters within the strings. the double quotcs Argument Rcturn Valuc 76 invalid" "Oth" "612th" "9922nd" 612 9922 2147483643 "2147483643rd

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!