Question: C Programming Assignment 3 Due Tuesday, February 4, 2020 @ beginning of class For the program assigned below, submit the following: Submit online (on Canvas)

 C Programming Assignment 3 Due Tuesday, February 4, 2020 @ beginning
of class For the program assigned below, submit the following: Submit online
(on Canvas) a copy of your C source file (*.c). Submit in

C Programming Assignment 3 Due Tuesday, February 4, 2020 @ beginning of class For the program assigned below, submit the following: Submit online (on Canvas) a copy of your C source file (*.c). Submit in a hardcopy printout in Word format: Copy of the source code. Note: Use copy from Visual Studio and paste into a Word document. Copy of sample execution (black or preferably white screen). Note: Use ALT-PrtScr and then paste to Word document. All sample executions may be included on the same page. There should only be one Word file that contains the following items in the following order: o copy of source code for the program . screen capture of execution for the program Observe the following guidelines: . Begin each program with a comment section which contains the following: //Program Name; (i.e., "Assignment 3") //Author's Name //Class: ENGR 19700 //Due Date: i.e., Wednesday, February 4, 2020) // A description of what the program does. . In general, use lower case letters for variable names. Variable names should be mnemonic (i.e., somewhat intuitive). Separate words within a variable name with an underscore or begin the second word with an uppercase letter. Indent 2-4 spaces (optimally 4) within main. The editor should take care of proper indenting. Place no more than one C statement per line. . Do not type more than 80 characters per line. Program: 1. Write a C program that does the following: a. Declare a string variable (char array) of size 10 (to store a string up to 9 characters plus a 10 at the end). Note: An array of size 10 will have indices of 0-9. b. Display a message to the user that this program prints specific characters within a user-entered string. c. Ask the user to enter a string of 9 characters or less. d. Output the following: Character 0 is: Character 4 is: Character 8 is: Indent 2-4 spaces (optimally 3) within main. The editor should take care of proper indenting. Place no more than one C statement per line. . Do not type more than 80 characters per line. . In if-else statements, indent statements to be executed for if or else conditions three to five spaces. Align else or else if with corresponding if. If functions are required, be sure to include a purpose statement before each function. Quadratic Equation Solver: Write a program to compute the real roots of a quadratic equation in the form ax + bx + c. Your program should prompt the user to enter the constants (a, b, and c) as floating point numbers. It is then to display the roots based on the following rules: 2. If both a and bare zero, print that there is no solution. b. If a is zero and bis non-zero), there is only one root (- c/b). It should be calculated and printed with three decimal places. c. If the discriminant (b-4ac) is negative, print that there are no real roots. d. For all other combinations there are two roots, which should be calculated from the formulas below and printed with three decimal places. Find a way to do this program that uses if structures other than just simple if. Run your program with the following data: Set 1: a=6.0; b=9.0; c=3.0; Set 2: a-4.0; b-8.0; c-8.0; Set 3: a=0.0; b=2.0; c= -4.0; Set 4: a=0.0; b=0.0; c=16.0; Submit a screen capture for each of these 4 runs. letter. Indent 2-4 spaces (optimally 3) within main. The editor should take care of proper indenting. Place no more than one C statement per line. . Do not type more than 80 characters per line. In if-else statements, indent statements to be executed for if or else conditions three to five spaces. Align else or else if with corresponding if. If functions are required, be sure to include a purpose statement before each function. Quadratic Equation Solver: Write a program to compute the real roots of a quadratic equation in the form ax + bx + c. Your program should prompt the user to enter the constants (a, b, and c) as floating point numbers. It is then to display the roots based on the following rules: a. If both a and b are zero, print that there is no solution. b. If a is zero and b is non-zero), there is only one root- c/b). It should be calculated and printed with three decimal places. c. If the discriminant (b-4ac) is negative, print that there are no real roots. d. For all other combinations there are two roots, which should be calculated from the formulas below and printed with three decimal places. * doc2 --- - dac Find a way to do this program that uses if structures other than just simple if. Run your program with the following data: Set 1: a=6.0; b=9.0; c=3.0; Set 2: a-4.0; b-8.0; c-8.0; Set 3: a=0.0; b= 2.0; c= -4.0; Set 4: a=0.0; b=0.0; c=16.0; Submit a screen capture for each of these 4 runs

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!