i need full answers in c++
i need full answers in c++ program
i.
CS105. Lab. 6. Marks 1 heiv insth 1) 0): 2 murks: - beture a h. E, deta, das dubble - Declare cother variables as necesary - Dccure a sunsuni 17 as 3.14127 - Take inper thun waer foc a, b, c - Tals impor frois wer fot stela ias degec) - Cherk the input for the vaidity - For example. If's is acguties, then give eutpot "Lavatid incrat - Simlarly chsck for cehor incuts if they are valad or nei - Compule the remill of thes equabon: d=a2+ Oillez, c) ainylurta*(r)1col) - Give the crifvit of d - Give infeat of ovilidiand floceid - Use buit-in libtary functica from C++ header files. Insiade 4esabh- - See the doseripteun of the emath functavis in the ksateack an ac what bye of inpet thry can thke inat what thre they samad taie. - Sample ovde ginso - Bamphe vigut given - Run your program fie the folloeing lipul nad gaen nores CS205.Lab 6. Marks.2 Do it bv yourself. Any copving or giving code to others will have mark 0 Q1: 2 marks: - Declare a, b, c, theta, d as double - Declare other variables as necessary - Declare a constant Pl as 3.14159 - Take input from user for a, b, c - Take input from user for theta (in degree) - Check the input for the validity - For example, if c is negative, then give output "Invalid input" - Similarly cheek for other inputs if they are valid or not - Compute the result of this equation: d=a2+O(log0c) sin(( theta*PI)/180) - Give the output of d - Give output of ceil(d) and floor(d) - Use built-in library function from C++ header files. Include cemath> - See the description of the cmath functions in the textbook to see what type of input they can take and what type they casnot take - Sample code given - Sample output given - Run your program for the following input and given screen picture for each of them 01111 ample code: includesiostream> nclude sing namespace std; t main0 double a,b,c; const float PI=3.14159; ample output: ut vour code here: vour screen picture here