For this assignment, you will need to use a Netbeans project which you will need to name using your Last name followed by your first name followed by “-Homework2” to name it After completing the assignment, zip the project directory and turn in via blackboard by the due date. For this assignment, you may begin with the result of homework #2 (note: you may use my solution if you want). If you do, please rename according to rules above. Part I: (25%): Validation 1. As a reminder, you were asked to create POST and PUT endpoints for reviews in homework #2. We’re going to setup validation requirements for BOTH of those endpoints. 2. (5%) You will need to ensure both endpoints are setup to ensure only valid products. 3. (10%) You need to setup the following constraints for the employee: a. SKU must be present and in the correct range (7-digit number) b. Name cannot be blank and must be no longer than 30 characters c. Description cannot be blank and must be no longer than 300 characters d. Category cannot be blank and must be no longer than 30 characters e. SellerID must be present and in the correct range (7-digit number) f. Price must be a positive value number 4. (10%) You will need to setup an exception handler which handles validation issues. Copy the exception handler we used in class for this purpose into your project. Part II: New GET endpoints 1. (15%) Get all products from a given seller (do NOT use custom queries) using the seller’s name a. If seller doesn’t exist, return an empty list b. otherwise, return all products listed by a given seller 2. (15%) Get all products offered in a given state (please use the two letter abbreviation) a. Given the state abbreviation, return all products that are sold in the given state. Part III: (30%) Generating HTML files for the project 1. All pages should be in static folder of the project so that they appear when the web server runs. 2. (20%) Create several web pages that show the products sorted in different ways (Hint: use orderby in your queries). Note I should see BOTH the code and the actual pages. a. index.html – a page which contains the products sorted by their SKUs (ascending) b. name.html – a page which contains the products sorted by their name (ascending) c. seller.html – a page which contains the products sorted by their sellers name (ascending) d. price.html – a page which contains the products sorted by their price (ascending) 3. (10%) The lists shown in these pages should be in a HTML table that shows the SKU, Names, Seller’s Name, and Price for each product. (you should alternate colors between rows and have a table header identifying what item goes where) Part IV: (20%) Creating an Add Product form 1. (20%) Create an addProduct.html page which has a form with the following elements: a. (2%) The action should be addProduct.html and the method should be GET b. (5%) The forms should have input text fields for all fields in the product except category and a textarea for the description. c. (5%) The form should have a select box to select from a list of categories available. d. (2%) The form should include a submit button and a reset button e. (1%) The title of the page and the heading on the page should read “Add New Product”. Part V: (25%) Creating the website 1. (10%) In the pages for the different review lists, change the column headers to be links to the appropriately sorted page. 2. (5%) In the pages for the different review lists, create a link to the add product page. 3. (5%) In the add product page, create a link to the list (index.html) 4. (10%) For all pages, use an external style sheet to beautify the pages in some way. Note: • For Part III/IV/V, the pages should be static and generated via java code within the project. You may handwrite Part IV/Part V, but not Part III. • If the project or the zipped file is NOT named correctly, I will take 10 points off the total score. • If the files within the project are named incorrectly, I will take 10 points off the total score. • If the project doesn’t contain sufficient comments, I will take 10 points off the total score. • This is an individual assignment and what you turn in should represent only your work. • Do NOT try to do this last minute!
Category: Java homework help
Starting with the UML object model from Exercise 8, add a player and a dealer o
Starting with the UML object model from Exercise 8, add a player and a dealer o
Starting with the UML object model from Exercise 8, add a player and a dealer object to the model. However, do not implement these additional classes. The player object will represent each player in the game. A player will need to be able to • Add cards to its hand, • Get the hand total, • Have a name. The dealer object represents the dealer, which will, • Control the overall gameplay. • Handle the deck, manage players, • Contains its own hand, • Do the start deal, and • Determine winning players’ hands.
Introduction to Numpy, Pandas, Matplotlib Download Jupyter Notebook file -> C
Introduction to Numpy, Pandas, Matplotlib
Download Jupyter Notebook file -> C
Introduction to Numpy, Pandas, Matplotlib
Download Jupyter Notebook file -> CAP4611-HW1-Tools.ipynbDownload CAP4611-HW1-Tools.ipynb
Follow the prompts in the attached Jupyter Notebook. Download the data from (Modules/ Datasets for Assignment) and place it in your working directory, or modify the path to upload it to your notebook.
Before every code cell, add markdown cells to your analysis. Include your solutions, comments, and answers on how to solve the problem. Add as many cells as you need, for easy readability comments when possible.
Hopefully, this homework will provide you with an introduction on the tools you need to use to learn about Machine Learning and get you ready for individual work.
Submission: Save your ipynb file named with your Name_HW1 (e.g.John_Doe_HW1.ipynb).
Good luck!
You’ve been asked by the 3rd grade teacher in your school to develop a simple pr
You’ve been asked by the 3rd grade teacher in your school to develop a simple pr
You’ve been asked by the 3rd grade teacher in your school to develop a simple program that provides students with some random multiplication practice.
Your program needs to:
ask the student for the lowest and highest numbers they want included, saving the inputs in variables lowEnd and highEnd.
generate two random integers within the range of lowEnd to highEnd. Save these numbers in the variables firstNum and secondNum.
prompt the user to submit their answer to the multiplication of firstNum and secondNum.
print the solution to the problem once they submit their answer.
A sample run looks like this (everything to the right of the colon in the sample is a number inputted by the user, not printed by the program):
A couple of hints:
Just like how you can combine strings and variables in a console.log() print, you can also do so in a user input function like readInt().
For example, the code: readInt(firstNum + ” – ” + secondNum + “: “); would prompt the user to input an answer to the subtraction of the variables firstNum and secondNum.
You can use a blank console.log() to print a blank line in your output. This helps make the output easier to read.
Make sure you are writing your program within the main() function and calling it!