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

YWrite a class LocalPhone that contains an attribute phone to store local phone number. The class contains member functions to input and display phone number. Write a child class NatPhone for national phone number that inherits LocPhone class. It additionally contains an attribute to store city code. It also contains member functions to input and display the city code. Write another class intPhone for international phone number that inherits NatPhone Class. It additionally contains an attribute to store country code. It also contains member functions to input and show the country code.


Write a class array that contains an array of integers as data member. The class contains the following member functions: (Marks 8)

• A constructor that initializes the array element to -20.

• Input function to input the values in array.

• Show function to display the values of the array.

• Overload == operator to compare the values of 2 objects. The overloaded function return 1 if all values of both objects are same and return 0 if not same.



Write a class template that inputs the index of the array and displays the value in the specified index.


Given a list of numbers, write a program to print the smallest positive integer missing in the given numbers.The input will be a single line containing numbers separated by space.Output.The output should be a single line containing the smallest missing number from given numbers.Explanation

For example, if the input numbers are 3, 1, 2, 5, 3, 7, 7.

The number 1, 2, 3 are present. But the number 4 is not. So 4 is the smallest positive integers that is missing from the given numbers.

Sample Input 1

3 1 2 5 3 7 7

Sample Output 1

4

Sample Input 2

5 5 2 3 1 8 8 4

Sample Output 2

6




Ms. Shravani, Ms. Jahnavi, Ms. Latha K, Ms. Ganapriya, and Ms. Shashikala P goes for festival shopping in Orion Mall. Each one purchases 5 items that are of the same type and Ms. Sharavani Maintains the cost of each purchase of all 5. Help Mr. Sharavani to store the cost of all items purchased by her and her friends. In the end, they want to know among all purchases which is the maximum cost. Generate a C Application for the same

Requirement

1. Declare a 2D array

2. Read the cost of all items

3. Find the maximum cost amongst all items.

4. Display the maximum cost.


Mr. Sayam Bharamraj is a school teacher and is a class teacher of section 9, in the initial days he was made to take care of kids during the prayers. He has to make students to stand in the line height-wise. There were 10 students in his section. Help Mr. Sayam Bharamraj to arrange the students in the lowest to the highest height.

(Hint: Perform Bubble sort, Reading the height of the students)


Mr. Umar while performing some operations comes to know that the image that he wants can be obtained by multiplying the original image with the pattern. Help Mr. Umar to get the resultant image by performing the matrix multiplication.

Note: Matric multiplication is possible only if the number of columns of the first matrix is the same as the number of rows of the second matrix.

Example:

Matrix A (M, N) and Matrix B(P,Q)

Then N and P should be the same to perform matrix multiplication otherwise its not possible

Matrix A(M,N) * Matrix B(P,Q)= Result(M,Q)

The resultant matrix will be in the order of M and Q


Describe the syntactically way to declare and initialize in a single step a pointer to a previously

declared variables m and b for type float and double?


Mr. Pratheek wants to buy 10 items from the shop. He wants to store the price of all the items, Mr. Pratheek wants to list all the items which are less than a particular price. Help Mr. Pratheek to store the price of all ten items and list all the items less than a particular price

Requirements:

1: Read the price.

2: Compare the price with all prices in Mr. Pratheek items

3: Display the item number whose value is less than the price.


Write a program to display the output as "Hello World" and "Hello Name" where Name is the input from the user.


LATEST TUTORIALS
APPROVED BY CLIENTS