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 a program that has 3 data members of int type the program take sum of 3 members and then return the square of each number by using public inheritance

Write a C++ program segment to assign data to members of a STRUCTURE called EMPLOYEE having name, age and salary then display it.


Create C++ full program that calculates a factorial (!) of any number between 3 and 9; the

program should give feedback to the user if the number is less than 3(error number is less than3), the program should also give feedback if the number is greater than 9; you can use either the

case or else statement also while loop if applicable


Write a program to perform deletion operation on BST. While deleting, consider all the deletion cases.


a. Deletion of node with degree 0.


b. Deletion of node with degree 1.


c. Deletion of node with degree 2.

Write a program to implement a binary search tree (BST) having following functionalities.


 BSTInsert(): This function adds a given ITEM to the BST. If the ITEM already exists in the BST then it


will not insert the ITEM any more.


 BSTInorderStack(): This function finds Inorder traversal sequence of a BST using stack. You are not


supposed to use recursive implementation of Inorder traversal

Write a program to take input a URL(website address). The input has to be validated as per the following rules : -

  • The URL should start with -> www.
  • Following characters should not be there : underscore( _ ), hyphen(-), equals (=), spaces.
  • Maximum length should be 2048 characters.

The program should throw separate exception object with an error code and error message as data member, for each of the rule, and display the appropriate message. Include a catch all block. If no exception occurs, then the program displays the URL.


Write a program to input a mail_id . Check the validity of the input given as per the following rules : -

  • The mail should contain the character '@' anywhere in the string, expect for the first character.
  • The mail id should end with ".iit.ac.in"

If the entered string is not valid, throw an exception and display appropriate message. The string input should be taken in main. The exception is thrown in a function called from main. Exception handling code should be in main as well as in the called function. [ Hint: Rethrow the exception]


Steve has a string of lowercase characters in range ascii[‘a’..’z’]. He wants to reduce the string to its shortest length by doing a series of operations. In each operation, he selects a triple of adjacent lowercase letters that match, and he deletes them. For instance, the string aaab could be shortened to b in one operation. Steve’s task is to delete as many characters as possible using this method and print the resulting string. If the final string is empty, print "Empty String" without quotes. Characters can be deleted only if they form a triple and are the same(i.e. from aaaa we can only delete 3 a's and will be left with a single a).

You are required to write a C++ program that implements the above algorithm by using the Stack class.


Example:

Sample Input: aaaabcccdd

Sample Output: abdd



Write a program that contains a function that displays “Welcome to CS127-8L!” Then, it asks for a double value such as 25.36, 100.02 etc. The maximum is 1000. Getting the double value must be done in a function as called by the main function. Then the main function displays the value in words. Please see the sample runs below.


Run 1 Welcome to CS127-8L! Enter a double value: 225.36 That is two hundred twenty-five and thirty-six centavos!


Run 2 Welcome to CS127-8L! Enter a double value: 800.20 That is eight hundred and twenty centavos!


Write a program that contains a function that displays “Welcome to CS127-8L!” Then, it asks for a double value such as 25.36, 100.02 etc. The maximum is 1000. Getting the double value must be done in a function as called by the main function. Then the main function displays the value in words.


LATEST TUTORIALS
APPROVED BY CLIENTS