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

(Pure Virtual Function) Write the above program by modifying by making display() as pure virtual function.


Q1:Define a class ABC. Derive two classes BBC and KBC from ABC. All the classes contains same member function name as display(). The base class pointer always holds the derived class objects.

a) Write a program such that base class pointer or reference will always access/call the base version of the members available in derived class, do not have any access to the derived class members.

b) Write a program such that base class pointer or reference will always access/call the derived version of the members available in derived class, do not have any access to the base class members.

Write down the concepts used for bit a) and b) separately.


write a program which takes the input from these arrays and decides the maximum runs that your favourite player has to score so far in order to get the orange cap. [The orange cap is awarded to the person who scores maximum runs in the tournament]. Also, please find out the maximum strike rate achieved by a batsman so far. Note: In total you are given 8 arrays represent the runs scored and the next 4 represent the total number of balls faced.

Sample Run:

Input:


[10, 45, 500, 400, 45, 56, 67, 78, 100, 8, 11]

[100, 450, 510, 410, 415, 56, 68, 87, 101, 9, 9]

[404, 445, 520, 450, 415, 156, 167, 488, 110, 4, 2]

[505, 445, 554, 410, 445, 556, 167, 178, 70, 4, 1]


[20, 100, 500, 345, 45, 65, 86, 69, 100, 7, 10]

[101, 246, 500, 355, 145, 165, 45, 45, 54, 8, 9]

[434, 456, 550, 395, 445, 165, 96, 369, 100, 4, 6]

[520, 340, 500, 405, 345, 565, 186, 169, 67, 3, 2]


Output:

Maximum Runs Scored: 556

Maximum Strike Rate: 286.206897​



make a program that will compute and display the total amount of a purchased product


I absolutely need to know which numbers from 1 to 1000 are considered perfect. From what I recall, a perfect number is a positive integer that is equal to the sum of all its divisors other than itself.


Example:

6 is a perfect number because 6 = 1 + 2 + 3 


Output

A single line containing the perfect numbers separated by a space.


Note: The sample output below contains "dots" which are just representations (or dummies) for the actual values.

6·28·.·.·.




You probably have encountered Triangle pattern problems before when you started learning programming. Let’s see how well you do with numbers this time. Try to look at the examples closely and think of an algorithm that replicates the outputs. Go for it!


Input

A single line containing an integer n.

9

Output

The output generated based on the inputted integer n.

1
23
456
789

WAP to show rethrowing concept in oop by using suitable.


WAP to show multiple throw statement execution by using suitable example.


WAP to show exception using try throw and catch block.


WAP to show the working of abstract class by considering suitable example.


LATEST TUTORIALS
APPROVED BY CLIENTS