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 C++ generic bubblesort function using templates that takes as parameters an array and its size. You may assume that the compared objects have a < operator already defined. Test your template function with a built-in type and a user-defined type.


Study the myMAX function provided below. You are required to create a C++ template based myMAX function and test it on different built-in data types.

//Make a template out of this function. Don't forget the return type.

int myMax(int one, int two)

{

int bigger;

if(one < two)

bigger = two;

else

bigger = one;

return bigger;

}

int main()

{

int i_one = 3, i_two = 5;

cout <<"The max of "<< i_one <<" and "<< i_two <<" is "

<< myMax(i_one, i_two) << endl;

//Test your template on float and string types

return 0;

}


HeapSort an array with constant space complexity O(1).


create a class named course details that will contain get and set methods for the course name student and lecturer. in the course details class include a method called assign venue that will randomly generate a venue 1 to 3 only your method must include a static method to handle printing 

course code DISD, DIWD,DIDM 

student number 35,28,39 

lecturer mr jones , mrs smith, mr ntsinga


there should be a JoptionPane


Use of this pointer to find the Area of Right angel triangle:

1. Declare a class Triangle.

2. Create a constructor which sets the length and width of triangle.

3. Calculate the Area of triangle in function Area (), return the reference using this pointer.

4. Make another function Compare () which compares two calculated Areas and prints the

larger area, again return the reference using this pointer.

5. Use two different objects in main for calculating two different areas pass them to compare

Function for comparison.


you are required to create a console application that will capture the amount of votes that a student representative has received during the annual student body elections. the application must capture the student names and the amount of votes. in your solution, include a class called votes. the class must include the following:

*variables to store the student name and votes received.

* variables to store the total and average votes.

*use a constructor or method to set the variables.

* two methods to calculate the total and average votes.

* a method to print the report. the report must display good or poor voting attendance. if the total amount of student votes is greater than 150, display good voting attendance, otherwise display poor voting attendance


Bookmark Maker


Write a HTML, CSS, JavaScript Dynamic Web Application Program for Bookmark Maker


The below Url is the Question and procedure of Bookmark Maker

https://drive.google.com/file/d/13KC5acqLGj61aayVab137d8s9rPArIfs/view?usp=sharing


Rearrange Numbers in String

Given a string, write a program to re-arrange all the numbers appearing in the string in decreasing order. Note: There will not be any negative numbers or numbers with decimal part.


Input

The input will be a single line containing a string.


Output

The output should be a single line containing the modified string with all the numbers in string re-ordered in decreasing order.


Explanation

For example, if the given string is "I am 5 years and 11 months old", the numbers are 5, 11. Your code should print the sentence after re-ordering the numbers as "I am 11 years and 5 months old".


Sample Input

I am 5 years and 11 months old

Sample Output

I am 11 years and 5 months old


Sample Input

python4 anjali25

Sample Output

python25 anjali4


Sample Input

1python254

Sample Output

254python1



Sample Input

-1pyth-4on 5lear-3ning-2

Sample Output

5pyth4on 3lear2ning1







Rearrange Numbers in String


Given a string, write a program to re-arrange all the numbers appearing in the string in decreasing order. Note: There will not be any negative numbers or numbers with decimal part.




Input

The input will be a single line containing a string.




Output

The output should be a single line containing the modified string with all the numbers in string re-ordered in decreasing order.




Explanation

For example, if the given string is "I am 5 years and 11 months old", the numbers are 5, 11. Your code should print the sentence after re-ordering the numbers as "I am 11 years and 5 months old".




Sample Input


I am 5 years and 11 months old


Sample Output


I am 11 years and 5 months old




Sample Input 


python4 anjali25


Sample Output


python25 anjali4




Sample Input 


I am 2 years and 3 months old. This sentence4 5should be 6rearr7anged8.


Sample Output


I am 8 years and 7 months old. This sentence6 5should be 4rearr3anged2.


Make a game where the computer will guess a random number for different given ranges eg 1-10, 10-20, 30-20. You are given only 5 lives double digits are allowed like 11. the program must return not a number in the given range if you input anything that isnt in the given range for example 1-10; 1,2,3,4,5,6,7,8,9,10. The program should also ask you if u want to play again


LATEST TUTORIALS
APPROVED BY CLIENTS