Write a function to take a string of fifty characters

Assignment Help C/C++ Programming
Reference no: EM131849053

Problem

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 function 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.

Reference no: EM131849053

Questions Cloud

Express answer in scientific notation : Convert the mass of 142 lb into atomic mass number. Express answer in scientific notation.
How can a manager influence the budgeting process : Respond to the questions in the statement - How can a manager influence the budgeting process and ensuing budgetary numbers in unethical ways
Think about debate issues in public health : How does the book change the way one should think about the subject (or about debate issues in public health)
What is the new pressure inside the cylinder : If the volume remains the same, what is the new pressure inside the cylinder?
Write a function to take a string of fifty characters : 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.
Describe the cultural considerations in identification : Describe the cultural considerations in identification, assessment, and intervention. Hypothesize the prognosis.
What is the total pressure in the container at equilibrium : Initially, only H2S is present at a pressure of 0.114 atm in a closed container. What is the total pressure in the container at equilibrium?
What is the total mass of the excess reactants : What is the total mass of the excess reactants left over after the reaction in complete?
Explain the differences between the philosophies of wellness : Discuss how they relate to the concept of wellness as defined in this course, how they relate to specific challenges or supports for wellness.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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