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.

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter3: Data Representation
Section: Chapter Questions
Problem 3RP
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
  • SEE MORE QUESTIONS
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT