Project In this project, you will be asked to implement a simple Java program that will maintain its data using a specific NoSQL database called MongoDB. In this program you will be asked to maintain an object called Product, each product will have the following attributes: + Product ID. + Product Name. + Product Description. + Product Price. You will be asked to implement two types of products. « Dimensional Products. * Weighted Products.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
inal Project In this project, you will be asked to implement a simple Java program that will maintain its data using a specific NoSQL database called MongoDB. In this program you will be asked to maintain an object called Product, each product will have the following attributes: + Product ID. + Product Name. + Product Description. + Product Price. You will be asked to implement two types of products. « Dimensional Products. * Weighted Products. For the products of type Dimensional, they will have two extra values that express the width and the length of the product stored. For the products of type Weighted, they will have one extra value that express the weight of the product stored. When the program runs, the following choices appear. 1- Show all Products. 2- Add Product. 3- Delete Product. 4- Update Product. 5- Replace Product. 6- Search Product. 7-Bxit. Enter your choice: Notes: 1- When the program starts, it should connect automatically to a Database that is called “DBCourse” and a Collection called “Products”. 2- All functions should affect the data stored in the database. 3- Any missing functions or Not working properly means zero for that part of the project.
Final Project
In this project, you will be asked to implement a simple Java program that
will maintain its data using a specific NOSQL database called MongoDB.
In this program you will be asked to maintain an object called Product, each
product will have the following attributes:
• Product ID.
Product Name.
• Product Description.
• Product Price.
You will be asked to implement two types of products.
• Dimensional Products.
• Weighted Products.
For the products of type Dimensional, they will have two extra values that
express the width and the length of the product stored.
For the products of type Weighted, they will have one extra value that
express the weight of the product stored.
When the program runs, the following choices appear.
1- Show all Products.
2- Add Product.
3- Delete Product.
4- Update Product.
5- Replace Product.
6- Search Product.
7- Exit.
Enter your choice:
Notes: READ CAREFULLY.
1- When the program starts, it should connect automatically to a
Database that is called "DBCourse" and a Collection called
"Products".
2- All functions should affect the data stored in the database.
3- Any missing functions or Not working properly means zero for that
part of the project.
Project Output Example
Whats your key? (Enter the number only): 4
Choose operator.
Enter your choice: 4
Enter the condition for the update operation.
Choose Key.
1- Greater Than
2- Greater Than or Equals
3- Less Than
4- Less Than or Equals
5- Equals
6- Not Equals
Whats your operator? (Enter the number only): 1
Enter Value: 1000
Enter the key you want to update
1- ID
2- Name
3- Description
4- Price
5- Weight (Aplicable only for Weighted Products)
6- Width (Aplicable only for Dimensional Products)
7- Height (Aplicable only for Dimensional Products)
Whats your key? (Enter the number only) : 2
Enter the now (updated) value: Ahmod
1- ID
2- Name
3- Deseription
4- Price
5- Weight (Aplicable only for Weighted Producta)
6- Width (Aplicable only for Dimunsional Products)
7- Height (Aplicable only for Dimensional Products)
Whats your key? (Enter the number only): 4
Choose operator.
1- Greater Than
2- Greater Than or Equals
3- Less Than
4- Less Than or Equaln
5- Equals
6- Not Equals
Whats your operator? (Enter the number only): 1
Enter Value: 1000
Transcribed Image Text:Final Project In this project, you will be asked to implement a simple Java program that will maintain its data using a specific NOSQL database called MongoDB. In this program you will be asked to maintain an object called Product, each product will have the following attributes: • Product ID. Product Name. • Product Description. • Product Price. You will be asked to implement two types of products. • Dimensional Products. • Weighted Products. For the products of type Dimensional, they will have two extra values that express the width and the length of the product stored. For the products of type Weighted, they will have one extra value that express the weight of the product stored. When the program runs, the following choices appear. 1- Show all Products. 2- Add Product. 3- Delete Product. 4- Update Product. 5- Replace Product. 6- Search Product. 7- Exit. Enter your choice: Notes: READ CAREFULLY. 1- When the program starts, it should connect automatically to a Database that is called "DBCourse" and a Collection called "Products". 2- All functions should affect the data stored in the database. 3- Any missing functions or Not working properly means zero for that part of the project. Project Output Example Whats your key? (Enter the number only): 4 Choose operator. Enter your choice: 4 Enter the condition for the update operation. Choose Key. 1- Greater Than 2- Greater Than or Equals 3- Less Than 4- Less Than or Equals 5- Equals 6- Not Equals Whats your operator? (Enter the number only): 1 Enter Value: 1000 Enter the key you want to update 1- ID 2- Name 3- Description 4- Price 5- Weight (Aplicable only for Weighted Products) 6- Width (Aplicable only for Dimensional Products) 7- Height (Aplicable only for Dimensional Products) Whats your key? (Enter the number only) : 2 Enter the now (updated) value: Ahmod 1- ID 2- Name 3- Deseription 4- Price 5- Weight (Aplicable only for Weighted Producta) 6- Width (Aplicable only for Dimunsional Products) 7- Height (Aplicable only for Dimensional Products) Whats your key? (Enter the number only): 4 Choose operator. 1- Greater Than 2- Greater Than or Equals 3- Less Than 4- Less Than or Equaln 5- Equals 6- Not Equals Whats your operator? (Enter the number only): 1 Enter Value: 1000
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Types of trees
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education