Question: CSE 232 Fall 2017 Programming Project 04 This assignment is worth 30 points (3% of the course grade) and must be completed and turned in



CSE 232 Fall 2017 Programming Project 04 This assignment is worth 30 points (3% of the course grade) and must be completed and turned in before 11:59 on Monday, October 2 This assignment will give you more experience with functions and a little work with strings Basically, we are going to play games with an integer number and its sequence of digits. We can classify numbers as to the order of its digits and their relationship. There are 4, rather odd, categorizations which are metadrome: An integer whose digits are strictly increasing: 12343 is a metadrome, 11223 is tot. plaindrome: An integer whose digits are either the same or increasing: 11223 is a plaindrome, 11221 is not . . .katadrome: An integer whose digits are strictly decreasing: 54321 is a katadrome, 34432 is tot. nialpdrome: An integer whose digits are the same or decreasing: 334432 is a nialpdrome, 54323 is not. nondrome: If an integer is not classified as any of the above, it is a nondrome. . . Different Bases to a number We are also going to example, if the number were base 2, then only 0,1 are allowed in the integer. If the number were base 16, then 0-9 and a-f would be allowed. We are going to extend that idea all the way to base 36 by allowing the lower case letters a-z to signify a multidigit number: a-10, b-l, f-15, , z- 35. allow you to make the above distinctions in the context ofa numeric base. For Project Description/Specification Just a reminder. We peovide exact our function specifications: the function name, its return type, its arguments and each argument's type. Do not change the function declarations! Functions function: metadrome: Boolean return. Arguments are astringn, the input number, and an int base. If n is a metadrome in the provided base the function returns true, otherwise it returns false. function: plaindroce: Boolean return. Arguments are . astringn, the input number, and an int base. If n is a plaindrome in the peovided base the function returns true, otherwise it returns Ealse. function: katadrome: Boolean return. Arguments are . astringn, the input number, and an int base. If n is a katadrome in the provided base the function returns true, otherwise it returns false
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
