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

There are 14 different binary trees with four nodes. Draw all of them. The binary tree of Figure 11-34 is to be used for Exercises 3 through 8.

6. List the nodes of this binary tree in an inorder sequence. 7. List the nodes of this binary tree in a preorder sequence. 8. List the nodes of this binary tree in a postorder sequence


Question: Implement this program by using User-defined functions.



Write a function magicCheck that takes a one-dimensional array of size 16, a two-dimensional array of four rows and four columns, and the sizes of the arrays as parameters. By adding all the elements of the one-dimensional array and dividing by 4, this function determines the magicNumber. The function then adds each row, each column, and each diagonal of the two-dimensional array and compares each sum with the magic number. If the sum of each row, each column, and each diagonal is equal to the magicNumber, the function outputs ‘‘It is a magic square’’. Otherwise, it outputs ‘‘It is not a magic number’’. Do not print the sum of each row, each column, and the diagonals.


QUESTION: Implement this program by using User-defined functions


Write a program that prints the day number of the year, given the date in the form month-day-year. For example, if the input is 1-1-2006, the day number is 1; if the input is 12-25-2006, the day number is 359. The program should check for a leap year. A year is a leap year if it is divisible by 4 but not divisible by 100. For example, 1992 and 2008 are divisible by 4, but not by 100. A year that is divisible by 100 is a leap year if it is also divisible by 400. For example, 1600 and 2000 are divisible by 400. However, 1800 is not a leap year because 1800 is not divisible by 400.


derive a class hierarchy for the item set given below.Item sets 



Engine , InternalCombustineEngine , ExternalCombustineEngine , PetrolEngine, DieselEngine, SteamEngine | Virtual Function GetEfficiency()


Please Note that Petrol Engine and Diesel Engines are Internal Combustion Engines and Steam Engine is External Combustion Engine. So arrange the Class hierarchy accordingly.. 


What are the codes in c# programming that will have a sample output like this;

Enter a number:2

Enter a number:3

Enter a number:4

Enter a number:5

Sum of even number:6

Sum of add nunber:8

Do you want more?(Y/N):n


Suppose you are playing a killing game and have to kill few of your enemies. You are at a cliff and from there you can see few of them. You see the enemies at your height only. Therefore, you can only kill at the same height. The enemies are forming a balanced binary tree where their General is at the top of the other cliff, his two commanders are on the first level below him. The soldiers are at the lowest level. Total four soldiers are appointed. Under both the commanders exact two soldiers serve.


You have to make a strategy to kill the left commander first, than whoever takes his position kill him. Now start killing the right side with same strategy until only one enemy is left at left side. Now increase your height and kill the General. You can only win if only three of your enemies are left.


Display the enemies who are left and who have been killed. Don’t forget to print your victory message.



In (Question #282822 in C++ for qq_576) can you please also add these?


Compute for the interest earned for balances greater than Php 10,000.00

Charges for having a balance below the required minimum

Maintaining balance is Php 5,000.00

The interest rate is 5%

Bank charge is 2%


Thank you!!!


You have been provided with a data of 50 different students .

The data consist of  following Fields 

Student . name

Roll no

Semester

Session 

The data is placed in a highly random order you have to use one of the divide and conquer approach based sorting algorithm .

To sort this data your output will be based on two types of data 

No.1 

Liste 0f randomly displayed information 

No 2

List of sorted information on the base of rollno.

using c++ structural programing


Write a c++ program to divide 20 rooms to 30 employees using greedy algorithms such as knapsack method using Structured programming


Develop a c++ program that acts as simulator for your bubble sort and insertion sort Algorithm .and measure there time complexity by calculating there rare time of execution for three different types of data .

No#: Sorted array of low data elements

No2#: reversely decreasing order based array of two elements and finally randomly placed array pf (low element).


LATEST TUTORIALS
APPROVED BY CLIENTS