Question
programming language:- python a company is analyzising the sales of a product for the previous N years. they have given a sales scores for each
programming language:- python
a company is analyzising the sales of a product for the previous N years. they have given a sales scores for each year based on the sales of that year . the sales score can be positive or negative according to the relative sale of product for the analysis they identified a threshold value to compare. the company wishes to count how many years have a sales core for the product which can be the threshold value completely.
write an algorithm to count the numbers of years which can be divided the threshold value completely.
INPUT
the first line of input of an integer -num , representing the number of years (N)
the second line consists of N space separated integers
score0, score1 , score2,....scoreN , representing the sales score assigned to each year .
the last line consists of an integer threshold, representing the threshold value to compare.
OUTPUT
print an integer representing the number of years which can divide the threshold value completly
EXAMPLE
input :
7
20 10 9 8 -7.5 -13
20
Output :-
3
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started