write a program to calculate the radius for a quadratic
equation use modular programming(function abitraction)hint
use quadratic function
Answer / sureshzzz
#include <stdio.h>
#include <math.h>
int main(){
float r,h;
float volume;
printf( "Enter size
of radius and height of
a cylinder : " );
scanf( "%f
%f" ,&r,&h);
volume = M_PI * r
* r * h;
printf( "\nVolume of
cylinder is :
%.3f" ,volume);
return 0;
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Complexity T(n) What is the time complexity T(n) of the following portions of code? For simplicity, you may assume that n is a power of 2. That is, n = 2k for some positive integer k. a) ? for (i = 1; i <= n; i++) { j = n; cout << i << ? ? j << ? ? << endl; } b) ? for (i = 0; i <= n; i += 2) { j = n; cout << i << ? ? j << ? ? << endl; } c) ? for (i = n; i >= 1; i = i/2) { j = n; cout << i << ? ? j << ? ? << endl; } d) for (i = 1; i <= n; i++) { j = n; while (j >= 0) { cout << i << ? ? j << ? ? << endl; j = j - 2; } }
Write an algorithm that receives a string and reverses it.
what is the difference between int &r and int& r
Ask the user to input three positive integers M, N and q. Make the 2 dimensional array of integers with size MxN, where all the elements of I (I = 1,…,M) line will be members of geometrical progression with first element equal to the number of line (I) and denominator q.
main(){int a=5,b 10,c=2, d;a=b c;d=++a=(--c)*2; printf("%d%d%d%d,a,b,c,d; return o;}
how to diplay a external image of output on winxp by using c & c++,
write a function – oriented program that calculates the sum of the squares from 1 to n. thus, if the input is 3, the output is 14
Deriving time complexity of Binary tree and AVL tree, step by step.
Show by induction that 2n > n2, for all n > 4.
2 Answers Karvy, Qatar University,
how to find out the maximum number out of the three inputs.
6 Answers ABC, Apple, C3I, HP, TCS,
Write a simple encryption program using string function which apply the substitution method.
what is the best algorithm to sort out unique words from a list of more than 10 million words(1 crore+)? we need the best technique in the terms of execution time.