Your Perfect Assignment is Just a Click Away
We Write Custom Academic Papers

100% Original, Plagiarism Free, Customized to your instructions!

glass
pen
clip
papers
heaphones

Build web applications using PHP or similar languages.

Build web applications using PHP or similar languages.

IT230 Assignment 2

Question Three

IT230 Web Technologies

College of Computing and Informatics

Question One
1 Marks

Learning Outcome(s):

Build web applications using PHP or similar languages.

What is a Servlet? What is the main job of HttpServletRequest and HttpServletResponse?

Answer:

What is a Servlet?

A servlet is a Java programming language class that is used in a request-response programming model to expand the functionality of servers accessed by host apps. Although servlets can respond to any form of request, they are typically used to extend web server hosted applications.

What is the main job of HttpServletRequest and HttpServletResponse?

A Servlet is a Java programming language class that is used to extend the functionality of servers accessed by host apps in a request-response programming model. Although servlets can respond to any type of request, they are usually used to expand applications hosted by the web server.

Question Two
2 Marks

Learning Outcome(s):

Write XML documents & XML Schema.

Convert the following Menu to XML document (it should be a well-formed XML document):

Answer:

Shakshuka

35 SAR

Farm eggs served over-easy in tomato-chili sauce oregano,feta,served with flatbread+home fries.

Steak n Eggs

45 SAR

Chicken-fried sirloin,rosemary garlic new potatoes,fried egg,Texas toast

Espresso

10 SAR

Latte

12 SAR

Cappuccino

14 SAR

Scrambled Eggs

15 SAR

Chips and Salsa

17 SAR

French Fries

10 SAR

Water

2 SAR

Question Three
2 Marks

Learning Outcome(s):

Build web applications using PHP or similar languages.

Write a PHP code that displays the following output:

The program will print “Have a good day” if the time is less than 12 PM and will print “have a good night” if it is 12 or more.

Hint: date function in php is date();

Answer:

=12)

{

return “have a good night”;

}

}

echo “Time:”.date(“h”);

echo “
“;

echo “Date:”.date(“Y-m-d”);

echo “
“;

echo welcome();

?>

Question Four
1 Marks

Learning Outcome(s):

Build web applications using PHP or similar languages.

Write a PHP code that displays the following output. You must use arrays to display the course code. Note: You can change the courses based on what you are studying this semester. Hint: create an array, that has all of your courses, and use it to print the courses list.

Answer:

“;

echo “I am studying in Fall2020 semester the following courses:
“;

echo “
“;

f

Order Solution Now

Our Service Charter

1. Professional & Expert Writers: Topnotch Essay only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed of papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided byTopnotch Essay are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Topnotch Essay is known for timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit in all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At Topnotch Essay, we have put in place a team of experts who answer to all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.