Questions
"Introduction to CSS" (ICSS 2) by Carrie Dils (Part 2 of 2) Select File > Make...

"Introduction to CSS" (ICSS 2)
by Carrie Dils

(Part 2 of 2)

  1. Select File > Make a Copy of this Google document within your Google Drive.

  2. Login to your https://linkedin.com/learning/ account

  3. Search for the LinkedIn Learning course name listed above

  4. Search for each of the highlighted video names listed below and click the bookmark flag of each

  5. Watch your now bookmarked videos and answer the associated questions listed below

  6. When done, select File > Download As > Microsoft Word (.docx) and save it to your computer

  7. Return to https://canvas.seattlecentral.edu to this assignment > upload/submit your answers via a Word doc

Common CSS Concepts

1) [True or False] By default, backgrounds extend all the way to the inside edge of the element’s border.

2) [True or False] By default, backgrounds are transparent.

3) [Critical Thinking] Why does the author choose to hide the text of his heading tags from visible view while showing an image instead?

4) The CSS color property is used to define the color for the content of the element. In the case of a p tag (paragraph) what will this property effect?

5) [True or False] Absolute values are good for devices in which the exact size is already known, for example a printer.

6) [True or False] An advantage to using the relative value em is that the starting size of the text is up to the device itself. As the user changes the resolution, the relationship of the sizes based on ems will stay exactly the same.

7) [True or False] Pixels are calculated relative to the parent element.

8) [True or False] According to our author normal document flow can and should handle the majority of our layout needs.

9) Which value of the position property removes an element from normal document flow and repositions the element based on top, right, left or bottom offset values?

10) [True or False] To determine its position, an absolutely positioned element looks to the nearest parent element that has positioning. If no elements are positioned above it, it looks to the body tag for positioning.

11) [True or False] Fixed positioning is similar to absolute, but the position is always relative to the active viewport, not the parent element.

12) Which CSS property controls allow positioned elements to stack (appear on top of) other elements?

13) [True or False] When we float an element, it moves as far over as it can, either to the right or to the left, and the elements below it move up to take up the space the floated element used to occupy.

14) [True or False] When we float an element, we essentially remove it from normal document flow.

15) [Critical Thinking] If we wish the text in a paragraph tag to wrap to the left on a floated image, what value do we set to the float property of the image?

16) Which flexbox child property places child elements one on top of each other? (vertically)

17) While the grid layout is a powerful tool, it may not be fully supported by all browsers at this time. The author mentioned a couple of tactics to use grids with browsers that don’t fully support grids at this time. Name 1.

18) According to the author, what is an advantage of using lots of comments in our CSS?

19) [Critical Thinking] What is an advantage of grouping related styles in the same place?

20) According to the author, why should we consider splitting our CSS into multiple files?

21) What does the author do to inspect an element on a page?

22) What does a code linter do?

Introduction to responsive web design - 2:40

23) [Critical Thinking] In the video the author flexes the screen to approximate what the page would look like on a mobile phone. Would this be sufficient to determine how a the page would work for a phone? If not, why not?

24) [Critical Thinking] Write the exact syntax of a media query that allows you to write styles for all screens smaller than 600 pixels.

25) What does the author mean by mobile first?

CSS frameworks and grids - 1:23

26) [Critical Thinking] When should we consider using a CSS framework instead of creating our own CSS?

27) According to the author, what is the biggest reason to use CSS pre-processors?

In: Computer Science

Give examples of normative history graded influences for four generations of a young college student's family:...

  1. Give examples of normative history graded influences for four generations of a young college student's family:
  • Great grandparents who endured the "great depression."
  • Grandparents who served during the Vietnam war.
  • Parents who served during Desert Storm.
  • Young adult who now serves in Afghanistan.
Consider chronological age, biological age, psychological age, and social age. When you are 70 years of age, in what order would you want these characteristics arranged, beginning with strength and progressing to weakness? Why did you select this arrangement?Compare the context of development on pages 6 and 7 with cohort effects on page 33. To which context does cohort best relate? Why?

In: Psychology

PLEASE ANSWER ALL THE QUESTION!!! 1. Proponents of tax-law changes to encourage saving would Select one:...

PLEASE ANSWER ALL THE QUESTION!!!

1. Proponents of tax-law changes to encourage saving would
Select one:

a. increase the number of government benefits which are means-tested.

b. favor none of the above programs.

c. argue that corporate tax rates should be decreased.

d. argue that state sales tax should be replaced with state income tax.

2. Stimulus spending in 2009 was used for
Select one:
a. providing aid to local and state governments.

b. building roads and bridges.

c. All of the above are correct.

d. making payments to the unemployed.

3. Stimulus spending in 2009 was used for:

Select one:
a. providing aid to local and state governments.

b. building roads and bridges.

c. All of the above are correct.

d. making payments to the unemployed

In: Economics

make a simple sketch of the complete, static system. Label buildings and structures by name. Label...

make a simple sketch of the complete, static system. Label buildings and structures by name. Label elevations of each building or structure in terms of water column or to ground level at the base of the tower.

Use continuity equation (Q = V * A). A pipe with 4.026 inch ID is carrying 100gpm. Calculate the velocity (fps) of the water in the pipe.

A farmer replaces the 4-inch pipe in the listed problem with a 1.610 inch ID pipe. What is the velocity given that Q = 100gpm?

Use the equation Q = V * A. What diameter of pipe is required if the velocity (V) has to be maintained at 7fps and the Q = 25gpm?

In: Physics

For Broad crested weir Experiment: i. Does the magnitude of the flow-rate affect the discharge coefficient...

For Broad crested weir Experiment:

i. Does the magnitude of the flow-rate affect the discharge coefficient Cd?

ii. Does Cd increase or decrease with increasing flow-rate?
iii. What is the pattern of the water as it passes over the weir?
iv. Would you expect the length of the weir crest to affect the discharge coefficient Cd?
v. What is the effect of drowning the weir (increasing the downstream depth)?

In: Civil Engineering

Addressing COVID-19 is a pressing health and social concern. To date, many epidemic projections and policies...


Addressing COVID-19 is a pressing health and social concern. To date, many epidemic projections and policies addressing COVID-19 have been designed without seroprevalence1 data to inform epidemic parameters. A study published on April 11 stirred huge public/media/government interest. It measured the seroprevalence of antibodies to SARS-CoV-2, name of the virus causing COVID-19, in Santa Clara County, California.

The study found the population prevalence of SARS-CoV-2 antibodies in Santa Clara County implies that the infection is much more widespread than indicated by the number of confirmed cases. Based on different scenarios, the population prevalence of COVID-19 in Santa Clara ranged from 2.49% (with 95% CI of 1.80% - 3.17%) to 4.16% (with 95% CI of 2.58% - 5.70%). These prevalence estimates are 50 to 85 times more than the number of cases confirmed by the routine tests. Population prevalence estimates can be used to calibrate epidemic and mortality projections and more importantly can be used as criteria for reopening the economy.

Canada is facing the same pressing health and social concern and there is consensus that our confirmed COVID-19 cases are significantly underestimated due to insufficient tests. Suppose you are designated as a member of the important task force to conduct a similar study in the city of Vaughan, the particularly hard hit city by the COVID-19 outbreak in the GTA. Vaughan’s current confirmed infection rate (from the on-going insufficient tests) is 0.113%. Assume there is a consensus among epidemiologists that the confirmed infection rate of 0.113% is many folds underestimated and the true infection rate might be around 3.5%.

Elaborate on your proposal as a member of the task force. You may choose to discuss random sampling design, sample size (you have the concern of time/money cost if the sample is too big; in the meanwhile, you have the concern of the validity of the estimates if the sample is too small.), hypothesis setting, size of the test or other statistical issues you think to be important for such a medical study. For every aspect of your decision, it is important to communicate the rationale.   
  

In: Economics

In this homework you will implement a Library class that uses your Book and Person class...

In this homework you will implement a Library class that uses your Book and Person class from homework 2, with slight modifications. The Library class will keep track of people with membership and the books that they have checked out.

Book.java

You will need to modify your Book.java from homework 2 in the following ways:

field: dueDate (private)

            A String containing the date book is due.  Dates are given in the format "DD MM YYYY", such as "01 02 2017" (Feb. 1, 2017.)  This will help when calculating the number of days a book is overdue.

Field: checkedOut (private)

            A Boolean that is true if the book is checked out and false otherwise.

Field: bookId (private)

            An int that holds the unique Id for the book. Because it is unique it will not be changed so you can declare it as final. This will be used to distinguish separate copies of the same book (with the same title and author).

Field: bookValue (private)

            A double that holds the current value of the book in dollars.

Replace the old constructor with one that has the following method hearder

public Book(String title, String author, int bookId, double bookValue)

Add accessors and mutators for each of the new fields except for a mutator for bookId. Note that getters for boolean fields use "is" instead of the normal "get". For example the getter for checkedOut in the book class should be called isCheckedOut(). Update the equals method to only use the bookId since it is unique for each book. We do this because it is possiblie to have multiple copies of the same book (same title and author) and in this set up they would not be equal. Also, update the toString method.

Person.java

You will need to modify your Person.java from homework 2 in the following ways:

Field: address (private)

            A String that contains the address for the person, e.g. "101 Main St." For simplicity, do not worry about including the city, state, or zip code.

Field: libraryCardNum (private)

            An int that is the unique library id number for the person. Note that this replaces the id field from homework 2. Once this is set it will never change, so you can make if final if you would like.

Change the old constructor so that it has the following header and sets the correct fields:

public Person(String name, String address, int libraryCardNum)

Create accessors for the fields and mutators for the address field. Update equals method and toString. The ArrayList<Book> will now be called checkedOut and be a list of books the Person has checked out from the library. The addBook method will change slightly (see below). You can update the other methods as needed but they will not be used for this assignment and they will not be tested.

public boolean addBook(Book b)

Add the Book b to the list of the current object's checked out books if and only if it was not already in that list. Return true if the Book was added; return false if it was not added.

Library

Field: libraryBooks (private)

            An ArrayList<Book> that holds all books for the library. Note that the library may have multiple copies of the same book (same title and author) but the bookId for each copy must be unique.

Field: patrons (private)

            An ArrayList<Person> that holds all the people who are patrons of the library.

Field: name (private)

            A String that holds the name of the library

Field: numBooks (private)

            An int that keeps track of the number of books that are currently available to be checked out. A book that is checked out is not included in this count.    

Field: numPeople (private)

            An int that keeps the number of patrons to the library.

Field: currentDate (private)

            A String that represents the current date. Dates are given in the format "DD MM YYYY", such as "01 10 2016" (Oct. 1, 2016) just like the due date.

Constructor

            Write a constructor that takes in a String for the name of the library.

Accessors

            Write accessors for each of the fields.

Mutators

            Write a mutator for each field except for numBooks and numPeople as these depend on the other fields and should only be updated when the fields are updated or accessed.

Public int checkNumCopies( String title, String author)

            A method that takes in a string for the title and author of a book and returns the number of copies of this book in the library (both checked out and available)

Public int totalNumBooks()

            Returns the number of books in the library (either checked out or not)

Public boolean checkOut(Person p, Book b, String dueDate)

            A method that checks out the book to the given person only if the person is a patron and the book is in the library and not currently checked out. Note that the book object being passed in may be equal to a book in the library but not the actual book in the library. That means you need to be sure to update the book in the library not the book being passed into the method. It will also update the due date for the book object. It will return true if the book is successfully checked out and false otherwise.

Public ArrayList<Book> booksDueOnDate(String date)

            A method that returns an Array List of books due on the given date.

Public double lateFee(Person p)

            This method will calculate the late fee the person owes. The late fee is based on the value of the book and the number of days the book is overdue. The fee is 1% of the book value for every day the book is overdue. For example if a book is worth $20 and is nine days late the late fee will be $1.80. If the Person has multiple books overdue then the late fees are simply added together.

To calculate the number of days between the current date and the date the book is due, we recommend that you look at the GregorianCalendar class. Google the API for help. If you want to use/write another method to calculate the number of days between the current date and the due date you are welcome to do so! If you get ideas from online, please remember to site your sources at the top of your .java file(s).

Testing

You will need to write at least two JUnit tests for each of the following methods in the Library class:

checkNumCopies

checkOut

booksDueOnDate and

lateFee

You are encouraged to write tests for the other methods but we will not require it. You will need to submit these to Web-CAT along with the rest of your code. Use standard naming conventions for these JUnit tests (include the word 'test' in the name somewhere - such as "testCheckOut"), otherwise we do not mind what you call them. Remember, it would be best if you do not have more than one assert statement per JUnit test case (method). There is no upper limit on how many JUnit test cases you write. Place all your JUnit test cases in one single file ("JUnit Test Case") - you do not need separate files to test Book.java, Person.java, and Library.java.

Constraints

Each .java file must have the assignment name (Homework 3)

Do not put your classes into a package - leave it as default. (If you don't know what this means, don't worry about it.)

Observe the basic naming conventions you've been shown in class.

Your code must be correctly indented. Most code editors have a way of doing this for you. In Eclipse, select all text with CTRL-A (Command-A on the Mac), and then do Source->Correct Indentation (which is CTRL-I on Windows and Command-I on the Mac).

If two methods share identical logic, you should factor that out into a separate method (a helper method).

In: Computer Science

Ergo Company has one employee who is paid a salary of $8,500 per month. Payroll information...

Ergo Company has one employee who is paid a salary of $8,500 per month. Payroll information for the first month of the year is:

Federal and state income tax withheld

$1,275

FICA (social security and Medicare)

7.65%

Federal unemployment (FUTA and SUTA) tax rate (on the 1st $7,000 of wages)

6.2%

Insurance Premiums (paid by Employees)

$400

Part I: Prepare Ergo’s journal entry to record the first month’s salary expense and employee withholdings. Payroll tax expense will be recorded in part 2.

Date

Account Name

Debit

Credit

Part 2: Prepare Ergo’s journal entry to record employer payroll taxes for the first month’s payroll.

Date

Account Name

Debit

Credit

Notes Receivable

On September 1, 2016, Hare Today pet-supply store Co. borrowed $9,000 from Gone Tomorrow Bank, signing a 6-month, 4-percent note. Interest is to be paid at maturity. Hare Today and Gone Tomorrow both have a December 31 year-end.

1. Record the journal entry for the transaction for Hare Today on September 1, 2016.

2. Record the appropriate adjusting entry related to the note by Hare Today on December 31, 2016.

3. Record the journal entry for the receipt of the amount due to Hare Today at the note’s maturity on March 1, 2017.

Date

Account Name

Debit

Credit

   

    

    

    

                            

Notes Payable

On September 1, 2016, Hare Today pet-supply store Co. borrowed $9,000 from Gone Tomorrow Bank, signing a 6-month, 4-percent note. Interest is to be paid at maturity. Hare Today and Gone Tomorrow both have a December 31 year-end.

1. Record the journal entry for the transaction for Gone Tomorrow on September 1, 2016.

2. Record the appropriate adjusting entry related to the note by Gone Tomorrow on December 31, 2016.

3. Record the journal entry for the payment of the amount due to Gone Tomorrow at the note’s maturity on March 1, 2017.

Date

Account Name

Debit

Credit

   

    

    

    

In: Accounting

the Santa Ana winds are strong within Southern California. what drives this phenomenon? (With respect to...

the Santa Ana winds are strong within Southern California. what drives this phenomenon?
(With respect to Gibbs and Helmholtz's eqn)
Physical chemistry question

In: Chemistry

#include <iostream> #include <string> #include <vector> using namespace std; class Song{ public: Song(); //default constructor Song(string...

#include <iostream>

#include <string>

#include <vector>

using namespace std;

class Song{

public:

Song(); //default constructor

Song(string t, string a, double d); //parametrized constructor

string getTitle()const; // return title

string getAuthor()const; // return author

double getDurationMin() const; // return duration in minutes

double getDurationSec() const; // return song's duration in seconds

void setTitle(string t); //set title to t

void setAuthor(string a); //set author to a

void setDurationMin(double d); //set durationMin to d

private:

string title; //title of the song

string author; //author of the song

double durationMin; //duration in minutes

};

Song::Song(){

title ="";

author = "";

durationMin = 0;

}

Song::Song(string t, string a, double d){

//complete your code here for Task2

//the parameter t is for title, a is for author and d is for durationMin

}

string Song::getTitle()const{

//complete your code here for Task3

}

string Song::getAuthor()const{

return author;

}

double Song::getDurationMin()const{

return durationMin;

}

double Song::getDurationSec()const{

//complete your code here for Task4

//return the duration of the song in seconds

}

//complete the code for three member functions for Task5

// void setTitle(string t); //set title to t

// void setAuthor(string a); //set author to a

// void setDurationMin(double d); //set durationMin to d


In: Computer Science