Our Services

Get 15% Discount on your First Order

[rank_math_breadcrumb]

computer science

CST 365/465
Michael Ruth
Homework #1
Due: 6/17/24 (by midnight)

For this assignment, you will need to create a Netbeans project (using Spring Initializer) which you will
need to name using your Last name followed by your first name followed by “-Homework1” to name it.
After completing the assignment, zip the project directory and turn in via blackboard by the due date.

Finally, you will need to perform this work using Spring Boot.

(15%) Part I: Initialization

1. (5%) Our spring system will be a video game catalog system that will allow us to work with a video
game database. We’ll need a basic video game object (name it Game) which has the following
fields with the following types:
a. EQUALS method: should exist and use GID to compare games for equality.
b. Should include the following fields:

i. GID (int), name (String), system (String), genre (String), price (double)
1. Note that system is the type of system the game runs on (Atari, Nintendo Swith, etc.)
2. Note that genre is a type of game, like RPG, Action, Racing, etc.

2. (10%) Your Controller should create 30 games at random using the initialization code similar to
what we developed in class (in week 1) and store them in an ArrayList designed to store games.

(50%) Part II: GET endpoints

1. (10%) Get all games
2. (10%) Get employee with given GID

a. GID must be given through the path
b. If the employee with the given GID exists, return it
c. Otherwise, return 404

3. (10%) Get all games for a given system
a. System must be given through the path
b. Return all games for a given system

4. (10%) Get all games for a given genre
a. Genre must be given through the path
b. Return all games for a given genre

5. (10%) Get all games priced between a given range (low, high values)
a. A high value and a low value must be given through the path
b. Return all games that are priced between the high and low given values

(10%) Part III: POST endpoints
1. (10%) Add a game

a. Game must be given through the body
b. No duplicates allowed
c. Only accept valid games (must use validation criteria from part V)
d. Report with game if OK, or report FOUND

(10%) Part IV: PUT endpoints
1. (10%) Update an game

a. Game must be given through the body
b. Game must already exist
c. Update the game using the given game values
d. Only accept valid games
e. Report with employee if OK, conflict otherwise

(5%) Part IV: DELETE endpoints

1. (5%) Delete game with the given GID
a. GID must be given through the path
b. Game must exist with the given GID
c. Report with game if OK, 404 otherwise

(10%) Part V: Validation (Employee)

1. (10%) Validate all fields of employee using the following constraints:
a. GID must be present and a 6 digit number
b. Name, genre, system must be present and not empty strings
c. Price must be positive number and greater than 0
d. Make sure to have exception handling as necessary (JUST COPY MY CODE FOR THIS PART

INTO YOUR PROJECT)

GRADUATE STUDENTS ONLY (UG may do for extra credit)

You will work on some additional GET endpoints:

1. (5%) Create a new object named Manufacturer with two fields: (int) MID, and (String) name.
2. (5%) In the constructor for your controller, generate 5 manufacturers and put them into a

separate list.
3. (10%) Create an additional int field for game named man (will refer to their manufacturer’s

MID) and initialize the field during creation of the games to one of the MIDs of the
manufacturers you created.

4. (15%) Create the endpoints necessary in the same controller to manage manufacturers (list,
delete, update, put)

5. (15%) Create an endpoint that gets all games for a given manufacturer name
a. Manufacturer name must be given through the path
b. Return all games for a given manufacturer name

Note:

• 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.

• Do NOT use lamba expressions for this homework, if you do, you will receive a zero.

• 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!

Share This Post

Email
WhatsApp
Facebook
Twitter
LinkedIn
Pinterest
Reddit

Order a Similar Paper and get 15% Discount on your First Order

Related Questions

PhD thesis

I need a comprehensive PhD thesis developed on the topic of “Emotion-Aware Artificial Intelligence and Sustainable Consumer Behavior: A Neuro-AI Marketing Framework for Continuous Green Consumption.”

Co project

· Comprehensive Literature Review: Require a more comprehensive survey of existing approaches. · Comparative Study: Expect more detailed benchmarking of at least 8 to 10 machine learning models. · Additional Experiments: · Conduct feature selection or dimensionality reduction as an extra step. · Explore ensemble methods or advanced techniques beyond

AI

Did AI take place the Software Engineers, HR consultants and Data Entry Jobs?

Data visualization 4 part 2

Follow the attached instructions to complete this work. Unit 4 Assignment Directions: Time Series In this assignment, you will perform a time series analysis in Tableau. · Choose a dataset to analyze based on the requirements provided.   · Once you’ve selected your time series, build a forecast to predict future

Computer Science CG Assignment 8 presentation

Follow the attach instruction to complete this work. Note: Make sure it aligns with Rubric Unit 8 Assignment 2 Directions: Final Presentation Purpose With this presentation, you will gain valuable experience demonstrating your expertise in cybersecurity governance by presenting as a CISO to a hypothetical professional audience.  Directions Begin by incorporating

Computer Science CG assignment 8

Follow the attached assignment to complete the work. Note: Follow Rubric Unit 8 Assignment 1 Directions: Presentation Rehearsal Purpose The rehearsal is your first run-through of your talk. Use the opportunity to de-bug any technical issues with lighting, positioning, and recording. You will not be graded on technical or artistic

Computer Science CG assignment 7 Outline

 Follow the attached document to complete this work Unit 7 Assignment 1 Directions: Professional Presentation Outline Purpose This assignment allows you time to review your research from previous units and organize your thoughts in an outline format. Plan on changing your paper and presentation based on feedback on this outline.  Directions

Computer Science CG assignment 6 ,

Follow the attached direction to complete this work. Note: Make sure it Aligns with Rubric Unit 6 Assignment 2 Directions: Timothy Brown vs. the SEC Purpose The Securities and Exchanges Commission (SEC) is a key US federal agency that regulates financial reporting. In this paper, you will explore how the

Microsoft 365Tenant to Tenant Migration Solution

A smooth tenant-to-tenant migration requires more than just moving mailboxes—it demands precision, security, and planning. With the MailsDaddy Cross-Tenant Migration Service, IT teams can execute a flawless cross-tenant mailbox migration that covers emails, attachments, calendars, contacts, and OneDrive data. It’s built for businesses of every size, ensuring the entire Office

CO Data 3

DECISION TREES for Risk Assessment One of the great advantages of decision trees is their  interpretability. The rules learnt for classification are easy for a person to follow, unlike the opaque “black box” of many other methods, such as neural networks. We demonstrate the utility of this using a  German

Computer Science Homework 1

MMIS 671 Homework 1. Constrained Optimization Problems A company produces 3 types of cables: A, B, and C. In-house production costs per foot of cables A, B, and C are $6, $8, and $10, respectively. The production process requires 5 resources: Drawing, Annealing, Stranding, Extrusion, and Assembly. For each resource,

MIMT

  Task 2.4 — Executing the Payload After decrypting and executing the transferred file, it generates a unique hash tied to your GTID. What’s the hash?

data Discussion 3

Follow the attached instructions to complete this. use the   CRM Sale Dashboard. Unit 3 Discussion: Deconstruction of an Advanced Dashboard: Trends and Improvements   Discussion Prompts · Does the dashboard designer use any of the trends that are described in Milligan’s Chapter 9? · If they did use those

Assign 4 of CG

Follow the attach instructions to complete this work. Make sure it alligns with rubric. Guidance to follow I encourage you to build your project format following the requirements established in each project’s final step. I am going to give you the key to success. I am a fan of headings/subheadings