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

Create a grammar for a calculator that operates using the four operations only (ADD, SUB, MUL, DIV) over hexadecimal numbers.


Fee structure of students of different departments.


Write a class Fee having the following attributes and behavior


 No.of Students


 Fee_per_Student


 Float fee


Pure virtual fun ctions:


 Monthly_fee()


 display()


Derived the following classes from the base class Fee:


 CS


 Chemistry


 BBA


Perform the functionality:-


 Calculate the monthly fee for every department.


 Show the results on the console using Display () function.


 Write destructor when you realize that this is the end of program.


 Use virtual destructor concept in the above hierarchy.


Note:


 Use virtual Member functions for derived classes.


 Use appropriate values for per number of students in departments.


 User appropriate data types.




Following is the diagram for a hierarchy of Mammals, Map the code into C++, each class should contain a

function Sound which can take some parameters and produce a sound.


Parent class: Mammal

-eyeColor:int

+getEyeColor:int

Classes inherited from Mammal:

1)class Dog

-barkFrequency:int

+bark:void

2)class Cat

MeowFrequency:int

+meow:void

Classes inherited from Dog

A) class GermanShephard

+isGerman()

B) class Poodle

+isFrench:void

Implement:

 Inheritance

 Static Polymorphism

 A main( ) which can test all the classes



Given a M x N matrix, write a program to print the matrix after ordering all the elements of the matrix in increasing order.

3 3

1 2 3

5 10 11

15 20 30


Ordered Matrix

Given a M x N matrix, write a program to print the matrix after ordering all the elements of the matrix in increasing order.Input


The first line of input will contain two space-separated integers, denoting the M and N.

The next M following lines will contain N space-separated integers, denoting the elements of each list.Output


The output should be M lines containing the ordered matrix.

Note: There is a space at the end of each line.Explanation


For example, if the given M is 3 and N is 3, read the inputs in the next three lines if the numbers given in the next three lines are the following.

1 20 3
30 10 2
5 11 15


By ordering all the elements of the matrix in increasing order, the ordered matrix should be

1 2 3
5 10 11
15 20 30

Sample Input 1

3 3

1 20 3

30 10 2

5 11 15

Sample Output 1

1 2 3

5 10 11

15 20 30

Sample Input 2

2 5

-50 20 3 25 -20

88 17 38 72 -10

Sample Output 2

-50 -20 -10 3 17

20 25 38 72 88




How can you make richer interaction in HCI application? Explain with example


Design 30 networks from this address block 195.5.2.0/24


Create a table with 3 rows and 3 columns .


Design 30 network from this address book:195.5.2.0/24


Code the following diagram Progression Class should be taken as abstract class,

think carefully before implementation. Correct Approach will give you maximum

marks.

Class progession

Fields:long first

Long cur

Methods:Progession()

Long firstvalue()

Long nextvalue()

Void print progession()


Implement through composition


Class ArithProgression

Fields:long inc

Methods:ArithProgression()

ArithProgression(long)

Long nextvalue()


2) class GeomProgression

Fields:long base Methods:GeomProgression()

GeomProgression(long)

Long nextvalue()


3)class FibonacciProgression

Fields:long prev

Methods:FibonacciProgression()

FibonaciiProgression(long, long)

Long nextvalue()


To complete our program, we define the main function, which p erforms a simpletest of each of the 3 classes.


LATEST TUTORIALS
APPROVED BY CLIENTS