Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Secrets Of Analytical Leaders Insights From Information Insiders

Authors: Wayne Eckerson

1st Edition

1935504347, 9781935504344

More Books

Students also viewed these Databases questions

Question

What are Measures in OLAP Cubes?

Answered: 1 week ago

Question

How do OLAP Databases provide for Drilling Down into data?

Answered: 1 week ago

Question

How are OLAP Cubes different from Production Relational Databases?

Answered: 1 week ago