Ask Question, Ask an Expert

+1-415-315-9853

info@mywordsolution.com

Ask C/C++ Expert


Home >> C/C++

problem 1) prepare a function to print the sum and average of first n odd numbers where n is passed to the function as argument.

problem 2) prepare a function that returns the factorial of a number where number is passed to the function as argument.

problem 3) prepare a function that returns 1 if the number is prime and 0 if not prime. Number is passed to the function as argument.

problem 4) prepare a function that prints the sum of the digits, count of the digits and reverse of a number. Number is passed to the function as argument.

problem 6) prepare a function that has two integer arguments and returns first number raised to the power second number.

problem 7) prepare a function called zero_small that has two integer arguments being passed by reference and sets the smaller of two numbers to 0.

problem 8) prepare a function that receives a string (character array) as argument and producesa string in which first letter of each word is capitalized.

problem 9) prepare a function that receives a string and a character as argument and returns 1 if the character is found in the string else returns 0.

problem 10) prepare a function to search a given string into another string and returns the position if found otherwise returns 0. Both the strings are passed to the function as argument.

problem 11) prepare a function to return the length of the string. String is passed to the function as argument.

problem 12) prepare a function to reverse a string.

problem 13) prepare a function to search a string in the array of strings. String and array of strings should be passed to the function as parameters.

problem 14) prepare a function to copy one string into another string. Both the strings are passed to the function as argument.

problem 15) prepare a function to compare two strings. The strings must be passed to the function as argument. The function should return 0 if the strings are equal else returns 1.

C/C++, Programming

  • Category:- C/C++
  • Reference No.:- M94906

Have any Question? 


Related Questions in C/C++

Assignment part acreate a checkbook program using c

Assignment (part a) Create a Checkbook program using C : • Create a Check structure. Include:   o Check number (should be an integer).   o Date (use type char[ ]).   o To   o Amount   o Description • Add functions to:   ...

Write a c program that calculates and prints the average of

Write a C program that calculates and prints the average of two or more salaries entered by the user. The program should first prompt the user to enter the number of salaries to process (make sure: at least 2 salaries mu ...

Programming in c assignmentwrite a c program that computes

Programming in C Assignment Write a C program that computes and outputs the current age of the United States in days (you can use 1776 as theUS founding year). You don't have to worry about fractional years or leap years ...

The second portion instruction shown below which is the

The second portion (instruction shown below) which is the actual C++ program is needed by this Saturday. Write a C++ program that is menu-driven that allows for the following menu choices:Load an exam: Loading an exam sh ...

1 write a c program that includes a function called lobster

(1) Write a C program that includes a function called lobster() that accepts three arguments: a character and two integers. The character argument is the character to be printed by lobster(). The second argument is the n ...

Assignmentinstructionsthis assignment is to implement your

Assignment Instructions This assignment is to implement your own mini-grocery store in C++. Suppose you have the following Food hierarchy: FOOD FRUIT APPLE BANANA GRAPE DAIRY MILK YOGURT CHEESE (your choice) (three items ...

Programming cc assignmentsyoull need to download this to

Programming C/C++ assignments You'll need to download this To write the program. The programs will be written using the Microsoft Visual C++ Express Edition IDE (Integrated Development Environment), which can be download ...

Write a console-based c program that can be used as a math

Write a console-based C++ program that can be used as a math tutor for a young student. The program should display two random numbers consisting of three digits each to be added in columnar format, such as: 247 +129 ---- ...

Modules in c are called functions c programs are typically

Modules in C are called functions. C programs are typically written by combining user created functions as well as "pre-packaged" functions found in the C Standard Library. For instance, printf() is a function that is fo ...

Assignmentthis is the programthis program will use 2

Assignment This is the program: This program will use 2 different data structures to perform the same tasks; a vector and a dynamically sized array Write a complete C++ program that will: Declare a vector of integers wit ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Section onea in an atwood machine suppose two objects of

SECTION ONE (a) In an Atwood Machine, suppose two objects of unequal mass are hung vertically over a frictionless

Part 1you work in hr for a company that operates a factory

Part 1: You work in HR for a company that operates a factory manufacturing fiberglass. There are several hundred empl

Details on advanced accounting paperthis paper is intended

DETAILS ON ADVANCED ACCOUNTING PAPER This paper is intended for students to apply the theoretical knowledge around ac

Create a provider database and related reports and queries

Create a provider database and related reports and queries to capture contact information for potential PC component pro

Describe what you learned about the impact of economic

Describe what you learned about the impact of economic, social, and demographic trends affecting the US labor environmen