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

In a class test teacher announces the marks (negative marking is allowed) of n students a student can achieve maximum 100 marks. Write a python function p-marks (*marks) that takes number of students, marks of students and return the marks and check the marks are valid or not. If valid then it calls the recursive function rec-sort(*marks) which returns the students marks as comma separated string with elements in ascending order (you can use built in function max or min to do this). Specify the input in fixed form do not use input function.


Design a pseucode and flowchart for the question The population of a town A is less than the population of town B. However, the population of town A is growing faster than the population of town B. Write a program that prompts the user to enter the population and growth rate of each town. The program outputs after how many years the population of town A will be greater than or equal to the population of town B and the populations of both the towns at that time. (A sample input is: Population of town A = 5000, growth rate of town A = 4%, population of town B = 8000, and growth rate of town B = 2%.)


Part 1

Given 4 integers, output their product and their average, using integer arithmetic. 

Ex: If the input is: 

8 10 5 4

the output is:

1600 6

Note: Integer division discards the fraction. Hence the average of 8 10 5 4 is output as 6, not 6.75. 

Note: The test cases include four very large input values whose product results in overflow. You do not need to do anything special, but just observe that the output does not represent the correct product (in fact, four positive numbers yield a negative output; wow). 

Submit the above for grading. Your program will fail the last test cases (which is expected), until you complete part 2 below. 

Part 2

Also output the product and average, using floating-point arithmetic. 

Output each floating-point value with three digits after the decimal point, which can be achieved by executing

cout << fixed << setprecision(3); once before all other cout statements.


1.     There are 3 arrangements of the word DAD, namely DAD, ADD, and DDA. How many arrangements are there of the word ENDURINGLY?

 

 

2.     There are 13 men and 12 women in a ballroom dancing class. If 6 men and 6 women are chosen and paired off, how many pairings are possible?

 

 

3.     Suppose you are taking a multiple-choice test with 4 choices for each question. In answering a question on this test, the probability that you know the answer is 0.33. If you don’t know the answer, you choose one at random. What is the probability that you knew the answer to a question, given that you answered it correctly?


4.   A normal distribution which has a mean of 50 and standard deviation of 7 is taken into consideration.

68% of the distribution can be found between what two numbers?

a)      40 and 60

b)     0 and 43

c)      0 and 68

d)     43 and 57

 


5.    Consider the data X = (58,59,63,60,60,63,60,57,58,59). An unbiased estimation for population variance would be ____

 

 


Stock_File_1’, a stock trend forecasting company has just employed you as a Data Scientist. As a first task in your new job, your manager has provided you with a company’s stock data and asked you to check the quality of the data for the next step of analysis. Following are the additional description and information about the data which your manager has shared with you.

a)     The data set contains six variables namely-

                                                      i.     Date

                                                    ii.     Open

                                                  iii.     High

                                                  iv.     Low

                                                    v.     Close

                                                  vi.     Volume





Consider a following function f:



def mys(m):



if m==1:



return(1)



else:



return(m+mys(m-1))

Add two queue elements


Requirements :


No global decelerations


Test run in main


Make use of #include<queue> header file

Polynomial





Given polynomial, write a program that prints polynomial in Cix^Pi + Ci-1x^Pi-1 + .... + C1x + C0 format.

Given polynomial, write a program that points in Cix^Pi+Ci-1x^Pi-1


Ms. Seena has brought 10 items and she wants to print the item with minimum and maximum cost. Write a software program to do it. 


LATEST TUTORIALS
APPROVED BY CLIENTS