Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please help me I want answer for Q1,Q2,Q3,Q4,Q5 Answer All the Questions [5x10=50 Marks] Qi. O Write the FOR LOOP to print the following output:

please help me I want answer for Q1,Q2,Q3,Q4,Q5 image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Answer All the Questions [5x10=50 Marks] Qi. O Write the FOR LOOP to print the following output: 8.8 7.6 6.4 5.2 4.0 [3] il) Write an algorithm, draw a flowchart and write a C++ program to Read the height (H), radius (R) Calculate the volume (V) of sphere and Surface Area of (SA) of cylinder by using below formula V = (5)TR3 SA = 21R (R+ H) Print volume (V) of sphere in cubic meter and Surface Area of (SA) of cylinder in square meter Note: value of T (pi) 3.14, Assume variable name for me : (pl) Sample Output: Enter the Height (H): 5.0 Enter the radius (R): 3.0 Volume of sphere (V) is: 112.754 cubic meter Surface Ares of cylinder (SA) is: 150.72 square meter 121 a) Algorithm [2] b) Flowchart 131 c) Program Q2. i) [3] Read the following program and identify the arithmetic and logical operators. Also find the output of the program. Draw Table Q261) in your answer sheet and write all answers. #include "stdafx.h" #include #include using namespace std; Table Q2() Arithmetic Operators Logical Operators int_tmain(int arge, TCHAR* argv[]) { int A, B, C A = 10; B = 20; C = A % B; if (A == B) A=A+1; Output: else B=B*2; cout Write an algorithm, draw a flowchart and write a C++ program to Read the variable X, Y and theta (t) Sample Output: Calculate the Z by using the formula: Enter the value of X:3.0 2 = (X+Y) - Ves + sin e Enter the value of Y: 2.0 Enter the value of t = 45 Print z Answer for 7 is: 0.440136 Note: (1) Assume o ist (2) Use 3.14/180 for calculating sino . . a) Algorithm [2] [2] b) Flowchart c) Program [3] contains error. Find [3] Q3. i) The following program to print the product of the following series the errors and correct them. 12 14 16 18 20 22 24 26 28 30 32 34 #include "stdafx.h" #include #include using namespace std; int_tmain(int argc. _TCHAR* argv[]) { intm, product; Sum=10; for(X= 2, m41.0 Extreme Hot Sample Output:- 38.0 - 41. Hot Enter the Temperature: 55.0 31.0-37.0 Moderate Output: Extreme Hot 021.0-30.0 Cool

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

Visual Basic 4 Ole Database And Controls Superbible

Authors: Michael Hatmaker, C. Woody Butler, Ibrahim Malluf, Bill Potter

1st Edition

1571690077, 978-1571690074

More Books

Students also viewed these Databases questions

Question

3. Define the roles individuals play in a group

Answered: 1 week ago