Web Designing And Development Homework Help

Search for question

Questions & Answers

Question 1 (15 pts) For each of the following program fragments, give an analysis of the running time (using Big-Theta). Assume ‘sum’ and ‘n’ are initialized before running the fragment.


Question 2. (15 pts) What is the asymptotic complexity of the following functions?


Make PPT Rare Air Ski Association ADDING MEDIA AND ANIMATION TO A PRESENTATION


Question One 1. In your own word, explain what are the differences between alert and prompt windows? 2. Using HTML and JavaScipt, provide a script for the below screenshot.


Question Four Provide an xml file that references the following Document Type Definition: (*You may use your own data). <?xml version="1.0"?> <!DOCTYPE student [ <IELEMENT student (name, ID, branch)> <!ELEMENT name (#PCDATA)> <IELEMENT ID (#PCDATA)> <!ELEMENT branch (#PCDATA)> ]


Question Five Write the HTML and the JavaScript code that validates a numeric input. The number entered by the user should be between 1 and 10. When the user enters an invalid value, the background of the input will be red and the sentence "The number should be between 1 and 10" will be displayed in red just after the form. Number: 66 register The number should be between 1 and 10


Creating a Node Project Tasks This task assumes that you have already installed Node.js on your computer. The goal is to demonstrate the successful running of a Node express web server that is capable of serving both static and dynamic web pages. You are required to create your own local directory and run a local Node Express web server. Follow the instructions below to create your own Node project. 1. Run NPM in your created local directory to install the modules: express and sqlite3. 2. Check the folder/sub-directory node_modules in your local directory to see if the above modules are installed. 3. Using the express module create a Node.js application (i.e., index.js) that will set a local web server. The server listens to the port 3000 and sets the folder/subdirectory public_html as the default server home directory. Any HTML files saved in this home directory can be accessed by web browsers via the local server. When the user accesses http://localhost: 3000 using a web browser (i.e., by default this would normally access the index.html file found in the public_html folder), the Node.js application should serve the static message "Welcome to SIT774! This page was served dynamically from the express server." is displayed. 4. Create the sub-directory/folder public_html in your local directory. 5. Create a HTML document (e.g., test.html) and save it into the public_html. 6. Run the command node or node index.js in a Command Prompt (Windows) or Terminal (Mac OS) within your local directory to make the server work. 7. Open a web browser (NOTE: You may need to run this in an Incognito window if you are using a Chrome browser, given a recent bug crbug.com/1173575) and visit http://localhost: 3000, the message "Welcome to SIT774! This page was served dynamically from the express server." should be displayed in the window like:


Writing a Server Application Tasks In this task you are asked to demonstrate how a web server can be coded to serve dynamic pages. Specifically, the server application is to provide a page that displays if the visitor is a Winner of a Competition or not. The selection of a win/no-win can be based on a simple random number selection (i.e., 1 in 3 chance). This page is to be served through a defined web address (or route) such as http://localhost: 3000/competition. Follow the steps below to complete this task: 1. Create your own local directory (or you can use the same local directory created in Task 8.1). 2. Use express module to create a Node.js application (i.e., using the index.js from your Task 8.1 or creating a new expressserver.js) that will set a local web server. The server listens to the port 3000. 3. Modify your index.js (or expressServer.js) file to: o remove the hardcoded response for the GET on the route (as done in Task 8.1P) and change it to serve pages form the public_html folder, as done in previous weeks (sample of this code is shown in the snippet below) o add a route handler for a GET request on /competition. This would enable access to http://localhost: 3000/competition using a web browser. The handler for this route would then choose a random number (say out of 3) and if it equals 3 then display a 'win', otherwise display a 'no win' message. These messages, along with a statistics (tally) of wins & losses, should be provided a new webpage. 4. Run the command node. (to run the index.js) or node expressServer.js in a Command Prompt (Windows) or Terminal (Mac OS) within your local directory to make the server work. 5. Use the provided index.html file to access your newly created /competition route handler (or access it directly through http://localhost: 3000/competition), the Home page should appear like this:


Chapter 2: Summary Hands-On Practice Case Study Task 1: The Website Folder. Create a folder on your hard drive or portable storage device (thumb drive or SD card) called "yoga" to contain your Path of Light Yoga Studio web page files. Task 2: The Home Page. You will use a text editor to create the Home page for the Path of Light Yoga Studio website. The Home page is shown in Figure 2.46. Task 3: The Classes Page. Create the Classes page shown in Figure 2.47. A technique that improves productivity is to create new pages based on existing pages so that you can benefit from your previous work. Your new Classes page will use the index.html page as a starting point. Open the index.html page for the Path of Light Yoga Studio website in a text editor. Select File > Save As, and save the file with the new name of classes.html in the yoga folder. Now you are ready to edit the page. 1. Web Page Title. Modify the page title. Change the text contained between the <title> and </title> tags to the following: Path of Light Yoga Studio :: Classes 2. Wireframe Main Content. a. Delete the Home Page content paragraphs, unordered list, and contact information. b. Configure the following text in the heading 2 element: Yoga Classes


7.2P: Event Handler and Dynamic Page Tasks You are required to complete the following tasks using JavaScript: 1. Prompt the user to enter their name into a text box (e.g., Michael). 2. Include a Button object that when clicked modifies the content of the page to display an appropriate greeting message. o The current time of day should be used to personalise the message, for example, Good Morning, Good Day, Good Afternoon, or Good Evening) along with the input name (e.g., "Good Morning Michael") based on the hour of the day. • Also include the time and date, showing the number of hours and minutes into the day, along with the day of the week, date, month and year; as shown below. 3. Implement the onmouseover event handler for the welcome message paragraph to change the style of the welcome paragraph (background colour to yellow). 4. Implement onmouseout effects to change the style of a paragraph back to its original background colour. What will you submit? You should submit: • HTML file with Javascript code. • Screen-shot of the web page showing the output for Step 1. • Screen-shot of the web page showing the output for Step 2. • Screen-shot of the web page showing the output for Step 3. • Screen-shot of the web page showing the output for Step 4.


7.1P: String Objects Tasks In this task you will be exploring the Javascript built-in String Object, along with some of its common methods for doing useful work. To complete this task, you are asked to create a simple form that obtains from the user three inputs (an input string, a substring, and index value). Your code should then, based on this input, provide the output from various string object operations. The actual layout/design of the web page is left up to you, but an example of one that can be used for reference is shown below: What will you submit? You should submit: • Screen-shot of the web page with valid input and substring. • Screen-shot of the web page with valid input and non-existent substring. • Your HTML file. • Your JavaScript file.


Task3 Create a program that generates 20 random numbers from the range [0, 999] and displays them in the first line of the screen. Then it arranges the resulting array in ascending order and prints two lines: The first of them contains ordered numbers, and below the neub (second line) are their serial numbers from the original generated line.


Build and Enhance the "Product Discount Calculator" application with the syntaxes and skills you've learnt so far (Including PHP, HTML, CSS, and JS).


Which file system does Linux currently use for the volume on which Linux is installed?


6. Your macOS installation is corrupted and you want to boot from an external Thunderbolt hard drive to repair the installation. Which key(s) do you hold down at startup to boot from the external hard drive?


How often does Time Machine create new backups, and how long are these backups kept?


1. Why is the scrollbar typically hidden from view in macOS?


7. You are helping your friend troubleshoot a problem with his Linux server. You enter a common Linux command and discover it doesn't work exactly as you expected. What might be the problem and what do you do next?


You work at an IT help desk and have been asked to set up 25 new user accounts in Active Directory.look at several script files named CreateNewUsers that are stored on the drive. Which one is likely to Your boss tells you to save time by using a Power Shell script that's available on a network share. You be the one you want?


9. You are running a web server app in Ubuntu Server. Users complain that their browsers are loading webpages with errors. Where are you likely to find the log file where the web server reports its errors?


- Explain why most Linux commands work about the same on system. Mac computer as they do on a Linux


What is the full path to the home directory of the user account lucio in Linux?


4. A scanner connected to your Mac is giving problems and you suspect corrupted device drivers. What should you do first? Second?


b) Describe the principles behind RESTful web interfaces. c) Suggest a possible REST ful URL scheme for the community site that could usefully support the collection owners and moderators as well as ordinary users.


No Question Found for“Web Designing And Development”

we will make sure available to you as soon as possible.