Given a quadratic (degree 2) polynomial p(x) in the form of p(x) real numbers b where...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Given a quadratic (degree 2) polynomial p(x) in the form of p(x) real numbers b where a, b and care Write a C program to ask the user for the three double-type coefficients a, b, and c. Then evaluate and print the values of the polynomial p(x) with 2 decimal places for integer values x from -6 to 4 inclusively. Since this is clearly a finite repetition, try to use your newly learned for loop to finish the exercise. Sample run #1 (inputs are underlined): a? 3.5 b? -9 c? 2.7 p(-6) 182.70 p(-5) = 135.20 p(-4)= 94.70 p(-3) 61.20 p(-2) 34.70 p(-1) 15.20 p(0) = 2.70 p(1) -2.80 = -1.30 p(2) p(3) p(4) 7.20 22.70 B |||| amend = Given a quadratic (degree 2) polynomial p(x) in the form of p(x) real numbers b where a, b and care Write a C program to ask the user for the three double-type coefficients a, b, and c. Then evaluate and print the values of the polynomial p(x) with 2 decimal places for integer values x from -6 to 4 inclusively. Since this is clearly a finite repetition, try to use your newly learned for loop to finish the exercise. Sample run #1 (inputs are underlined): a? 3.5 b? -9 c? 2.7 p(-6) 182.70 p(-5) = 135.20 p(-4)= 94.70 p(-3) 61.20 p(-2) 34.70 p(-1) 15.20 p(0) = 2.70 p(1) -2.80 = -1.30 p(2) p(3) p(4) 7.20 22.70 B |||| amend =
Expert Answer:
Related Book For
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang
Posted Date:
Students also viewed these programming questions
-
Which question would he ask if he were a Mode 2 learner? What do they want with a roofer anyway? What could I do to invent a machine that fights fires on the roof? What are the skills that I will...
-
The Crazy Eddie fraud may appear smaller and gentler than the massive billion-dollar frauds exposed in recent times, such as Bernie Madoffs Ponzi scheme, frauds in the subprime mortgage market, the...
-
Case Study: Quick Fix Dental Practice Technology requirements Application must be built using Visual Studio 2019 or Visual Studio 2017, professional or enterprise. The community edition is not...
-
List four components and four guidelines that the J. Crew mission statement fails to exhibit. Write a new and improved mission for J. Crew.
-
Does committing significant time to mentoring employees necessarily mean that a manager cannot develop his or her own career? Why or why not??
-
Hardison Inc. manufactures glass for office buildings in Florida. As a result of age and wear, a critical machine in the production process has begun to produce quality defects. Hardison is...
-
By using the five principles of regulatory design outlined in this chapter, consider how ecological reporting to external stakeholders provides a fundamental foundation for regulation of...
-
1. Use descriptive statistics to summarize the data collected by Fresnos Manager of Product Quality for each of the 5 randomly selected dice. Based on these descriptive statistics, what are your...
-
Luthan Company has a predetermined rate of $ 24 for each hour of direct labor. This rate is based on 11,000 hours of estimated direct labor and $ 264,000 of indirect estimated manufacturing costs....
-
At the end of June, Rick Fontan decided to open his own computer service. Analyze the following transactions he completed by recording their effects in the expanded accounting equation. a. Invested...
-
Consider the circuit as shown. The power supply has a voltage V = 34 V and the capacitors have capacitance C 1 = C 2 = C 3 = C 4 = 80 ?F and C 5 = 208 ?F. C1 C2 4 C5 V
-
The exchange rate between euros and dollars is currently $1.03per euro. Annual inflation is expected to be 1.2% in Europe and2.8% in the U.S. Part 1 If relative purchasing power parity holds, what is...
-
How do small businesses create effective security policies? Are policies, not just security policies, more important for small businesses than they are for large businesses?
-
As we unravel the intricate economic disparities disproportionately affecting rural Indigenous communities in Australia, the question of whether regional spending can serve as a potent solution...
-
The current spot USD/HUF exchange rate is 287.02. Long-runinflation in Hungary is estimated at 11.8 percent annually and 3.2percent in the United States. If PPP is expected to hold between the two...
-
The following selected transactions apply to Topeca Supply for November and December, Year 1 . ?November was the first month of operations. Sales tax is collected at the time of sale but is not paid...
-
Use MATLAB to plot the pmfs of the following random variables. This question is to provide practice with MATLAB which you will use for the future project so do not provide hand-drawn plots. (a)...
-
What kind of financial pressures can an LBO cause?
-
Write a program that stores, retrieves, adds, and updates addresses as shown in Figure 17.20. Use a fixed-length string for storing each attribute in the address. Use random access file for reading...
-
Modify Listing 28.1, TestGraph.java, to create a file representing graph1. The file format is described in Programming Exercise 28.1. Create the file from the array defined in lines 8?21 in Listing...
-
Find the first ten square numbers that are greater than Long.MAX_VALUE. A square number is a number in the form of n2. For example, 4, 9, and 16 are square numbers. Find an efficient approach to run...
-
On July 31, 2020, Magnus's Muffins paid \(\$ 18,000\) for business insurance for the next year. Record the entries for the purchase of the insurance by recording it as an expense and then making a...
-
On November 1, 2020, Freya Albatter's orthodontic office received a \(\$ 2,500\) prepayment from a client for dental work to be performed on November 22. The appointment got postponed until January...
-
On April 1, 2020, you prepaid three months of rent for a total of \(\$ 18,000\). Give your adjusting entry to record rent expense at April 30, 2020. Include the date of the entry and an explanation....
Study smarter with the SolutionInn App