NPTEL |The Joy of computing using Python | WEEK 10| Programming Assignment-3 Calculate
Write a program that calculates and prints the value according to the given formula: Q = Square root of [(2 * C * D)/H] Following are the fixed values of C a...

Ultimate Gamer
3.4K views • Sep 30, 2019

About this video
Write a program that calculates and prints the value according to the given formula:
Q = Square root of [(2 * C * D)/H]
Following are the fixed values of C and H:
C is 50. H is 30.
D is the variable whose values should be input to your program in a comma-separated sequence.
Input Format:
A sequence of values for D with each value separated by a comma.
Output Format:
Print the sequence of Q values with each value separated by a comma.
Example:
Input:
100,150,180
Output:
18,22,24
Q = Square root of [(2 * C * D)/H]
Following are the fixed values of C and H:
C is 50. H is 30.
D is the variable whose values should be input to your program in a comma-separated sequence.
Input Format:
A sequence of values for D with each value separated by a comma.
Output Format:
Print the sequence of Q values with each value separated by a comma.
Example:
Input:
100,150,180
Output:
18,22,24
Tags and Topics
Browse our collection to discover more content in these categories.
Video Information
Views
3.4K
Likes
12
Duration
0:46
Published
Sep 30, 2019
User Reviews
3.9
(3) Related Trending Topics
LIVE TRENDSRelated trending topics. Click any trend to explore more videos.
Trending Now