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

In this exercise you will create a program that reads a letter of the alphabet from the user. If the user enters a, e, i, o or u then your program should display a message indicating that the entered letter is a vowel. If the user enters y then your program should display a message indicating that sometimes y is a vowel, and sometimes y is a consonant. Otherwise your program should display a message indicating that the letter is a consonant.


For example, suppose that one serving of Sambar takes 500 g of tomato and 300 g of onion. Suppose that you have a 900 g package of tomato and a 660 g package of onion. You could form these into a kit that makes two servings of Sambar. To make two servings, 1000 g of tomato and 600 g of onion are required. Since the 900 g of tomato you have is within [90, 110]% of the 1000 g of tomato required, and the 660 g of onion you have is within [90, 110]% of the 600 g of onion required, this is acceptable. However, you could not say that the kit makes one or three servings of Sambar, nor could you say that it makes 1.999 servings (the number of servings must be an integer).

Write a program to print a pyramid of N rows

+ + + + * + + + +

+ + + * * * + + +

+ + * * * * * + +


Create an abstract class Shape and the derived classes Square, Triangle and Circle. Write a

java program to display area of different shapes.


Let a class Person contains data members name and age. A constructor with two arguments

is used to assign name and age. Person is of two types a) Student and b) Teacher. class

Student contains data members i)course ii) Roll Number and iii)Marks and method

display() to display data related to student. Similarly, class Teacher contains data members

i) subject_assigned (May take this as a String) ii) contact_hour and method display () to

display data related to teacher. Implement this program using base class constructor in

derived class


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS