Page 1 of 1

Homework 4, due October 7, 2010

Posted: Fri Oct 01, 2010 3:51 pm
by goodwine
Reading: chapter 4 from the course text.

Collaborative Problem:
Write a program that computes an approximation for the cosine function by computing a Taylor series about 0 that does the following:
  1. prompts the user to enter an angle between -90 and+90 degrees;
  2. checks that what the user entered is in the right range, and if not, tells the user that what they entered was invalid and then prompts them again to enter an angle again;
  3. computes the series up to the first nonzero term that has a magnitude that is less than 10E-6 times the magnitude of the sum of all the preceding terms;
  4. compares the computed value to the value returned by the COS() function (which presumably is pretty accurate).
Notes:
  1. hopefully it's clear to everyone that the angle must be converted to radians;
  2. use the proper logical operator in the IF statement when checking that the user entered a proper value; and,
  3. the ABS() function will probably be useful.
Individual Problem:
Write a computer program that prompts the user to enter:
  1. the percentage grade the user has in the class;
  2. the average percentage grade for the class; and,
  3. the standard deviation for the class;
and using the "guaranteed grade" system on the course syllabus, print the minimum letter grade the student will receive.

The program should be "user friendly" in that it properly prompts the user to enter the data (e.g., do you enter ".85" for 85%, or do you enter "85") and checks that what the user is entering makes sense. If it does not make sense, then the user should be instructed what is the right form for the data and prompted to enter the data again.

Re: Homework 4, due October 7, 2010

Posted: Wed Oct 06, 2010 4:22 pm
by ashen
What would be the guaranteed minimum letter grade if the overall grade is exactly equal to the mean minus two standard deviations? (eg. grade=50%, mean=70%, standard deviation=10%)

Re: Homework 4, due October 7, 2010

Posted: Wed Oct 06, 2010 11:08 pm
by sgreen7
Homework Set 4

Re: Homework 4, due October 7, 2010

Posted: Thu Oct 07, 2010 5:55 am
by goodwine
ashen wrote:What would be the guaranteed minimum letter grade if the overall grade is exactly equal to the mean minus two standard deviations? (eg. grade=50%, mean=70%, standard deviation=10%)
Sorry, one of those should not be a strict inequality. Pick either way.