Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Academic year-2020-21 EECP1290-SEM1-CLA1-Time:30 minutes Max Marks:10 Write your studentiD and Name as comment in your program. on 01) Write a C program to read two

image text in transcribed
Academic year-2020-21 EECP1290-SEM1-CLA1-Time:30 minutes Max Marks:10 Write your studentiD and Name as comment in your program. on 01) Write a C program to read two floating point numbers T and Ffrom the console and find the value of K using the following formula. The program should calculate the value of K using the following formula if Fis positive. K4T-372 - P Where P has a value 1.3. If F is negative, then calculate K using the following formula K-4T - 3F - P Where P has a value 2.3. Use mathematical functions to use the above algebraic expressions. Print the values of LF and K. Sample output 1: enter T and F values:4 3 T-4.000000 F-3.090800 K -20.299999 Sample output 2: enter T and F values:4 -3 T-4.000000 F=-3.000000 K-21.299999

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_2

Step: 3

blur-text-image_3

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

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

2nd Edition

0470624701, 978-0470624708

More Books

Students also viewed these Databases questions

Question

How is the balance of an account determined?

Answered: 1 week ago

Question

How can either be made stronger?

Answered: 1 week ago

Question

What is block ownership? How does it affect corporate governance?

Answered: 1 week ago