Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

pls i want answer Q18,Q19 Q18. Write a C++ program for the question given below. Read the D, choice (ch) from the user Check the

pls i want answer Q18,Q19 image text in transcribed
Q18. Write a C++ program for the question given below. Read the D, choice (ch) from the user Check the choice and print the corresponding result of equation as given in Table Q18 using switch case statement. TABLE Q18 Sample output: choice Equation Enter the value of D : 2 5 Sum=(D+D+D) 6 Difference=(D-D-D Enter the choice : 5 7 Multiply=D*D*D Sum is : 6 Any Other Error Program: (5) Q19. Write a C++ program to perform the following. Read a number N from the user Print the series following series and calculate its product using for loop 1.5 1.7 1.9 2.1 .............N Sample Output: Enter a number : 2.3 Series : 1.5 1.7 1.9 2.1 2.3 Product of the Series:23.40135 [1] i) Identify the start, end interval to print the above series. ii) Program: [4]

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

Students also viewed these Databases questions