Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CHALLENGE ACTIVITY 2 . 4 . 2 : Numeric types: Floating - point. 5 4 1 0 4 0 . 3 9 2 1 0

CHALLENGE
ACTIVITY
2.4.2: Numeric types: Floating-point.
541040.3921090.932qy7
Jump to level 1
A polynomial is given by t=4.5s2+7.5s+5.0. Read s from input as a float and compute t using the polynomial.
Ex: If the input is 1.8, then the output is:
33.080
Note: s2 can be computed using *
1s=1.8
2t=4.5s???(2)+7.5s+5.0
3 print (f'{t:.3f}')
image text in transcribed

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

Students also viewed these Databases questions

Question

Define organisational structure

Answered: 1 week ago

Question

Define line and staff authority

Answered: 1 week ago

Question

Define the process of communication

Answered: 1 week ago

Question

Explain the importance of effective communication

Answered: 1 week ago

Question

* What is the importance of soil testing in civil engineering?

Answered: 1 week ago