/* Problem: The principal of a school needs to know the percentage of students in the school that submit their homework. (This should be calculated by first determining the homework submission per...

1 answer below »

/*
Problem: The principal of a school needs to know the percentage of students in the school that submit their homework. (This should be calculated by first determining the homework submission per student in each classroom, and then calculating the average submission per classroom across the school.)

For this assignment, you'll be creating a function to create many objects.

*/
//1. Create an object called stuHwAverage. The properties you'll create should include Teacher Name, Student Count and Homework Submitted.

// You'll also need to create a method that calculates the homework submitted per classroom (Homework Submitted divided by Student Count).
//2. Create at least 3 classroom objects. Each object should contain matching variables from above (Teacher Name, Student Count and Homework Submitted).
//3. Calculate the average number of homework assignments submitted across the school (Add the 3 classroom averages and divide by 3).
//4. Convert the returned number into a percentage
//5. Output your results to an id called result and assign the id a string that reads like the following:
//Approximately 78% of classes surveyed submit their homework.
//(The percentage will change depending on the numbers you choose for student count and homework submitted.)


Answered Same DayJul 01, 2022

Answer To: /* Problem: The principal of a school needs to know the percentage of students in the school that...

Aditi answered on Jul 01 2022
80 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here