Write functions for characters that do following tasks given in the table below: Function Name 1....
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write functions for characters that do following tasks given in the table below: Function Name 1. MyIsAlpha() 2. MylsDigit() 3. MylsLower( 4. MylsUpper( 5. MyConvertUpper() 6. MyConvertLower() 7. Myisxdigit() 8. Myisprint() 9. Myispunct() 10. Myisspace() Task Returns 0 if the character passed to it is an alphabet Returns 0 if the character passed to it is a Digit Returns 0 if the character passed to it is lower case Returns 0 if the character passed to it is upper case This function Converts lower case alphabet to upper case if it is in lower case. You can use MylsLower() or MylsUpper() for this function. This function Converts upper case alphabet to lower case if it is in upper case. You can use MylsLower() or Myls Upper() for this function. Returns 0 if the character passed is a hexadecimal digit (0-9, a-f, A-F). Returns 0 if the character is a printable character (including space) Return 0 if the given character is a punctuation character. Return 0 if the given character is a space character. Guide Lines: 1. For all functions, use the same names as given above. 2. Use only character parameters. 3. Test these functions appropriately. 4. Do not use any built-in function or library. Write functions for characters that do following tasks given in the table below: Function Name 1. MyIsAlpha() 2. MylsDigit() 3. MylsLower( 4. MylsUpper( 5. MyConvertUpper() 6. MyConvertLower() 7. Myisxdigit() 8. Myisprint() 9. Myispunct() 10. Myisspace() Task Returns 0 if the character passed to it is an alphabet Returns 0 if the character passed to it is a Digit Returns 0 if the character passed to it is lower case Returns 0 if the character passed to it is upper case This function Converts lower case alphabet to upper case if it is in lower case. You can use MylsLower() or MylsUpper() for this function. This function Converts upper case alphabet to lower case if it is in upper case. You can use MylsLower() or Myls Upper() for this function. Returns 0 if the character passed is a hexadecimal digit (0-9, a-f, A-F). Returns 0 if the character is a printable character (including space) Return 0 if the given character is a punctuation character. Return 0 if the given character is a space character. Guide Lines: 1. For all functions, use the same names as given above. 2. Use only character parameters. 3. Test these functions appropriately. 4. Do not use any built-in function or library.
Expert Answer:
Related Book For
Posted Date:
Students also viewed these programming questions
-
Review | Constants A skater has rotational inertia 5.31 kg m with his arms outstretched and a baseball glove on each hand; the pocket of each glove is 123 cm from his rotation axis. He's spinning...
-
How do integrative and distributive negotiation strategies differ in resolving workplace conflicts, and what are the long-term implications of each approach ? Explain
-
You are required to write a Python program that will manage character (heroes and villain) information. Character (hero and villain) information will be stored in a text file that will be read in...
-
Which statement is correct? A) Tax credits reduce tax liability on a dollar-for-dollarbasis. B) Tax deductions reduce tax liability on a dollar-for-dollarbasis. C) The benefit of a tax credit depends...
-
Why did P&G rely heavily on personnel in both companies to implement post-closing integration?
-
Rustafson Corporation is a diversified manufacturer of consumer goods. The company's activity-based costing system has the following seven activity cost pools: Required: 1. Compute the activity rate...
-
A firm that is planning to market a new cleaning product surveyed 1268 users of the leading competitors product. Each person rated the product as fair, good, or excellent. In addition, each person...
-
Polo Ralph Lauren Corporation designs, markets, and distributes a variety of apparel, home decor, accessory, and fragrance products. The company's products include such brands as Polo by Ralph...
-
ANA was driving her car on the way home when, suddenly two men on a motorcycle approached, knocked on her window, and point a gun at her. The two men were trying to steal from her but in her reaction...
-
On May 2, 1987, Hannah acquired residential real estate for $450,000. Of the cost, $100,000 was allocated to the land and $350,000 to the building. On August 20, 2015, the building, which then had an...
-
A statement of financial position for Green and Gold, prepared on October 1, 2018 is shown below. Partners share profit and loss in the ratio of 75:25, respectively. GREEN AND GOLD Statement of...
-
Recently, an extremely strong solar flare sent X-rays toward Earth that disrupted Earth's ionosphere. Radio waves leaving a transmitter on Earth's surface reflect off of Earth's ionosphere, and can...
-
d) Assuming Max could somehow increase his rate of return, what annual rate would he need to achieve in order to reach his goal in the original time frame of six years? (nearest 100th of a percent)....
-
How does the increase of data being worked on affect query optimization? What database design techniques can be applied to improve performance?
-
Three resistors R = 89.2 2, R2 = 23.0 2, R3 = 70.0 2, and two batteries & = 40.0 V, and = 362 V are connected as shown in the diagram below. (a) What current flows through R, R2, and R? 11 12 13 (b)...
-
SJW Financial Services has its headquarters in Nanaimo, British Columbia. The City of Nanaimo assesses property taxes on June 30 annually and notifies property owners electronically. Property taxes...
-
Mr. Deepak gives the following particulars of his salary income for the year ended 31st March 2021. Basic salary Dearness allowance Own contribution to RPF Employer's contribution to RPF Interest on...
-
Chapter 9 Stock Valuation at Ragan Engines Input area: Shares owned by each sibling Ragan EPS Dividend to each sibling Ragan ROE Ragan required return Blue Ribband Motors Corp. Bon Voyage Marine,...
-
Find the derivative of cot x by using the quotient rule and the fact that cot x = cos x/sin x.
-
In Exercises, find f x (x, y) and f y (x, y). Then find f x (2, -1) and f y (-4, 3). Leave the answers in terms of e in Exercises. (x, y) = (7x 2 + 18xy 2 + y 3 ) 1/3
-
Estimate the slope of the tangent line to each curve at the given point (x, y). 0 $ -2 (3,-1). LI
-
What is a CPA's reporting responsibility when associated with unaudited financial statements of a public company?
-
What levels of service may a CPA provide on pro forma financial information?
-
Statements on Standards for Accounting and Review Services (SSARS) require an accountant to report when the accountant has a. Typed client-prepared financial statements, without modification, as an...
Study smarter with the SolutionInn App