Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Below is a Code for a Customer-Supplier Management System. It comprises of the Customers, Suppliers, Products, Categories, Price and Quantity. A GUI needs to be

Below is a Code for a Customer-Supplier Management System.

It comprises of the Customers, Suppliers, Products, Categories, Price and Quantity.

A GUI needs to be designed for this

and

The following code needs to be inserted in it.

Write the Code for GUI along with the Code Below: (Use Microsoft Visual Studio)

public class Customers { public int customer_id, pincode; public string address, name; public string read(){} public int Customer_id { get{ return customer_id; } set{ customer_id = value; } } public int Pincode { get{ return pincode; } set{ pincode = value; } } public string Address { get{ return address; } set{ address = value; } } public string Name { get{ return name; } set{ name = value; } } }

public class Suppliers { public int supplier_id, phone; public string name; public Customers *c; public Products *p; public Suppliers(Customers *c, Products *P) { this.c = c; this.p = p; } public int Supplier_id { get{ return supplier_id; } set{ supplier_id = value; } } public int phone { get{ return phone; } set{ phone = value; } } public string Name { get{ return name; } set{ name = value; } } public string create_inv(){} public string read(){} }

public class Products { public int product_id; public string product_name; public double discount; public int Product_id { get{ return product_id; } set{ product_id = value; } } public string Product_name { get{ return product_name; } set{ product_name = value; } } public double Discount { get{ return discount; } set{ discount = value; } } public void create(){} public void delete(){} public void update(){} }

public class Categories : Products { public int category_id; public string product_category; public int Category_id { get{ return category_id; } set{ category_id = value; } } public string Product_category { get{ return product_category; } set{ product_category = value; } } public void create(){} public void delete(){} public void update(){} }

public class Price : Products { public int price_id; public string product_price; public int Price_id { get{ return price_id; } set{ price_id = value; } } public string Product_price { get{ return product_price; } set{ product_price = value; } } public void create(){} public void delete(){} public void update(){} }

public class Quantity : Products { public int quantity_id, product_quantity; public int Quantity_id { get{ return quantity_id; } set{ quantity_id = value; } } public int Product_quantity { get{ return product_quantity; } set{ product_quantity = value; } } public void create(){} public void delete(){} public void update(){} }

image text in transcribed

CUSTOMERS SUPPLIERS + int customer_id + string address + int Supplier_id + string.name PRODUCTS + int product_id string product_name - double discount +int: Phone + string: Name + int pincode + method(string).create_inv + method(string) read + method(String).reado + method(void) create() - method(void): delete() + method(void): update AAA CATEGORIES PRICE QUANTITY + int price_id + int category_id + string product_category + int quantity_id + int product_quantity - string product_price + method(void) create() + method(void): delete - method(void) create() + method(void) delete) + method(void): update + method(void): create + method(void): delete + method(void) update() + method(void) update()

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 Proceedings Part 2 Lncs 13427

Authors: Christine Strauss ,Alfredo Cuzzocrea ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

3031124251, 978-3031124259

More Books

Students also viewed these Databases questions