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...
-
Walt Disney 2.125% bonds due in 2023 were reported in The Wall Street Journal as selling for 103.536. Were the bonds selling at a premium or at a discount? Explain.
-
If a system of equations has one solution, the system is_________ and the equations are ________.
-
Liberty's return on common stockholders' equity can be described as a. Weak b. Normal c. Average d. Strong
-
Shankar Company uses a perpetual system to record inventory transactions. The company purchases inventory on account on February 2, 2015, for $40,000, with terms 3/10, n/30. On February 10, the...
-
Hadley is a 25-year-old recent graduate who has started a new career. He plans to invest19% 19%of his$60,000 salary into a 403(b) that returns5%annually. How much will Hadley accumulate in his 403(b)...
-
Faced with rising pressure for a $15 per hour minimum wage rate, the farming industry is currently exploring the possible use of robotics to replace some farm workers. The Lettuce Bot is one such...
-
Frank is a retired Marine gunnery sergeant who owns 9 percent of a corporation's stock. After his Marine Corps retirement ceremony, Frank moved to the Madagascar coast, resolved there to live off his...
-
The initial financing of the project will be carried out as follows:- 55% equity and 45% debt. The company paid $1.50 per share in the form of dividend this year, which is likely to increase at a...
-
The Case of Surfaces Road Maintenance Ltd. and the Roadwork Employees' Union Surfaces is a company that provides road maintenance services in the Okanagan Valley. It has a contract with the Regional...
-
In your opinion, is it important to have completed this thorough review of the history and evolution of applied behavior analysis? Why or why not? In what ways do you think the knowledge you have...
-
Describe the impact to the organization if the change initiative is unsuccessful again, and potential steps the inter-professional team could take if the change is unsuccessful.
-
Suppose a sample of a certain substance decayed to 73.2% of its original amount after 300 days. (Round your answers to two decimal places.) (a) What is the half-life (in days) of this substance? days...
-
A parking garage in downtown Baltimore offers its services to both monthly customers, who pay a fixed fee every month, and to visitors, who pay an hourly fee (assume that the hourly fee is the same...
-
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...
-
What is the function of a steering gear?
-
A shaft running at \(1200 \mathrm{rpm}\) is connected to a second shaft by a Hooke's joint. The angle between the axes of the shafts is \(15^{\circ}\). Determine the velocity and acceleration of the...
-
Watt mechanism is capable of generating (a) approximate straight line (b) exact straight line (c) approximate circular path (d) exact circular path.
Study smarter with the SolutionInn App