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

Vital signs are measurements of the body's most basic functions. The four main vital signs

routinely monitored by medical professionals and health care providers include the

following with their age categories A Certain grade of steel is graded according to the

following conditions:

Age group

Respiratory rate

(per minute)

Pulse

(Per minute)

Blood pressure

(mm Hg)

Neonate

30-50

80-180

60/30

Infant

20-40

80-160

96/60

Toddler

20-30

80-150

98/64

School-aged child

16-24

75-110

106/68

Adolescent

12-20

50-100

114/74


Create a class home with following data members, area (int), and cost as protected data member. Create a class (with data members as city, state) derived from this bass class home. Enter the detail for 5 objects (derived) and search with state to display all the homes available


Explain dynamic constructor with example.


Write a program that has an abstract class called Number having an integer data member. The class contains a pure virtual function called operation. A class called odd is derived from class called Number. Another class called Even is derived from class Number. Yet another class called prime is derived from Number. Use appropriate constructors and redefine the function called operation to display if the number is odd, even or prime. You may make use of other data members and member functions if needed.


Write a program which has a class named binary which has a character array to store a binary

string. The class decimal derives from class binary and contains an integer data member. Another

class called octal also derives from binary. Each class should contain constructors and appropriate

data members to input and display the elements. The display function of binary class displays the

binary equivalent, octal class’s display function displays octal equivalent whereas decimal class’s

display function displays the decimal equivalent.



Base class: College

    variable: cname, city

    Funciton: get(), display()

Derived class inherited from college: Department

    variable: dname

    function :get(), display()

Base class: Education

    variable: Degree, University

    function : get(), display()

Derived class inherited from college and education: Teacher

   variable: Teacher

    tname function : get(), display()

Write a C++ program to display the details of faculty members in an institution.


The main pages should be index.html, About Us, Contact us, Gallery. Your Contact Us page must have a php form (Contact Us Form) that should be responsive and be very connected to the database that should accept the information.

Create a community website using html and css, for neighborhoods and small towns, include features such as an events calendar and forum where residents can post relevant questions and comments. You can also add a blog and newsletter where you can share neighborhood stories and keep people updated with the latest local news.


Ordered Matrix

Given a M x N matrix, write a program to print the matrix after ordering all the elements of the matrix in increasing order.


Input


The first line of input will contain two space-separated integers, denoting the M and N.

The next M following lines will contain N space-separated integers, denoting the elements of each list.


Output


The output should be M lines containing the ordered matrix.

Note: There is a space at the end of each line.


Explanation


For example, if the given M is 3 and N is 3, read the inputs in the next three lines if the numbers given in the next three lines are the following.

1 20 3
30 10 2
5 11 15


By ordering all the elements of the matrix in increasing order, the ordered matrix should be

1 2 3
5 10 11
15 20 30


Sample Input 1

3 3

1 20 3

30 10 2

5 11 15


Sample Output 1

1 2 3

5 10 11

15 20 30


Sample Input 2

2 5

-50 20 3 25 -20

88 17 38 72 -10


Sample Output 2

-50 -20 -10 3 17

20 25 38 72 88



Add two polynomials

Given two polynomials A and B, write a program that adds the given two polynomials A and B

Output

Print the addition of polynomials A and B.

If the degree of polynomial is zero and the constant term is also zero, then just print 0 to represent the polynomial.

For term Cix^Pi, if the coefficient of the term Ci is 1, simply print x^Pi instead of 1x^Pi.Explanation

Sample Input 1:-

6

0 -20

1 23

2 30

3 19

4 6

5 17

9

0 -100

5 -89

6 -20

7 -1

1 20

2 4

3 99

4 -45

8 12

Sample Output 1:-

12x^8 - x^7 - 20x^6 - 72x^5 - 39x^4 + 118x^3 + 34x^2 + 43x - 120

Note :- Need Space between - and + operators

Sample Input 2:-

4

0 5

1 0

2 10

3 6

3

0 1

1 2

2 4

Sample Output 2:-

6x^3 + 14x^2 + 2x + 6

Note:- Need Space between - and + operators


Implement the following function which accepts a string as parameter and reverses it, without using any function


from the string library.


void strReverse(char *str)


LATEST TUTORIALS
APPROVED BY CLIENTS