Questions
Python: The attached file (books.csv) contains a list of some of the world's most famous books,...

Python: The attached file (books.csv) contains a list of some of the world's most famous books, including author, title and approximate year written/published. Your task is to write a program to do the following:

  1. Create a class "Book()" that can store the values passed as arguments at creation time as attributes called "title", "year", and "author". NOTE: Be sure to convert the year data to an integer, and to deal with any data that cannot be converted by setting the year for those objects to 0.
  2. Create two methods on the class, author_first() and title_first() that return, strings in the following forms: "author, title (year)" and "title, by author"
  3. Create a main() function that can receive a command-line argument for the name of the data file using sys.argv.
  4. The main function should read and parse the data file into a list of dictionaries using the csv module (specifically csv.DictReader).
  5. Finally, the main function should create an instance of the Book class for each line of data, using dictionary expansion (that is, using the ** syntax for keyword arguments).

In: Computer Science

QS 16-7 Computing cash from asset sales LO P3 The following selected information is from Ellerby...

QS 16-7 Computing cash from asset sales LO P3

The following selected information is from Ellerby Company’s comparative balance sheets.

At December 31 2017 2016
Furniture $ 157,500 $ 218,500
Accumulated depreciation—Furniture (97,200 ) (119,200 )


The income statement reports depreciation expense for the year of $26,500. Also, furniture costing $61,000 was sold for its book value on December 31, 2017.

Complete the general ledger accounts to calculate the cash received from the sale of furniture.
  

Furniture
Beg. bal.
End. bal.
Accumulated Depreciation
Beg. bal.
End. bal.
Cost
Accumulated depreciation
Book value (Cash received)
Sale of short-term investments $ 3,000
Cash collections from customers 7,900
Purchase of used equipment 2,600
Depreciation expense 1,000

Compute cash flows from investing activities using the above company information. (Amounts to be deducted should be indicated by a minus sign.)
  

A comparative balance sheet and income statement is shown for Cruz, Inc.

CRUZ, INC.
Comparative Balance Sheets
December 31, 2017
2017 2016
Assets
Cash $ 75,900 $ 18,900
Accounts receivable, net 32,600 40,100
Inventory 68,300 75,300
Prepaid expenses 4,200 3,500
Total current assets 181,000 137,800
Furniture 84,600 99,200
Accum. depreciation—Furniture (13,100 ) (7,500 )
Total assets $ 252,500 $ 229,500
Liabilities and Equity
Accounts payable $ 11,900 $ 16,900
Wages payable 7,100 4,000
Income taxes payable 1,200 2,200
Total current liabilities 20,200 23,100
Notes payable (long-term) 24,800 58,400
Total liabilities 45,000 81,500
Equity
Common stock, $5 par value 177,300 141,500
Retained earnings 30,200 6,500
Total liabilities and equity $ 252,500 $ 229,500

   

CRUZ, INC.
Income Statement
For Year Ended December 31, 2017
Sales $ 392,900
Cost of goods sold 252,900
Gross profit 140,000
Operating expenses
Depreciation expense $ 30,200
Other expenses 71,600 101,800
Income before taxes 38,200
Income taxes expense 13,900
Net income $ 24,300

Furniture costing $67,600 is sold at its book value in 2017. Acquisitions of furniture total $53,000 cash, on which no depreciation is necessary because it is acquired at year-end. What is the cash inflow related to the sale of furniture?
  

Furniture
Beg. bal.
End. bal. 0
Accumulated Depreciation
Beg. bal.
End. bal. 0
Cost
Accumulated depreciation
Book value (Cash received) $0

In: Accounting

QS 16-9 Computing financing cash flows LO P3 The following selected information is from Princeton Company’s...

QS 16-9 Computing financing cash flows LO P3

The following selected information is from Princeton Company’s comparative balance sheets.

At December 31 2017 2016
Common stock, $10 par value $ 115,000 $ 112,000
Paid-in capital in excess of par 579,000 348,000
Retained earnings 325,500 299,500

  
The company’s net income for the year ended December 31, 2017, was $54,000.

1. Complete the T-accounts to calculate the cash received from the sale of its common stock during 2017.
  

Common Stock, $10 Par
Beg. bal.
End. bal.
Paid-in Capital in Excess of Par
Beg. bal.
End. bal.
Cash received

2. Complete the T-account to calculate the cash paid for dividends during 2017.
  

Retained Earnings
Beg. bal.
End. bal.

A comparative balance sheet and income statement is shown for Cruz, Inc.

CRUZ, INC.
Comparative Balance Sheets
December 31, 2017
2017 2016
Assets
Cash $ 85,600 $ 21,300
Accounts receivable, net 36,800 45,200
Inventory 77,100 84,900
Prepaid expenses 4,700 3,900
Total current assets 204,200 155,300
Furniture 94,700 110,500
Accum. depreciation—Furniture (14,700 ) (8,400 )
Total assets $ 284,200 $ 257,400
Liabilities and Equity
Accounts payable $ 13,400 $ 19,000
Wages payable 8,000 4,500
Income taxes payable 1,400 2,500
Total current liabilities 22,800 26,000
Notes payable (long-term) 28,900 66,400
Total liabilities 51,700 92,400
Equity
Common stock, $5 par value 204,000 162,300
Retained earnings 28,500 2,700
Total liabilities and equity $ 284,200 $ 257,400

   

CRUZ, INC.
Income Statement
For Year Ended December 31, 2017
Sales $ 440,700
Cost of goods sold 283,700
Gross profit 157,000
Operating expenses
Depreciation expense $ 33,900
Other expenses 80,400 114,300
Income before taxes 42,700
Income taxes expense 15,500
Net income $ 27,200

QS 16-13 Computing financing cash outflows LO P3

1. Assume that all common stock is issued for cash. What amount of cash dividends is paid during 2017?
2. Assume that no additional notes payable are issued in 2017. What cash amount is paid to reduce the notes payable balance in 2017?

Retained Earnings
Beg. bal.
End. bal.
Notes Payable
Beg. bal.
End. bal.

In: Accounting

a) Explain why “blinding” should be used in an experiment? b) Name the four main principles...

a) Explain why “blinding” should be used in an experiment?

b) Name the four main principles of a statistical experiment? Explain each principle and why they are important.

In: Statistics and Probability

public class Book{     public String title;     public String author;     public int year;    ...

public class Book{

    public String title;
    public String author;
    public int year;
    public String publisher;
    public double cost;
      
    public Book(String title,String author,int year,String publisher,double cost){
       this.title=title;
        this.author=author;
        this.year=year;
        this.publisher=publisher;
        this.cost=cost;
    }

    public String getTitle(){
        return title;
    }
  
     public String getAuthor(){
        return author;
    }
    public int getYear(){
        return year;
    }
    public String getPublisher(){
        return publisher;
    }
    public double getCost(){
        return cost;
    }
    public String toString(){
        return "Book Details: " + title + ", " + author + ", " + year + ", " + publisher + ", " + cost;
    }
}

public interface MyQueue {
   public abstract boolean enQueue(int v);
   public abstract int deQueue();
   public abstract boolean isFull();
   public abstract boolean isEmpty();
   public abstract int size();
   public abstract int peek();
}

public interface MyStack {
   public abstract boolean isEmpty();
   public abstract boolean isFull();
   public abstract boolean push(T v);
   public abstract T pop();
   public abstract T peek();
  
}

public class MyQueueImpl implements MyQueue {
   private int capacity;
   private int front;
   private int rear;
   private int[] arr;
   public MyQueueImpl(int capacity){
       this.capacity = capacity;
       this.front = 0;
       this.rear = -1;
       this.arr = new int[this.capacity];
   }
   @Override
   public boolean enQueue(int v) {      
           if(this.rear == this.capacity - 1) {
               //Perform shift
               int tempSize = this.size();
               for(int i=0; i < tempSize; i++) {
                   arr[i] = arr[front];
                   front++;
               }
               front = 0;
               rear = tempSize - 1;
           }
           this.rear ++;
           arr[rear] = v;
           return true;
   }
   @Override
   public int deQueue() {
       return arr[front++];
      
   }
   public String toString() {
       String content = "Queue :: ";
      
       for(int i=front; i<= rear; i++) {
           content += "\n" + arr[i];
       }
       return content;
   }
   @Override
   public boolean isFull() {
       return (this.size() == this.capacity);
   }
   @Override
   public int size() {
       return rear - front + 1;
   }
   @Override
   public boolean isEmpty() {
       // TODO Auto-generated method stub
       return (this.size() == 0);
   }
   @Override
   public int peek() {
       // TODO Auto-generated method stub
       return this.arr[this.front];
   }
}

import java.lang.reflect.Array;
public class MyStackImpl implements MyStack {
   // TODO write your code here
  
  
   @Override
   public boolean isEmpty() {
       // TODO Auto-generated method stub
       return false;
   }

   @Override
   public boolean isFull() {
       // TODO Auto-generated method stub
       return false;
   }
  
   @Override
   public boolean push(T v) {
       // TODO write your code here
      
       return true;
   }

   @Override
   public T pop() {
       // TODO write your code here
      
       return null;
      
   }
  
   public String toString() {
       // TODO write your code here
      
      
      
       return "";
   }

   @Override
   public T peek() {
       // TODO Auto-generated method stub
       return null;
   }

}

make test classs   

write your code here
        Create a queue object.
        insert 5 Books in the Queue
        Create a stack object.
        Use the stack to reverse order of the elements in the queue.

In: Computer Science

Summarize (in your own words) the interventions the author(s) suggest to improve patient outcomes. Tanner, J.,...

Summarize (in your own words) the interventions the author(s) suggest to improve patient outcomes.

Tanner, J., Dumville, J. C., Norman, G., & Fortnam, M. (2016). Surgical hand antisepsis to reduce surgical site infection. Cochrane Database of Systematic Reviews, Issue 1. Art. No.: CD004288. DOI: 10.1002/14651858.CD004288.pub3.

In: Nursing

The number of students in the MPH program by county is given below. If a student...

The number of students in the MPH program by county is given below. If a student is selected at random from this dataset, find the probability that:

county # of students percentage
escambia 106 21.2
walton 151 30.2
santa rosa 150 30
okaloosa 93 18.6
total 500 100

MPH program (Show your work)

  1. The student is from Escambia county
  2. The student is from Santa Rosa county
  3. The student is from either Escambia or Santa Rosa county
  4. The student is not from Santa Rosa county

(Show your work)

In: Statistics and Probability

I am a doctorate student (Educational Leadership) taking a course in School Finance. Please give me...

I am a doctorate student (Educational Leadership) taking a course in School Finance.

Please give me questions that I can ask in an interview with a CFO/Treasurer of a school or university finance officer.

Thanks.

In: Finance

1. Discuss the difference between human rights, legal rights, and moral rights. 2. Apply these three...

1. Discuss the difference between human rights, legal rights, and moral rights.

2. Apply these three to the Tennessee v. Garner case, discussing the ramifications of each.

3. Research the Prima Facie Duties proposed by author W.D. Ross. In the Garner case, what duties of fidelity did the officers owe the victim, and what duties of justice were breached. Please help

In: Psychology

If a muscle cell is unable to produce any more ATP, which of the following would...

If a muscle cell is unable to produce any more ATP, which of the following would happen as a result?

SELECT ALL THAT APPLY

Calcium ions cannot be pumped back into the sarcoplasmic reticulum

Cross-bridges cannot break

Cross-bridges cannot form

Calcium cannot bind to troponin

In: Anatomy and Physiology