CNIT 133 Homework 3 - Functions

CNIT 133 Main Page

function

Part1: First part of homework3 helps calculate a student's final average and letter grade based on this formula: final average = (.5 * hwAvg) + (.2 * midExam) + (.2 * finalExam) + (.1 * participation). It also determines if the student should retake the course.

Part2: Second part of homework3 calculates a salesperson's weekly salary based on basic $200/week pay + 9% commission. The program inputs number of items sold and based on each item's standard rate calculates total weekly sale and pay for a salesperson.

Part3: Third part of homework3 requires us to input temperature in degree celsius or fahrenheit, validate it as a number, and use two scripts to convert the numbers from celsius to fahrenheit, and vice versa. The scripts use standard thermometer as reference.

Part4: Fourth part of homework3 tests knowledge of elementary multiplication using a function that validates the users's answer to be correct product of two given factors generated randomly by a second script.