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%.)
Given 4 integers, output their product and their average, using integer arithmetic.
Ex: If the input is:
8 10 5 4the output is:
1600 6Note: 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.
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.