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

given an integer N, write a program that prints the count of the total numbers of digits between 1 and N.


Hospitals mainly treat patients who are mentally ill and paralyzed. The percentage of patients for follow-up visits is still very high compared to newly admitted patients. Due to the wide and comprehensive range of services, managing patient orders is still a problem for patients with long treatment periods. Due to this high threshold for patient care, the system needs to be upgraded to function efficiently. For that we need a system that can quickly find new patients so that they have time to make observations/reviews. But due to its widespread use, the current system is unable to treat patients effectively.


Question:


From doubly linked list and singly linked list data structures which data structure you will choose for the upgradation of the system?

write a program to find the sum S of the series where S = x-x^3+x^5+..... upto N terms.


Inputs
5
5
Output
Equal
If the given number are equal print "Equal". In all other cases, print "not equal"

given an integer number N as input. write a program to print the right-angled triangular pattern of N rows as shown below.


you are given two given numbers, A and B where 1<= A <=B, write a program to find the number of perfect squares in range A to B (including A and B).


Create the Person class. Create some objects of this class (by taking information from the



user). Inherit the class Person to create two classes Teacher and Student class. Maintain the



respective information in the classes and create, display and delete objects of these two classes



(Use Runtime Polymorphism).

Create Matrix class using templates. Write a menu-driven program to perform following


Matrix operations (2-D array implementation): a) Sum b) Difference c) Product d) Transpose

6. Create an array with whole numbers values from 0 to 10 and find what is the command to extract the elements in the following sequence -


array ([7,4,1])




7. Create a NumPy array having user input values and convert the integer type to the float type of the elements of the array. For instance:


Original array [1, 2, 3, 4]


Array converted to a float type: [ 1. 2. 3. 4.]






8. Write a NumPy program to append values to the end of an array. For instance:


Original array: [10, 20, 30]


After append values to the end of the array:


[10 20 30 40 50 60 70 80 90]


9. Create a 2 dimensional array with 3 rows and 3 columns containing random numbers from 1 to 9. Find the difference between the maximum element across the columns and the minimum element across the rows.






10. Create a 3*3 array having values from 10-90(interval of 10) and store that in array1. Perform the following tasks:


a. Extract the 1st row from the array.


b. Extract the last element from the array.




1. Create a list named ‘myList’ that has the following elements: 10,20,30,’apple’, True, 8.10.

a. Now in the ‘myList’, append these values: 30,40

b. After that reverse the elements of the ‘myList’ and store that in ‘reversedList’

 

 

2. Create a dictionary ‘Country’ that maps the following countries to their capitals respectively:

 

Country

India

China

Japan

Qatar

France

State

Delhi

Beijing

Tokyo

Doha

Marseilles

 

Find 2 commands to replace “Marseilles” with “Paris”.

 

3. Create the tuples given below

tuple_1 = (1,5,6,7,8)

tuple_2 = (8,9,4)

Identify which of the following code does not work on a tuple.

 

a) sum(tuple_1)

b) len(tuple_2)

c) tuple_2 + tuple_1

d) tuple_1[3] = 45

 



LATEST TUTORIALS
APPROVED BY CLIENTS