Question: Create a C++ Program for the following items: Write a code to create an array with the following elements: a, b, c, d, e, f,

Create a C++ Program for the following items:

  1. Write a code to create an array with the following elements: a, b, c, d, e, f, g, h, i, j, k. Test if the array contains a specific character provided by the user. If found display the index number else display Item not found.
  2. Write a code that allows the user to input 10 students grade and displays the total average of grade.
  3. Write a code that allows the user to input 10 integers and store the values in an array. Check each element and display all even numbers.
  4. Create a logical calculator that takes a value, a basic operator (&,I,!,a), and all values from user input, and have it print the result of the operation. The logical operations should be wrapped inside of functions.
  5. Create a code using a function to sort 10 double values. Allow the user to input the values.
  6. Write a program that uses loops to perform the following steps:
    1. Allow the user to input two integers. Variables: Num1 and Num2 (Num1 must be less than Num2, values must be a positive number) (use loop); create a user-defined function to validate the user's input.
    2. Output all even numbers between Num1 and Num2. (use loop); create a user-defined function. The function is a void function.
    3. Output the sum of all odd numbers between Num1 and Num2. (use loop); create a user-defined function called sum(). Declare a variable called sumodd in the main() for the sum(). sum() is a value returning function. Use sum odd to hold a returned value.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!