Assignment csc 1401 in the beginning of the program print


Goals and Topics

The assignment problem is straightforward. All necessary details have been supplied. The solution of the problem will use the programming concepts and strategies covered in Workshops 1-6. The subgoals are:

- Obtaining advanced understanding of values, variables and arrays;

- Understanding program input and output, functions and expressions;

- Understanding simple strategies like iteration, validation, sum, count, minimum, and maxi-mum plans;

- Translating simple design into JavaScript code

- The mechanics of editing, interpreting, building and running a program

- Testing a program

- Commenting source code

- Becoming con dent and comfortable with programming in small problems

Background

In online marketing, a shopping cart is a piece of e-commerce software on a web server that allows visitors to an Internet site to select items for eventual purchase, analogous to the American English term \shopping cart." In British English, it is generally known as a shopping basket, almost exclusively shortened on websites to \basket".

The software allows online shopping customers to accumulate a list of items for purchase, described metaphorically as \placing items in the shopping cart" or \add to cart". Upon checkout, the software typically calculates a total for the order, including shipping and handling (i.e. postage and packing) charges and the associated taxes, as applicable.

The development of web shop systems took place directly after the Internet became a mass medium. This was a result of the launch of the browser Mosaic in 1993 and Netscape in 1994. It created an environment in which web shops were possible. The Internet therefore acted as the key infras-tructure developments that contributed to the rapid di usion of the e-commerce. E-commerce (as a subset of e-business) describes all computer-aided business transactions. In 1998 a total of 11 e-business models were observed, one of which was the e-shop business model for a B2C (Business-to-consumer) business - also called the \online shop". The two terms \online shop" and \electronic" or \e-shop" are used inter-changeably. The term \online shopping" was invented much earlier in 1984; for example TV shopping often used the term before the popularity of the online method. Today the term primarily refers to the B2C transactional business model. In order to enable \online shopping" a software system is needed. Since \online shopping", in the context of the B2C business model, became broadly available to the end consumer, internet-based \online shops" evolved.

Implementation

Task 1 - Presenting the Catalogue

In the beginning of the program, print to a table the catalogue for all products including name, code, and price, to assist users shopping. You should use a loop plan to access the data stored in productListArr and priceListArr and present it in a four-column table, like Figure 4, where each column is a set of products with code, name, and price.

Task 2 - A Validation Plan for Valid Product Codes

You need to implement a validation plan to get a valid input from the user for product code. An input value is considered invalid if:

- it is not a number at all;

- it is not an integer number;

- it is a negative number;

- it is a number out of range (greater than or equal to the size of productListArr).

Task 3 - A Validation Plan for Valid Quantity Values

You need to implement another validation plan to get a valid input from the user for quantity. An input value is considered invalid if:

- it is not a number at all;

- it is not an integer number;

- it is zero or a negative number;

- it is greater than 100.

Attachment:- Shopping Cart Assignment.rar

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Assignment csc 1401 in the beginning of the program print
Reference No:- TGS01382086

Expected delivery within 24 Hours