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

Kalinjar Fort is a popular tourist place in Bundelkhand, Utter Pradesh. Everyday peoples registered to visit Fort as token provided based on first come basis. Everyday limited numbers of peoples are allowed to visit. The management selects a number N1 randomly every day and generates another number N2 as count of the total number of set bits (i.e., total no. of 1s) in binary representation of all numbers from 1 to N1. For example, N1=3 then N2=4 [1(01) +2(10) +3(11)]. So, write a python module CountBit.py to find N2 using N1. You need to import this module , define a function Get_Token(n) which takes a number and return value as shown in example by calling the appropriate function implemented in CountBit.py module.

 

 

Example-1

Example-2

Example-3

Input:

3

 

Output:

4

 

Input:

7

 

Output:

12

Input:

8

 

Output:

13

 



Given a string of numbers S, the task is to find the maximum value from the string S, you can add a ‘+’ or ‘*’ sign between any two numbers.

For example, S=891. As 8*9*1 = 72 and 8*9+1 = 73. So, 73 is maximum.

Write a python module MaxValue.py for solve the above task. You need to import this module ,define a function Find_Max(n) which takes a string and return maximum value or error message as shown in example by calling the appropriate function implemented in MaxValue.py module. Also handle the possible exceptions and display the exception message in form of string.

 

Example-1

Example-2

Example-3

Example-4

Input:

01231

 

Output:

10

Input:

891

 

Output:

73Input:

0000

 

Output:


Input:

45f

 

Output:

Invalid Number



Given a positive number, create an array with that number as the size and populate it with the items/names provided. Additionally, the program should print out the longest name in the array.

Sample Run1 

           3

         Apple

          Banana

         Kiwi

Output1: Banana is the longest name


Copy the contents of one text file to another file, after removing all whitespaces.


Create a structure Student containing fields for Roll No., Name, Class, Year and Total Marks. Create 10 students and store them in a file. 

Write a program to retrieve the student information from file created in previous question and print it in following format: Roll No. Name Marks .


Create a structure Student containing fields for Roll No., Name, Class, Year and Total Marks. Create 10 students and store them in a file. 


program that calculates and displays the income tax of a salary entered from the keyboard in c++


program that computes the sum and the difference and the product of a range of consecutive numbers where the starting and ending numbers of the range are to be entered from the keyboard


You work in XYZ Corporation as a Data Analyst. Your corporation has told you to work with the statistics. 


1. Create a table in excel, table should have 2 columns named x and y.

a. ‘x’ column should have numbers from 1-5.

b. ‘y’ should have numbers 2,4,5,4,2

c. Now calculate the mean of columns x and y.

d. Calculate the mode of column x.

e. Calculate the standard deviation of column y.

f. Atlast calculate the range of columns x and y separately


You work in XYZ Corporation as a Data Analyst. Your corporation has told you to visualize the mtcars.csv dataset with various plots.

1. Plot the area chart for the colmns: ‘am’ and ‘carb’.

a. Set the ‘am’ on the x-axis.

b. Set the ‘carb’ on the y-axis.

c. Provide the x-axis label as Transmission.

d. Provide the y-axis labe as Number of carburetors.

e. Provide the title as Transmission vs Number of carburetors.



You work in XYZ Corporation as a Data Analyst. Your corporation has told you to visualize the mtcars.csv dataset with various plots.


1. Plot a pie chart for columns: ‘cyl’ and ‘model’ form the mtcars.csv data frame


LATEST TUTORIALS
APPROVED BY CLIENTS