Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Current Trends In Database Technology Edbt 2004 Workshops Edbt 2004 Workshops Phd Datax Pim P2panddb And Clustweb Heraklion Crete Greece March 2004 Revised Selected Papers Lncs 3268

Authors: Wolfgang Lindner ,Marco Mesiti ,Can Turker ,Yannis Tzitzikas ,Athena Vakali

2005th Edition

3540233059, 978-3540233053

More Books

Students also viewed these Databases questions

Question

What are the skills of management ?

Answered: 1 week ago