Write a function to take a string and a character

Assignment Help Computer Engineering
Reference no: EM132200251

Question :

Write a function to take a string of no more than 50 characters and a character and returns the count of a letter the user inputs. If the letter is not found, the functions returns -1.

Use the function in main to get two inputs from the user, a sentence and a character, then show the count of that character.

THIS IS A C PROGRAM.(with printf and scanf)

Reference no: EM132200251

Questions Cloud

What is the return on the market : The required return on Disney's equity is 12.92 percent. The risk-free rate is 2.36 percent. What is the return on the market?
Perform non-maximal suppression along the gradient direction : Write a functionin opencv,my_non_maximal_suppression(magnitude, orientation, tl), to perform non-maximal suppression along the gradient direction.
What capital budgeting model are we using : What capital budgeting model are we using, and what decision is recommended from that model?
Balance sheet identify what would be : If D/A is 0.35, according to the balance sheet identify what would be (a) D/E; and (b) the equity multiplier?
Write a function to take a string and a character : Write a function to take a string of no more than 50 characters and a character and returns the count of a letter the user inputs.
What is the value of ingram equity to simon : What is the value of Ingram's equity to Simon? (Round your answer to the closest thousand dollars.)
Write a function that takes as an argument and a list : Write a function that takes, as an argument, a list, and an integer, n.
What is the operating cash flow : Variable costs are 52 percent of sales, the annual fixed costs are $89,300, and the tax rate is 34 percent. What is the operating cash flow?
What is the reit stock worth today : REIT pays out a today $3.00 and the projected dividend rate is 2% the investors a required rate of rate of 5%. Gordon dividend model, what is the REIT'?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Which of the following return an array

CSS vendor prefixes are a way for browser companies to add support for experimental features before those features become part of the CSS specification.

  What is a best way to address issues

What is the best way to address issues and concerns in a Real network management system (NMS) as it pertains to the processes that take place through out network discovery and mapping of the network.

  Discuss the problem related to it services

You have been hired by XYZ Firm as an information technology (IT) analyst who will work closely with the new chief information officer (CIO).

  Describe the role of operating systems

MN404 - Fundamentals of Operating Systems and Programming - Describe the role of Operating Systems (OS) and its different subsystems in controlling computer

  Explain the purpose of having user involvement

Explain the purpose of having user involvement and product goals before requirements can be established. Suggest degree to which most users should be involved.

  Explain how an enterprise would use 3g, 4g and wwan

Explain how an enterprise would use 3G, 4G and WWAN Use at least three quality resources in this project.

  When programmer intentionally creates endless loop

When programmer intentionally creates an endless loop, how would he end the loop.

  Give regular expression for the given statements

All lines that contain the word ‘index' followed by any odd number/digit followed by any even number/digit (ignore 0's).

  What is essential address field width

What is essential address field width

  Create a program that analyzes a text file and produces

Any sequence of alphanumeric characters (length >= 1) with the beginning and ending non-alphanumeric character removed counts as a word.

  Would you say wlan protocols are all closely related

Would you say WLAN, Wireless Cell phones, Wi-Fi, and Wi-Max protocols are all closely related? Describe some of those protocols in use?

  Write a program that reads student scores

Write a program that reads student scores, gets the best score (BestScore), and then assigns letter grades.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd