Programming & Computer Science Answers

C++ 9913
Python 5288
Java | JSP | JSF 3611
C 1680
C# 1362
Computer Networks 989
Algorithms 652
Databases | SQL | Oracle | MS Access 641
HTML/JavaScript Web Application 588
Other 537
Visual Basic 358
Assembler 209
Software Engineering 202
AJAX | JavaScript | HTML | PHP 166
MatLAB 150
MatLAB | Mathematica | MathCAD | Maple 124
Action Script | Flash | Flex | ColdFusion 112
UNIX/Linux Programming 89
Web Development 73
Excel 36
ASP | ASP.NET 23
Delphi | Pascal 21
Perl 16
Prolog 9
Functional Programming 9
MathCAD 5
Wolfram Mathematica 4
WPF 4
Ruby | Ruby on Rails 3
NodeJS Web Application 2

Questions answered by Experts: 26 876

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

An array of 11 integers is being sorted in ascending order using Quicksort.
Suppose the algorithm has just finished the first pass of partitioning and pivot swapping thus changing the content of the original array into the following array:
[101, 103, 110, 106, 107, 100, 109, 111, 104, 112, 115]

From the resulting array above, determine how many integers could have been the pivot?
Note: elements == pivot are partitioned to the right.
An array of 10 integers is being sorted in ascending order using Quicksort.
Suppose the algorithm has just finished the first pass of partitioning and pivot swapping thus changing the content of the original array into the following array:
[100, 107, 110, 101, 105, 106, 109, 111, 114, 112]

From the resulting array above, determine how many integers could have been the pivot?
Note: elements == pivot are partitioned to the right.
Write a C++ program to achieve the following objectives.
(i) To read elements of two matrices A and B of dimension 3x3.
3. The tractrix is the curve parametrized by ~x(t) = (t − tanh t,sech t).
(a) Find the arc length function s(t) for the above parametrization.
(b) Find a unit speed parametrization of the tractrix.
Can I use domain for my site thats similar to some other company (not exact same but similar)?
For example there is a company domain named "sportsitems.com", now can I use "sportsitemss.com" (with double "s"). Is it legal or not?
Practical 3 (while loop)
Write a program that uses while loops to perform the following steps:
a. Prompt the user to input two integers: firstNum and secondNum
(firstNum must be less than secondNum).
b. Output all odd numbers between firstNum and secondNum.
c. Output the sum of all even numbers between firstNum and secondNum.
d. Output the numbers and their squares between 1 and 10.
e. Output the sum of the square of the odd numbers between firstNum and secondNum.
f. Output all uppercase letters.
Write C++ functions to perform the following tasks.
(i) palindrome(A, size) – this function receives one dimensional character array
‘A ‘ of size ‘ size ‘ as input and returns a character ‘P’
or ‘ N’ respectively, depending on whether the word is a
palindrome or not. If the entered word and the reverse
of it have the same pattern, then the word is a palindrome.
eq: madam
A company distributes 5 different items around Nairobi through its 10 salesmen. Using arrays write a C# application program to input a salesman name and the corresponding sales made by each of the salesman for each of the item. The program should then output each of the salesman’s name, sales, total sales as well as grand total using the format shown below.
Name Item1 Item2 Item3 Item3 Item4 Item5 TotalSales
___________________________________________________
Brian 20 50 25 10 0 15 120
Joan 45 55 10 25 5 30 170
….
….
GrandTotal xx
Write a complete C# application program to calculate the area of a triangle, rectangle or circle. The program should have a decision making statement(s) to decide:
 If the figure is a triangle then ask for base and height values to input.
 If the figure is a rectangle the ask for length and breath values to input
 If the figure is a circle then ask for the radius values to input
The program should display the output on the screen and should enable the user to re-enter choice for at most three times incase a wrong selection is entered
Write C# application program to be used to evaluate the credit worthy of a client. The program reads the credit limit and the price and quantity of the item to be purchased by the client. If the value of the goods is more than the credit limit, the program displays “Sorry you cannot purchase goods worthy such a value on credit” and allows the customer to re-enter the quantity, otherwise, displays “Thank You for purchasing from us” and the value of the purchase. This should be repeated for n customers.
4).
LATEST TUTORIALS
APPROVED BY CLIENTS