Your Perfect Assignment is Just a Click Away

We Write Custom Academic Papers

100% Original, Plagiarism Free, Customized to your instructions!


MIS 307 Homework 5

MIS 307 Homework 5

MIS 307 Homework 5

Question Description

MIS 307 Homework 5

Non-programming Questions (10 points)

Use the sample database (four tables Invoice, Product, LineItem, and Customer) in Page W1022 of CH24 to answer the following questions.

R24.9 Give a SQL query that lists all customers in California or Nevada.

R24.12 Give a SQL query that lists all products that have been purchased by a customer in


R24.13 Give a SQL query that lists all line items that are part of invoice number 11731.

R24.16 Give a SQL update statement that raises all prices by ten percent.

Programming Question (30 points)

Write a Java program that does the following jobs.

Step1. Creates a House table with property id (PID), neighborhood, year built, sqft, number of bedrooms, number of bathrooms, and price.

Step2. Reads data from the CSV file and insert the houses into the table created in Step 1.

Step3. Interact with the user, where the user can select one of the following actions.

– (Q) Quit: quit the program

– (A) Add a house

– (C) Calculate average house price

– (P) Print a subset of the houses based on SQFT

– (B) Print a subset of the houses based on numBeds and numBaths

The user can choose one of these actions by typing Q, A, C, P, or R in the console. When adding a house, the user must provide property id (PID), neighborhood, year built, sqft, number of bedrooms, number of

bathrooms, and price through the console. When selecting a subset of the houses based on SQFT, a

lower bound SQFT value must be provided. When selecting a subset of the houses based on numbed

and numBaths, lower bounds must be provided.

To help you understand how the program works, a sample run is available in Appendix A in Page 3 of

this document.

Four files are provided with the assignment.

1. the main class of this assignment.

2. file for Apache Derby

3. file for Apache Derby

4. Ameshousing.csv: sample CSV file for Step 2.

Submit one source file ( In other words,,, or Ameshousing.csv should not be submitted. In modifying the source file,

1. Do not change the file (class) names. Three Points will be deducted if you have different names.

Class name changed due to Canvas (e.g., Classname(1).java, Classname(2).java) is ignored.

2. Fill in your name in the @author section of the comment in each of the files. If you do not, two

points will be deducted.

Submit your work to Canvas. Make sure to submit a source file (*.java). Class file (*.class) will not be

graded and receive zero credit.

Order Solution Now

Our Service Charter

1. Professional & Expert Writers: Top Grade Essays only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed of papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by Top Grade Essays are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Top Grade Essays is known for timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit in all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At Top Grade Essays, we have put in place a team of experts who answer to all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.