Questions: 11 448

Answers by our Experts: 10 707

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Write function headers for the functions described below: (i) The function check has two parameters. The first parameter should be an integer number and the second parameter a floating point number. The function returns no value


Write a user defined function that will ask the user to input 5

array integers and performed the following menu functions:

1. Maximum

2. Minimum

3. Count Odd

4. Count Even

5. Exit

If the user press the following number (s), do the corresponding

functions

1. Print the largest array value

2. Print the lowest array value

3. Count the number of even number(s)

4. Count the number of odd number(s)

5. Exit

Sample Input/Output:

==========Main Menu==========


[1] – Maximum

[2] – Minimum

[3] – CountEven

[4] – CountOdd

[5] – Exit

==============================

Enter your choice: 2

Enter 5 integer number(s):

20

30

8

500

800

The lowest value is: 8


Write a C++ program to call user defined function through switch

statement.

Sample Input/Output:


==========Main Menu==========

[S/s] – Square

[C/c] – Cube

[D/d] – Double

=============================


Enter your choice:d

Enter an Integer number:5

Double of 5 is 10


Do you want to try again? Y/y


==========Main Menu==========

[S/s] – Square

[C/c] – Cube

[D/d] – Double

=============================


Enter your Choice:s

Enter an Integer number:10

Square of 10 is 100

Do you want to try again? Y/y


==========Main Menu==========

[S/s] – Square

[C/c] – Cube

[D/d] – Double

=============================


Enter your Choice:C

Enter an Integer number:4

Cube of 4 is 64

Do you want to try again? N/n

Exit/Terminated


Minimum and Maximum array entry

With a function that take as parameters a one dimensional array and

the capacity of the array. Your function has to find the minimum and

maximum entry in a one dimensional array. Write a driver program that

reads array values and finds the minimum and maximum entry using your

function.

Sample Input/Output:

Enter a no. of array elements: 5

Array[1]: 20

Array[2]: 80

Array[3]: 90

Array[4]: -23

Array[5]: 70

Minimum Array Entry: -23

Maximum Array Entry: 90


Mr. Mohlamonyane needs to take out a loan to buy a new car. He wants an application that will allow him to enter the loan amount and the number of years he has to pay off the loan (called the term). The term can be 2 years, 3 years, 4 years, or 5 years only. The application should calculate and display his monthly car payment, using annual (per year) interest rates of 5%, 6%, 7%, 8%, 9% and 10% respectively.


Create a program of temperature conversion (Celsius, farenheit) using array and array structure

Write a program that computes for the average of 5 numbers using a sequence control structure. 


 Write a program that asks the user for their name and greets them with their name. (Example “Hello Jade”)


Write C++ program to create a base class named Person that includes variables: name and age and then define a derived class named Student that includes four functions setName(), setAge(),setMark(), getName(), getAge() and getMark () to set and return the name of student, age and mark. then define a derived class named Student2 which is derived from both above classes and includes one function named checkAge() to check if the age of students Less than 12 then the student is in primary school and checkMark() to check if mark is less than 50 then student is passes the exam.

Instructions:

  1. In the code editor, you are provided with an array of characters (or a string).
  2. Your task is to ask the user for an integer input which represents the index and then print out the character of the string found at that index.

Code:

#include <iostream>

using namespace std;


int main() {

  char array[100] ="supercalifragilisticexpialidocious";



  return 0;

}


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS