156k views
2 votes
Given a maker, model number, processor speed, RAM size, hard-disk size, and price, check that there is no product with that model. If there is such a model, print an error message for the user. If no such model existed in the database, enter the information about that model into the PC and product tables.

1 Answer

1 vote

Final answer:

To solve the problem, you would need to check if there is a product with the given model number in the database. If there is, print an error message. If not, enter the information into the PC and product tables.

Step-by-step explanation:

Based on the given question, the subject is Computers and Technology, and the grade level is High School.

To solve the problem, you would need to check if there is a product with the given model number in the database. If there is, you should print an error message for the user. If the model number doesn't exist in the database, you would then proceed to enter the information about that model into the PC and product tables.

Make sure to create the necessary code to perform the database lookup and handle the different scenarios. You can use conditional statements, query the database, and update the tables accordingly.

User Adi Azarya
by
8.4k points