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

CSIA 310 wk2 discussion

  Write a short “newsletter” article (3 to 5 paragraphs) for the non-technical managers and employees at Sifers-Grayson to explain the following: (a) What is Phishing? (Focus on phishing emails and targeted attacks that include spear phishing and whaling.) (b) What “bad things” can happen when a successful phishing attack

Project 3

To complete this assignment, review the prompt and grading rubric in the Project Three Guidelines and Rubric. When you have finished your work, submit the assignment here for grading and instructor feedback.

digital marketing

 Digital marketing involves promoting products and services using online platforms.The goal is to increase brand awareness and drive sales 

WEEK 2 DISCUSSION MR

 I UPLOADED IN THE FILE HOW THE ASSIGNMENT SHOULD FLOW AND ALSO THE ACCEPTABLE TOPICS FOR MY PROGRAM THAT U CAN SELECT FROM!  INSTRUCTIONS!! This week you considered study topics deemed acceptable for your program. For this discussion, share with your peers your initial thoughts on a topic you’d like

wk 2 practice models

INSTRUCTIONS!! Discuss the various practice models discussed in Chapter 3 of The Ernst and Young Business Plan GuideLinks to an external site.. What model is the most attractive for your own consultancy? Why? Do you see the model for your practice changing in the future?   READ CHAPTER 3!! OF THE

Computer Science Sustainable Development Goal and Mobile App Assignment

ATTACHED IS THE COPIED STATEMENT ON INTEGRATION OF FAITH AND WORK A s a university, we believe that the message of Jesus Christ bears profound implications, not only for individuals, but also for society and the ways that we as individuals live within it. The Lord Jesus instructed His followers

Intro Pogramming

After viewing the videos and listening to the information on programming, you should be ready to answer the questions listed below.     Your assignment is as follows:  I.   Access the Youtube videos:    Introduction to Programming Fundamentals (by Neso Academy).  You will be responsible for accessing the first 3 videos in

Disruptive technology and its impact on society (Discussion)

A discussion on disruptive technology and its impact on society 1) Discussion 1: Write a reflective response to the lesson on disruptive technology and its impact on society. (200-word minimum) Explore the impact on a macro and micro level looking at the impact on systems and structures as well as the

week 1 begin your

 I am a Kroger fulfillment delivery driver trainer / and I am also a TECH SUPERVISOR for spectrum whichever job you find easier to discuss about share something from your profession, job, or other source of inspiration that generated the idea for your project. What do you want to learn

project 2

To complete this assignment, review the prompt and grading rubric in the Project Two Guidelines and Rubric. When you have finished your work, submit the assignment here for grading and instructor feedback. For reference, refer to the CIA Triad and Fundamental Security Design Principles PDF document.

project 1

To complete this assignment, review the prompt and grading rubric in the Project One Guidelines and Rubric. When you have finished your work, submit the assignment here for grading and instructor feedback.

Final SWOT presentation

Concepts and Applications of Information Technology (IFSM201) Class Project Purpose of this Assignment The Class Project is the most significant assignment in this course, Concepts and Applications of Information Technology. As such, it accounts for 58% of the course points. This assignment is comprised of two deliverables: a SWOT Analysis

Wk4_411

Need help with a question. Due 10/7/2024 Based on your research, readings, and this week’s Learning Team assignment, create a 4- to 5-page sample penetration agreement for a banking institution using the major sections listed below and the purpose of each section. Include examples within each section. The major sections

Discussion 7 Social Networking

  Discussion Seven – Social Networking Social networking Web sites create online communities of Internet users that eliminate barriers created by time, distance, and cultural differences. These sites allow people to interact with others online by sharing opinions, insights, information, interests, and experiences.  Members may use the site to interact

Cap assign

Unit III Scholarly Activity Top of Form Bottom of Form Assignment Content Top of Form Purpose, Subject, Object, and Ethics In this unit, you will determine the purpose, subject, object, and ethical considerations of your case study, then assemble your findings in the  Unit III Case Study Outline Template .

project 3:

Support Queue Case Study Instructions:  Select two tickets from each level and explain how you would solve them. Name:  Level 1 Tickets Instructions:  Select two of the five scenarios to troubleshoot.  One template has been created for each of the two tickets you need to choose.  Make one to two

case

Write three pages of high-quality content for this case study, using the concepts discussed in class and any relevant external resources to support your analysis. Follow the instructions for your research problem carefully, as your argument and research will significantly impact your grade. Ensure that AI patterns do not exceed