Question: i need the answer in c++ Qli2 marks: - Declare a, b, c, theta, di as double. - Declare ether variables as secessary - Declare
Qli2 marks: - Declare a, b, c, theta, di as double. - Declare ether variables as secessary - Declare a constant P1 as 3.14159. - Take input freen ever for a. b, c - Tabe input froen wose for theta (in degree) - Chesk the injut for the salidity - For example, if c is ncgative, then give outpui "Invalid imput m - Similarly check for other inputs if they are valid or not - Compute the sesall of this squation: d=a+ Ovlog_e) sin((theta*PIIV180) - Give the outpui of d - Gives output of ceili(d) and flocrid) - Lise built-in library funcrion from C++ header files. Include - Lemath - - See the description of the cmath functions in the texibook to see what type of injus they ean take and what type they cannot lake - Sample code given - Sample eogret givent - Run your program for the following inpot and given sereen
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
