Use the lab instructions given on the Internet at http://voyager.deanza.edu/~oldham
Use the same format for the opening comments as in assignment A, with
your name, course and quarter, assignment, problem, and short problem description.
Type a program, as described in the following description.
Compile it, correct any errors and execute it.
Copy the execution results into an /* Execution Results:
comment.
Print the completed program with the execution results from within the
Interactive Development Environment.
Always use memory constants when constant values are needed, except numbers such as 0 or 1
can be used in the code where their use is clear.
Use functions when ever possible, in each problem.
Provide a function prototype for each function before the main function.
The function prototype should have descriptive names for the function and for each parameter.
Put very little code in the main function.
Each function should be preceded with a short comment giving:
The solution of the equation ax2 + bx + c has 6 cases,
that can occur with various values of a, b, and c.
Test for these 6 cases in the order given here.
Do not compute any values until you have determined what calculations are needed.
The 6 cases are:
Any value of x is a solution.
No solution exists.
The solutions have an imaginary component.
Test it 7 times:
Check your results by hand, by substituting your results back into the equation and verify that they are roots.
Write a program that determines a student's letter grade. Allow the user to enter three test scores. The maximum score on each test is 100 points. Determine the letter grade from the average of the test scores, using the following:
Only if the grade needs to be determined between D and F, allow the user to enter the number of homework assignments the student turned in, and the total number of homework assignments. If more than 80% of the homework assignments were turned in, the letter grade is D, otherwise F.
Test it 4 times:
Compute the results by hand and check your results.