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 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 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
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 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 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 Gibbs and Helmholtz's eqn)
Physical chemistry question
In: Chemistry
Cruz Company has gathered the information needed to complete its Form 941 for the quarter ended September 30, 2019.
Using the information presented below, complete Part 1 of Form 941, rounding to the nearest cent.
Hint: Line 7 instructions. Fill in Form 941 through line 6, then fill in Part 2, line 16. Take that information and fill in line 13. Lines 12 and 13 must equal. If the amounts are not the same, correct by entering amount to make equal on line 7. Line 7 differences are caused by how calculations are made on Form 941 and the amounts withheld from employee's earning plus the employer's payroll tax amounts each pay.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
In: Accounting
#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
6. Why do you need to declare the data type of a variable before you can use it in Java? Give two (2) reasons
7. Is the World Wide Web and the Internet just two names for the same entity? Explain.
8. Why was it necessary to use the import statement when we used Scanner and Random?
9. Communication was a problem at Target. What would you recommend as an escalation process if someone encounters a threat and wants it to be known to upper management?
10. TCP is extremely reliable in delivering messages. Explain how this reliability is built into the message distribution process. Optional
11. The Operating System of a computer is the glue that bridges the hardware and software of a computer to make it work. Explain three (3) ways (features) the operating system provides to accomplishes that
. 12. Name the three (3) programming constructs we coded in class using Java along with a description of each one.
In: Computer Science