In the lesson5_project folder, open the styles.css file in your css folder.  Add a style that sets the body's font family to sans-serif. Add a class called text-center and set the property to align text to the center. Open the index.html file.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
  1. In the lesson5_project folder, open the styles.css file in your css folder. 
    • Add a style that sets the body's font family to sans-serif.
    • Add a class called text-center and set the property to align text to the center.
  2. Open the index.html file.
  3. Set up your index file like you did from previous lessons.
    • Tip: Use emmet here. Type an exclamation point and hit tab. All the information you need will be added to the index file. 
    • In the title tag, add Lesson 5 Project.
    • Add an h1 tag with the title Lesson 5 Project, and apply the text-center class to it.
    • Make sure your main.js file is linked in your HTML file.
    • Make sure your styles.css file is linked in your HTML file.
    • Create a p tag with an id of result.

Now, copy/paste the JavaSCript you see below into your main.js file.

/*

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.)
 
 
Your final output should look like the image you see below. (Reminder, your percentage will be different based on the data you provided.)
Lesson 5 Project
Approximately 78% of the school submits their homework.
Transcribed Image Text:Your final output should look like the image you see below. (Reminder, your percentage will be different based on the data you provided.) Lesson 5 Project Approximately 78% of the school submits their homework.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 5 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY