Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are required to submit all source codes along with a document detailing your program, its functions, and including the program results. In Python Please.

You are required to submit all source codes along with a document detailing your program, its functions, and including the program results.
In Python Please. This programming project involves implementing a laptop market system named Knights UsedLaptop, designed for the selling and buying of used laptops. Sellers can register their used laptops, and buyers can browse, and purchase laptops listed by sellers. The system will maintain records of laptops and user information, including both buyers and sellers.
The Knights UsedLaptop system should be developed using Python programming language.
Your program must provide the following functions as below:
a. Create an account (10 points)
To participate in buying or selling, users are required to create an account by providing the following information. These user accounts will be stored and managed within a user list.
Name
Telephone Number
E-mail
Username
Role: Buyer or Seller
b. Delete an account (10 points)
Delete the current user account from the list of users. If no account is found, the system will display an error message such as "The account was not found."
c. List laptops (10 points)
Sellers have the capability to list laptops onto a laptop list by providing the following information. If a buyer attempts to list laptops, the system will generate an error message stating, "Only sellers can list a laptop." When a laptop is listed, the status should be "Available".
Item Number
Model
Manufacturer
Price
Seller username
Status: Sold or Available
d. Delete laptops (10 points)
Once a laptop is sold, its status should be updated to "Sold," and sellers may have the ability to delete sold laptops from the laptop list.
e. Transaction (20 points)
When a buyer purchases laptops, the system should calculate and show the details of the transaction.
(e.g.)
Username: mga101, Role: Buyer, Name: Thor
The laptops to purchase are as below:
\table[[#,Item Number,Manufacturer,Model,Price],[1,101,Dell,XPS 15,$900.00
This programming project involves implementing a laptop market system named Knights UsedLaptop, designed for the selling and buying of used laptops. Sellers can register their used laptops, and buyers can browse, and purchase laptops listed by sellers. The system will maintain records of laptops and user information, including both buyers and sellers.
The Knights UsedLaptop system should be developed using Python programming language.
Your program must provide the following functions as below:
a. Create an account (10 points)
To participate in buying or selling, users are required to create an account by providing the following information. These user accounts will be stored and managed within a user list.
Name
Telephone Number
E-mail
Username
Role: Buyer or Seller
b. Delete an account (10 points)
Delete the current user account from the list of users. If no account is found, the system will display an error message such as "The account was not found."
c. List laptops (10 points)
Sellers have the capability to list laptops onto a laptop list by providing the following information. If a buyer attempts to list laptops, the system will generate an error message stating, "Only sellers can list a laptop." When a laptop is listed, the status should be "Available".
Item Number
Model
Manufacturer
Price
Seller username
Status: Sold or Available
d. Delete laptops (10 points)
Once a laptop is sold, its status should be updated to "Sold," and sellers may have the ability to delete sold laptops from the laptop list.
e. Transaction (20 points)
When a buyer purchases laptops, the system should calculate and show the details of the transaction.
(e.g.)
Username: mga101, Role: Buyer, Name: Thor
The laptops to purchase are as below:
\table[[#,Item Number,Manufacturer,Model,Price],[1,101,Dell,XPS 15,$900.00
image text in transcribed

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

Filing And Computer Database Projects

Authors: Jeffrey Stewart

2nd Edition

007822781X, 9780078227813

More Books

Students also viewed these Databases questions