Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help me with this C program, please make it as simple as possible because I'm in programming 1 and I just started along with

Please help me with this C program, please make it as simple as possible because I'm in programming 1 and I just started along with using lots of comments.

Please don't use count or cin statements and please use #include. Can also use #include and #include if needed.

Here is the problem:

image text in transcribed

Here is the Algorithm, please make it look like very similar to the algorithm:

image text in transcribed

image text in transcribed

Here is the formula that needs to be used and please use these variable values instead of a, b, a:

image text in transcribed

Please make it as simple as possible because I'm in programming 1 and I just started along with using lots of comments.

Please don't use count or cin statements and please use #include. Can also use #include and #include if needed.

Write a C program that finds the value of a specific quadratic function f(x) = ax^2 + bx+c where you pick a, b and c (before you program) to be non-zero integers. Use the function we worked with in class! Do not put a, b or c in the program. In the program, find the value of your function in the regular way and using a recursive function call. Ask the user for a positive integer value (for x), and print out the two results. Ask the user to run again or not. Put the regular and recursive function definitions in the top comment (and on the top of your design as part of the data). embantu eliputi Ale nrint) of the output for one run of your program with a negative integer and two values between 2 and 20. main: print "this program calculates f(x)=... 2 ways while user select to go againg get input (check input>0! while...) y = calculate_fofx(input) print f(x) = y y=RecursiveQuadratic of input print y RecursiveQuadratic: if z=0 return 3 else return (recur(2-1) + 20*2 - 5) x+2x+1 Program 2 formula a=2 b=4 (= 6 11 f(x) = 2x + 4x +6 f(x+1)= 2(x+1) + 4 (x+1)+6 f(x+1) = 2 (x+2x+1)+ 4x + 4 +6 = 2x + 4x + 2 + 4x + 476 = 2x + 8x +12 = 2x + 4x + 48 15 1616) = (2x + 4 +63 + H2 +6 fCX+) = f(x) + 4x Z x =X+ =2-1 f(x) = f(2-1) +4(2-1)+6 f (z)= f (Z -1) +42 + who=6 2 ba | Test of formula on back of page

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

Oracle RMAN For Absolute Beginners

Authors: Darl Kuhn

1st Edition

1484207637, 9781484207635

More Books

Students also viewed these Databases questions