Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

i need full answers in c++ image text in transcribed
i need full answers in c++ program image text in transcribed i.
image text in transcribed
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

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

Case Studies In Business Data Bases

Authors: James Bradley

1st Edition

0030141346, 978-0030141348

More Books

Students also viewed these Databases questions

Question

Consistently develop management talent.

Answered: 1 week ago

Question

Create a refreshed and common vision and values across Europe.

Answered: 1 week ago

Question

Provide the best employee relations environment.

Answered: 1 week ago