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).
Calculate with C++.
Calculate BMI
( Using Metric Measurements)
height: 152 centimeters=1.52meters
square of height: (1.52 x 1.52 )m2
= 2.31m2
weight:60 kilograms
BMI= weight= 60 = 25.96
height2 2.31
Adult (age>18)
Category BMI range - kg/m2
Severe Thinness < 16
Moderate Thinness 16 – 17
Mild Thinness 17 - 18.5
Normal 18.5 – 25
Overweight 25 – 30
Obese Class I 30 – 35
Obese Class II 35 – 40
Obese Class III > 40
Children (age 2-18)
Category Percentile Range
Underweight <5%
Healthy weight 5% - 85%
At risk of overweight 85% - 95%
Overweight >95%
If you have the
following expression:
(( A * (B + D)/E) - F * (G + H / K)))
Write C++ Program to convert infix
to postfix expression using the Stack Data Structure
Write a
function to insert a number into a sorted linked list. Assume the list is
sorted from smallest to largest value. After insertion, the list should still
be sorted. Given the list l1 = (3, 17, 18, 27) and the value 20, on return l1
be the list (3, 17, 18, 20, 27).
Write a
function to concatenate two linked lists. Given lists L1 = (2, 3, 1) and L2 =
(4, 5), after return from concatenate (L1, L2) the list L1 should be changed to
be L1 = (2, 3, 1, 4, 5). Your function should not change L2 and should not
directly link nodes from L1 to L2 (i.e., the nodes inserted into L1 should be
copies of the nodes from L2.).