2014-11-23 17:32:48 -05:00

18 lines
1015 B
Markdown

Loan or No Loan?
================
Here is some people's last month bank statements. Query the database to answer the questions. Write methods to return all of the information to you. Don't do this manually.
* How many people are there in the database?
* What is each persons salary (return their name and salary)?
* What is each persons net income?
* How about their highest expense?
* What percent of their salary did they spend?
* What was the average price of their expenses (don't include salary)?
* How many expenses did each person have?
* How many things did each person buy in the first week of the month? How much money did they spend?
* How about in the last week?
* Print everything bought between $40 and $60.
* Using the mortgage calculator you built before (some adjustments will need to be made), how large of a house could each person afford on a 15 year mortgage at 4%, if they plan on saving $200 a month (assuming they keep their jobs and spend the same amount).
* Write the database to a csv.