Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 3 - Astonishing Average Complete the following program that reads in an integerd and calculates where is the product of all the integers between

image text in transcribed
Problem 3 - Astonishing Average Complete the following program that reads in an integerd and calculates where is the product of all the integers between 1 and 50 that are divisible by d and is the number of integers between 1 and 50 that are divisible by d. For example, if d - 10 then the numbers between 1 and 50 that are divisible by 10 are 10, 20, 30, 40, and 50, so we calculate (10x20 x 30 x 40 x 501/5 2400000.0 Print the average to 1 decimal place. If there are no numbers between 1 and 50 that are divisible by d, print 0.0. Input Format For Custom Testing The only line of input contains an integer d that is greater than or equal to 1. Sample Case 1 Sample Input For Custom Testing 10 Sample Output Y Sample Case 2 Sample Input For Custom Testing 55 Sample Output 0.0 Sample Case 3 Sinple Input For Custom Testing

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

Pro Database Migration To Azure Data Modernization For The Enterprise

Authors: Kevin Kline, Denis McDowell, Dustin Dorsey, Matt Gordon

1st Edition

1484282299, 978-1484282298

More Books

Students also viewed these Databases questions

Question

Q .1. Different ways of testing the present adulterants ?

Answered: 1 week ago

Question

Q.1. Health issues caused by adulteration data ?

Answered: 1 week ago

Question

1. Traditional and modern methods of preserving food Articles ?

Answered: 1 week ago

Question

What is sociology and its nature ?

Answered: 1 week ago

Question

Be familiar with the integrative servicescape model.

Answered: 1 week ago

Question

Understand the role of corporate design in communications.

Answered: 1 week ago