BookCart | An e-commerce application for an online book store | SQL Database library
kandi X-RAY | BookCart Summary
kandi X-RAY | BookCart Summary
An e-commerce application for an online book store created with ASP.NET Core 6.0 and Angular 11, using SQL Server as database.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of BookCart
BookCart Key Features
BookCart Examples and Code Snippets
Community Discussions
Trending Discussions on BookCart
QUESTION
I'm currently trying to create a shopping program where people can "purchase" books. The problem is I have to calculate the final cost of the purchase, which I am stuck on. Do I create variables for each item and assign the price? Thank you for the help! My current code is below.
...ANSWER
Answered 2021-Jul-26 at 15:45The fact that you don't have the information for each book in any kind of data structure (other than copy+pasted strings) makes it hard to track prices. The easiest way to explain the concept of storing things in a useful data structure is by example, so I took a quick whack at "fixing" this code to store each book as a NamedTuple
:
QUESTION
SqlCommand detailsCommand = new SqlCommand("SELECT bd.bookName, bd.authorName, bd.publishDate bc.description, bd.keyWords FROM bookCart as bc, bookDetails as bd WHERE bc.bookCode = bd.code");
DataTable detailsTable = book.showData(detailsCommand);
String BookName = detailsTable.Rows[0]["bookName"].ToString();
String AuthorName = detailsTable.Rows[1]["authorName"].ToString();
String PublishDate = detailsTable.Rows[2]["publishDate"].ToString();
String Describe = detailsTable.Rows[3]["describtion"].ToString();
String KeyWords = detailsTable.Rows[4]["keyWords"].ToString();
...ANSWER
Answered 2020-Aug-02 at 08:51Try next:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install BookCart
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page