Question No. 2 [10 Marks] Write a C program which should take an organization's name from...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Question No. 2 [10 Marks] Write a C program which should take an organization's name from the user as a string. You have to implement the following function on that string: 1. find Length(): It will be a user defined function and will return the length of the input string's length. 2. findAbbrevation(): It will be a user defined function and will find the abbreviation of the organization's 3. printAbbrevation(): This function will print the abbreviation on the screen. Note: Your Output should be in following format, otherwise you'll lose marks: name. Enter Name of The Organization: Pakistan State oil Total Characters in The String are 18. Abbreviation of 'Pakistan State oil' is PSO Question No. 2 [10 Marks] Write a C program which should take an organization's name from the user as a string. You have to implement the following function on that string: 1. find Length(): It will be a user defined function and will return the length of the input string's length. 2. findAbbrevation(): It will be a user defined function and will find the abbreviation of the organization's 3. printAbbrevation(): This function will print the abbreviation on the screen. Note: Your Output should be in following format, otherwise you'll lose marks: name. Enter Name of The Organization: Pakistan State oil Total Characters in The String are 18. Abbreviation of 'Pakistan State oil' is PSO
Expert Answer:
Answer rating: 100% (QA)
include include include int findLengthchar char findAbbrevationchar int void printAbb... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
You have to implement encryption and decryption with Simplied DES, as discussed in the class and in Stallings 3rd edition. The permutations IP, P10, P8, and SW, and the functions fk; F, and the S-box...
-
Write a C program that waits for 14 machine cycles in Normal mode. Generates a square wave of 50% duty cycle on PORTB.5 (High for 14 Machine Cycles & Low for 14 Machine Cycles)
-
Write a C program for taking a string as an input from keyboard and count number of vowels from the string as well as print those vowels.
-
FIGURE Q38.5 is the current-versus-potential-difference graph for a photoelectric-effect experiment with an unknown metal. If classical physics provided the correct description of the photoelectric...
-
How does a company determine the amount of income tax expense to report in an interim period?
-
Why are lawyers and technology experts warning companies to store, organize, and manage computer data, including e-mail and instant messages, with sharper diligence?
-
Defendant Kenneth Blake was married to Charlene Hinton-Blake, who died in 2012. Three of Hinton-Blakes sisters, including Yvonne Hinton, assisted her with day-to-day care during a four-year period of...
-
Bruno Company has decided to expand its operations. The bookkeeper recently completed the balance sheet presented on the next page in order to obtain additional funds for expansion....
-
dentify the correctly revised sentence that adds interest and variety by beginning with an infinitive. Brooke congratulated me on securing investor financing for my startup company. Multiple choice...
-
Develop a spreadsheet for computing the demand for any values of the input variables in the linear demand and nonlinear demand prediction models in Examples 1.7 and 1.8 in the chapter.
-
(e) How could the sequence of Ala-Met-Thr be distinguished from that of Thr-Ala-Met by tandem ESI-MS? Explain in detail. (f) Draw the structures of products from a trypsin-catalysed reaction of...
-
Explain mortgage markets.
-
Discuss the major mergers that occurred in the banking sector.
-
What are the strategic drivers facilitating the growth of the financial services industry?
-
What are the major risks faced by insurance companies?
-
Discuss private equity and hedge funds.
-
3. Assume the following information: Beal Bank Bid(buying) price of New Zealand dollar Ask(selling) price of New Zealand dollar Yardley Bank $0.401 $0.404 $0.398 $0.400 Is there any way to buy, say,...
-
Stephen Schor, an accountant in New York City, advised his client, Andre Romanelli, Inc., to open an account at J. P. Morgan Chase Bank, N.A., to obtain a favorable interest rate on a line of credit....
-
Professor Patricia (Patty) Pate is retired from the PalmSprings Culinary Arts Academy (PSCAA). She is a single taxpayer and is 68 years old. Patty lives at 98 Colander Street, Henderson, NV 89052....
-
During 2012, William purchases the following capital assets for use in his catering business: New passenger automobile (September 30)........................$21,500 Baking equipment (June 30)...
-
During 2012, Palo Fiero purchases the following property for use in his manufacturing business: Palo uses the accelerated depreciation method under MACRS, if available, and does not make the election...
-
Calculate the P(Gain) of each asset class (see above) and compare each. Which is most efficient?
-
Calculate and graphically demonstrate the risk of each asset; see above.
-
Compare the average returns for equity, debt and the major real estate asset classes for the last 5-, 10-, and 15-year periods. The asset classes are equity (S&P 500), debt (VBMFX), office, retail,...
Study smarter with the SolutionInn App