Developing a shopping cart for a website

Assignment Help Computer Engineering
Reference no: EM131181804

Part 1

Assignment:

Displaying Content of an XML File Using PHP Script or Code

In this week, you are going to write the PHP script or code to read an XML file and display its content on the screen. The file you will modify is the Products page, which you created in W1 Assignment 2. Given the following data in XML format, modify the Products page to read and display the information in the Products page:

<Product>

<Item>

<Name>T-Shirt</Name>

<Price>12.5</Price>

</Item>

<Item>

<Name>Pants</Name>

<Price>45</Price>

</Item>

<Item>

<Name>Hat</Name>

<Price>10.5</Price>

</Item>

</Product>

Your end page result needs to show the items, their cost (price) in a table format. Use both PHP script as well as HTML tags to create the dynamic table from the given XML file.

Submit your code as well as a test plan in a 4- to 5-page Microsoft Word document consisting of:

- Screenshots of your project (showing design, data entered, and displayed)

- A paragraph explaining how you tested your project

Note: Submit the zipped code, HTML, and PHP pages zipped under one file.

Support your responses with examples.

Cite any sources in APA format.

Submission Details

Name your document SU_ITS4112_W2_A2_LastName_FirstInitial.zip.

Part 2

Assignment 2:

Developing a Shopping Cart for a Website

Now that you have built a web page for your business, you will be adding a shopping cart allowing users to add and remove items from it.

Modify your Products page to include an Add link, under each item (this link is a simple <A href> tag that will direct the user to another page, that will add the item to a cookie list). When the user clicks Add, he or she is directed to the Shopping Cart page (a PHP page that runs on the server side) where the item is stored inside a cookie.

Your Products page needs to also have a Remove link next to the Add link. When the user clicks Remove, the item needs to be removed by simply deleting its information from the cookie where the item was stored. It is a good idea to use the item Name or ID as an indicator to determine which cookie to remove.

The Shopping Cart PHP page needs to add the item to a cookie list and then display the contents of the cookie list to the user-to show the items added to the cart. The items can be displayed in a table format. Remember, each item is stored in a different cookie or you can use one cookie to store all the items, you simply add a separator between each item. For example, a cookie could contain the following items: Hat, Pants, and T-Shirt.

You can use PHP script to parse the cookie content by splitting the contents into three separate items or you may also use an array of cookies to store multiple items.

Submit your code as well as a test plan, in a 4- to 5-page Microsoft Word document consisting of:

- Screenshots of your project (showing design, data entered, and displayed)

- A paragraph explaining how you tested your project

- All HTML or PHP script zipped under one file

Support your responses with examples.

Cite any sources in APA format.

Submission Details

Name your document SU_ITS4112_W3_A2_LastName_FirstInitial.zip.

Part 3

(Below SHOULD BE DONE IN C++)

Assignment 2: OOP

This assignment will give you an opportunity to work with basic switch statement, multiple alternative if statements, and properly indented and nested double alternative if statements.

Complete the following programs:

1. Statements

Assume that quest is an integer variable containing a question number. Write a program that places the last name of a US President into the Text property of textbox txtOut according to the following criteria:

- "Washington" (if quest = 0), "Lincoln" (if quest = 1), "Jefferson" (if quest = 2), or "Roosevelt" (if quest = 3).

- Write the above mentioned program:

o Using switch statement

o Using multiple alternative if statements

o Using only properly indented and nested double alternative if statements

Save the interface as Switch.cpp.

2. Program Design Game Formulas

Most computer games use formulas to define what happens when a user interacts with the environment. For example, the formula for how much damage a player inflicted on a monster might be something like:

damage = (player strength + player weapon) - monster's protection

Assume that there are 100 possible values for each of the variables on the right side of this formula (from 0 = weak to 99 = strong).

Write a program that:

- Allows the users to enter their strength, weapon strength, and the monster's protection

- Finds out what the damage will be on clicking a button

Design a complete solution, including an interface sketch, object table, data table, algorithm, table of testing strategy, and trace examples of good and invalid data through the algorithm to verify that it is correct.

Save your program as GameFormula.cpp.

Submission Details:"

Embed the two programs in a Microsoft Word document with a description of your programming strategy.

Name your document SU_ITS3105_W2_A2_LastName_FirstInitial.doc.

(Below Should be done in C++)

Assignment 2: Classroom Seating

In this assignment, you will:

- Write a program that explores the seating patterns related to course performance by using an array of student scores. The program should do the following:

o Draw a seating chart of the classroom.

o Show where people sit and use color coding on the seats to indicate the student's current level of performance. The color-coding scheme should be as follows:

 Red-For students who are below the class mean

 Yellow-For students who are at or above the mean but below 90 percent

 Green-For students who are in the top 10 percent

- The program should use the following:

o A two-dimensional array of student scores instead of a one-dimensional array.

o The two-dimensional array of scores having the same number of rows and columns as the arrangement of seats in the classroom.

- Save the program as Seating.cpp.

Submission Details:

Embed the program in a Microsoft Word document with a description of your programming strategy.

Name your document W3_A2_Lastname_Firstinitial.doc.

Reference no: EM131181804

Questions Cloud

Combination of the other three : Consider the four vectors (1, 1, 1), (2, -1, 3), (1, 7, -1) and (1, 4, 0).Calculate how many ways you can write (1, 1, 1) as a linear combination of the other three, explaining your reasoning
Quality improvement contribute to productivity improvemet : Doing something rapidly and doing it well can be incompatible. - How might quality improvement contribute to productivity improvement?
Explain the early iterations of the hipaa act : Identify the early iterations of the HIPAA act and how the law has been modified to facilitate easier access to consumer complaints and enforcement.
How long does it take him to stop the vehicle : A man is driving at the speed of 40 mph when he see an obstacle at distance 300ft ahead of the position. The driver applies the breaks and decelerates at 10ft/s2. How long does it take him to stop the vehicle? How long will the driver be when he f..
Developing a shopping cart for a website : Developing a Shopping Cart for a Website - Write a program that explores the seating patterns - Now that you have built a web page for your business, you will be adding a shopping cart allowing users to add and remove items from it.
Modelled by the logistic equation : Suppose a population is modelled by the logistic equation such that the population after t years is given by 5000 p ( t )= for some constant k. If the initial population is doubled after 1+3 e-kt one year, then what is the population after two yea..
Document based on credible research and course materials : Prepare a document based on credible research and course materials addressing the following: •Discuss the four strategies firms can use when entering foreign markets.
What condition make purchasing a particularly vital function : What conditions make purchasing a particularly vital function in a small business?- Can the owner-manager of a small firm safely delegate purchasing authority to a subordinate? Explain.
What is the population after two years : Suppose a population is modelled by the logistic equation such that the population after t years is given by P(t)=5,000/1+2*exp(-kt) for some constant k.If the initial population is doubled after one year, then what is the population after two year..

Reviews

Write a Review

Computer Engineering Questions & Answers

  Find the disadvantages of low quality

What are the advantages of high quality and the disadvantages of low quality.

  What are the benefits of using search engines such as

what are the benefits of using search engines such as google yahoo or bing? what are some of the limitations and

  Questionphysical layer is only concerned with transmission

questionphysical layer is only concerned with transmission of a series of bits from one point to another. assume that

  Algorithm for generating list of customers

Develop an algorithm in order to generate a list of customers from Glad Rags Clothing Company’s customer master file.

  Write a function declaration and function definition

Write a function declaration and function definition for a function which allows the user to input an argument of type double.

  What is the instruction format class and why

Explain the operation of the 'MIPS andi ' instruction. Illustrate your answer with an appropriate example. In your answer you must provide details of the andi instruction format and of what each field in that instruction format does and how an and..

  Advantages of external cascading style sheets

The advantages of external cascading style sheets (CSS) compared to internal CSS. Explain situations in which each is the appropriate type. Given these situations, which type do you think would be more useful for the majority of web pages

  What is the w3c

sum up about P3P and present how this affects a website, website usage policies, privacy issues, agreements, etc.

  Propose the general layout for a web-based source document

castle point antique auction operates a successful web site that offers an auction forum for buyers and sellers of fine

  The requirements and scope had been poorly defined

What would you do if you were appointed project manager for an already running project, that was performing badly because the requirements and scope had been poorly defined at the outset?

  Display comments and identified source codes

Write and manually assemble the following programs. All memory addresses include the starting and ending addreses. display comments and identified source codes.

  Cfl pumping lemma

Utilize the CFL pumping Lemma in order to show each of these languages not to be context-free.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd