Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

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:


T-Shirt
12.5


Pants
45


Hat
10.5

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 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.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91937910
  • Price:- $120

Guranteed 48 Hours Delivery, In Price:- $120

Have any Question?


Related Questions in Computer Engineering

Write a program that populates an array named weekday from

Write a program that populates an array named weekday from the string SunMonTueWedThuFriSat, and then prints each day in uppercase. PERL Language

Briefly explain the meaning of the t-test for regression

Briefly explain the meaning of the t-test for regression analysis. How can the "rule of two" be used to evaluate t-ratios?

Suppose a network with 109 hostnames not including the

Suppose a network with 10^9 hostnames (not including the names of the nameservers themselves) uses non-recursive DNS. Assume that there is a single root nameserver, multiple local nameservers, and M levels of nameservers ...

Recursive greatest common divisor the greatest common

(Recursive Greatest Common Divisor) The greatest common divisor of integers x and y is the largest integer that evenly divides both x and y. what is a recursive function gcd that returns the greatest common divisor of x ...

Aa stock will pay dividends of 3 4 and 9 over the next

aA stock will pay dividends of $3, $4, and $9 over the next three years, and then increase dividends at a rate of 3% afterwards. Its required rate of return is 15%. What is the value of the stock? Round to the penny.

Q1 the market for apples is perfectly competitive say a

Q1. The market for apples is perfectly competitive. Say a typical firm has a marginal cost function of MC(q) = 2q. (1) The optimal quantity of apples to produce is 10 for the typical firm. How much revenue does the firm ...

Question reversing the elements of an array involves

Question : Reversing the elements of an array involves swapping the corresponding elements of the array: the first with the last, the second with the next to the last, and so on, all the way to the middle of the array. G ...

The stock of company tyk pays dividends annually with next

The stock of company TYK pays dividends annually, with next year's dividend expected to be $1 a share. For the next seven years, dividends are expected to grow at a rate of 6% a year. Thereafter, dividends are expected t ...

Can someone help me do this i need trace route of

Can someone help me do this i need trace route of Massachusetts Use trace route to trace the route from your home or work computer to the website of a university or company on another continent. Show the traceroute outpu ...

Wat are three 3 major categories of cyber terrorism and

What are three (3) major categories of cyber terrorism and / or information warfare. Among the chosen categories, determine the one (1) that should be the top priority for the federal government to address.

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As