HTML Homework Help, Project Help, HTML Assignment Solution

There are other places where you can get help with Html programming, however we can promise that with over 32 years experience, you won’t find anyone that will have the success rate we do.

HTML was invented by Tim Berners Lee at CERN, and is used on every website you visit. You use < > to indicate formatting. So <b> means BOLD, <i> means italic, and <a> means a link. Some tags are used on their own (<br/> means a line break, and <img> means an image), but most of them come in pairs.

We at Programminghomeworkhelp offer homework solutions for HTML. HTML is the short form for Hypertext Markup Language, and is the most extensively used language to design web pages.  Hypertext is a term referred by our experts who offer HTML homework help to students. Hypertext is used to link the web pages together. Since HTML is a Markup Language which is used to simply “mark-up” a text document with tags that instructs a web browser how to display the structure. Originally, HTML was developed with the purpose of defining the document structure, the headings, paragraphs, lists, etc. to facilitate the sharing of scientific information between researchers. Now, HTML with the help of different tags available in HTML language is being widely used to format the different web pages. You are at the right place if you are seeking help with HTML homework to learn the use of HTML. There are several other features of HTML that our experts cover while they offer HTML homework help.

We, at programming homework help, offer various assignment services to the students. Students study HTML that stands for Hypertext Markup Language, and is the most widely used language to write Web Pages. Students learn web designing and web development in their semesters for which they search for web design assignment help.

Following is a sample problem that shows the help with Html language assignment we offer.

Javascipt Lumber Yard

You have been tasked with writing a program for a lumber yard.

They sell lumber to employees, contractors and the general public.

They have three different types of discounts.

Employees get a 5% discount, orders over $500 get a 10% discount, and contractors get a 25% discount.

A customer can get only one discount but they may be both an employee and a contractor (or neither) so you want to be sure to give them the largest discount they have earned.

(HINT: You can not ask if the customer is an employee or a contractor because they can be both so you need two separate questions).

The program will take in the total of the order, apply any discounts, apply 6% sales tax and come up with the final amount of the order.

Customers over 90 years old do not have to pay sales tax.

They want to see the amount of the original order, the amount of any discounts, the subtotal, the amount of tax (zero for old people) and the final amount of the bill. Make sure you not only get the correct answer but your code is efficiently written.

Solution

<html>
<head>
<title>Lumber Yard</title>
</head>
<body>
<p>Welcome to the Lumber Yard</p>
<script type="text/javascript">
<!--

function q1()
{
    var salesTax = 0.05;    //5%
    var amount = 200;   //$200
    var total = amount + amount * salesTax;
    document.write("The total cost on sales of $" + amount + " with a sales tax of " + salesTax * 100 + "% is $" + total);
    document.write("<br/>");
}

function money(price)
{
    if (price % 100 == 0) return "$" + price / 100 + ".00";
    if (price % 10 == 0) return "$" + price / 100.0 + "0";  //So we get .5 etc
    return "$" + price / 100 + ".00";
}

function main()
{
    var discount = 0;   //0% discount
    var total = prompt("What is the total value of the sale?", "0") * 100;
    if (total > 50000)
    {
        discount = 10;
    }
    var contractor = prompt("Are you a contractor?", "no");
    var employee = "no";

    if (contractor == "no")
    {
        if (discount == 0)
        {
            employee = prompt("Are you an employee?", "no");
            if (employee != "no")
            {
                discount = 5;
            }
        }
    }
    else
    {
        discount = 25;
    }
    var taxRate = 6;
    if (prompt("How old are you?", "18") > 90)
    {
        taxRate = 0;
    }
    document.write("Original price " + money(total) + "<br/>");
    var discounted = total * discount / 100;
    document.write("Discount is " + money(discounted) + "<br/>");
    var subtotal = total - discounted;
    document.write("The Subtotal is " + money(subtotal) + "<br/>");
    var tax = subtotal * taxRate / 100;
    document.write("The tax is " + money(tax) + "<br/>");
    var finalPrice = subtotal + tax;
    document.write("The final price is " + money(finalPrice) + "<br/>");
}

q1();
main();
// -->
</script>

</body>
</html>

HTML, as it is a markup language, uses various tags to format the content which are enclosed within angular brackets. Most of the tags except a few have their corresponding closing tags. World Wide Web Consortium (W3C) has proposed to use lower-case tags, starting from HTML4. HTML tag<!DOCTYPE>is always used by the web browser to understand the version of the HTML used in the document. Any document starts with a heading tag use different sizes of headings. HTML has six levels of headings from <h1> to <h6> with the end tag of each. An HTML element is always defined by a starting tag that helps the user to learn that if the element contains other content, closing tag is used to end with, where a forward slash precedes the element name. Our expert also explain these various tags used, while they provide HTML assignment help. Our experts who help with HTML project provide well commented tags. Students and working professionals can avail our help with HTML homework anytime.

Our experts provide html assignment to the students where they explain the basics of HTML including the features and use of HTML tags. Students find html assignment questions on preparing listing, creating frames for the pages, creating hyperlinks, and many more in html assignment help. Learners have found our html homework help as the most helpful place for solving their assignment questions.

As an illustration of an assigment, here’s a previous assignment that demonstrates the syle we can do with a Html language assignment.

Process CSV file

Write a program that retrieves a comma separated value file from a web server then processes the data to create three lists in the browser’s console window. The first list should be enrolled students. The second students no longer enrolled, and the third a list of majors represented in the class.

Requirements

  1. HTML
    1. Create a file named index.html.
    2. This file must contain a valid HTML5 document (see day1.html under Fundamentals on Cloud9).
    3. In the document head include a script tag which imports a file hw1.js contained in the same folder as index.html.
    4. Include a single heading 1 in the document body that contains the text Homework 1.
  2. JavaScript
    1. Create a file named hw1.js in the same folder as index.html
    2. All variables and objects must be protected from the global scope (window). Do this by placing your code inside a self-executing function.
    3. You must place “use strict” at the beginning of your function.
    4. Functions Required (you may have more).
      1. Create a function with the following signature function ajax(url,fn) where url is a string representing the location of the file data.csv on the web server and fn is a function to be called when the data file is successfully retrieved from the server. The function must:
        1. Test the browser for support of the XmlHttpRequest object, and output an error message to the console if the object is not supported.
        2. Create an instance of XmlHttpRequest.
        3. Listen for a successful response.
          1. If unsuccessful output an error message to the console.
          2. If the data is successfully retrieved call fn passing in the
            responseText.
      2. Create a function with the following signature process(str) where str is a string value to be processed. The function must:
        1. Ignore the header row.
        2. Sort rows by student last name.
        3. Parse the CSV string by row and field to create the following output
          1. Output an alphabetized list of students with an enrollment status “E”.
            1. Create a heading “Enrolled”.
            2. Tab each student to the right (Hint:\t).
            3. Output Name without quotes a colon then their class standing.
          2. Output an alphabetized list of students without an enrollment status “E”.
            1. Create a heading “Dropped”.
            2. Tab each student to the right (Hint:\t).
            3. Output Name without quotes a colon then their class standing.
          3. Output a list of majors all majors represented in the list of enrolled students.
            1. Create a heading Major Distribution.
            2. Tab each major to the right.
            3. Output the major name without quotes a colon then the percentage of enrolled students in this major rounded to the nearest whole number and a percent symbol.
Task Full Credit Half Credit No Credit
INDEX.HTML FILE PROVIDED (10PT) Meets all Requirements Successfully imports hw1.js Fails to import hw1.js
HW1.JS FILE PROVIDED (10PT) All variables protected from the global scope and “use strict” is declared, and the functions “ajax”,”process” are both declared correctly. JavaScript code in hw1.js executes and the functions “ajax”, “process” are both declared as specified above. Code in hw1.js file does not get called by the browser.
DATA RETRIEVAL (20PT) All requirements above for the function ‘ajax’ are met. Data.csv is successfully retrieved from the server. Program fails to retrieve data.csv file.
SORT DATA BY LAST NAME (10PT) Header row is removed from the data and rows are sorted by last name Header Row is removed. Data is unsorted and header row is not removed.
OUTPUT ENROLLED STUDENTS (10PT) Enrolled students list is outputted exactly as shown in the output
example.
Enrolled student list is outputted, but has mistakes in the data or output Enrolled student list is not outputted or only the heading is outputted.
OUTPUT DROPPED STUDENTS (10PT) Dropped students list is outputted exactly as shown in the output
example.
Dropped student list is outputted, but has mistakes in the data or output. Dropped student list is not outputted or only the heading is outputted.
MAJOR DISTRIBUTION (20PT) Major distribution list is outputted exactly as shown in the output
example.
Major distribution list is outputted, but has mistakes in the data or output. Major distribution list is not outputted or only the heading is outputted.
STYLE AND DOCUMENTATION (10PT) Code is neat with whitespace and indentation to improve
readability and has comments that explains what each block major block of code does.
Code is neat with or without whitespace and indentation and has little or no comments to explain the code Code is difficult to read and has little or no commenting.
EXTRA CREDIT (5PT) Use array.sort with a custom function to order the Major Distribution list from
the largest to smallest percentage.

Our experts have found that HTML is being widely used to format web pages with the help of different tags available in HTML language. Students generally face problems in web page formatting and designing and seek help with html homework. Students also get HTML programming homework help from our team of experts and learn the coding syntax and tags to create and design a web page.

Solution

index.html

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Title of the document</title>
<script type="text/javascript" src="hw1.js" ></script>
</head>

<body>
<h1>Homework 1</h1>
</body>

</html>

 

hw1.js

(function () {
    "use strict";
    ajax("data.csv",process);
    function ajax(url,fn){
    var xmlhttp;

    if (window.XMLHttpRequest)
    {
        var xmlhttp=new XMLHttpRequest();
        xmlhttp.onreadystatechange=function()
        {
            if (xmlhttp.readyState==4 && xmlhttp.status==200)
            {
                fn(xmlhttp.responseText);
            }
        }
        xmlhttp.open("GET",url,true);
        xmlhttp.send();
        alert(xmlhttp.responseText);   
    }
    else
    {
        console.error("XMLHttpRequest not supported");
    }
}

function process(str){
    var allTextLines = str.split(/\r\n|\n/);
    var headers = allTextLines[0].split(',');
        var lines = [];

        for (var i=1; i<allTextLines.length; i++) {
            var data = allTextLines[i].split(',');
            if (data.length == headers.length+1) {

                var tarr = [];
                for (var j=0; j<headers.length+1; j++) {
                    data[j]=data[j].replace(/"/g, "");
                    if(j!=2){
                        data[j]=data[j].trim();
                    }
                    tarr.push(data[j]);
                }
                lines.push(tarr);
            }
        }
        lines.sort(sortFunction);
        console.log("Enroled");
        for (var j=0; j< lines.length;j++) {
            if(lines[j][4]=="E"){
                console.log("\t"+lines[j][0]+", "+lines[j][1]+": "+lines[j][3]);
            }   
        }
        console.log("Dropped");
        for (var j=0; j< lines.length;j++) {
            if(lines[j][4]!="E"){
                console.log("\t"+lines[j][0]+", "+lines[j][1]+": "+lines[j][3]);
                }   
        }
        var majors=[];

        for (var j=0; j< lines.length;j++) {
            if(contains(majors,lines[j][2])>-1){
                majors[contains(majors,lines[j][2])][1]++;
            }
            else{
                var temp=[];
                temp.push(lines[j][2]);
                temp.push(1);
                majors.push(temp);               
            }   
        }
        console.log("Major Distribution");
        for (var j=0; j< majors.length;j++) {
            console.log("\t"+majors[j][0]+": "+Math.round(majors[j][1]*100/lines.length)+"%");
        }
}

function sortFunction(a, b) {
    if (a[0] === b[0]) {
        return 0;
    }
    else {
        return (a[0] < b[0]) ? -1 : 1;
    }
}

function contains(a, obj) {
    for (var i = 0; i < a.length; i++) {
        if (a[i][0] === obj) {
            return i;
        }
    }
    return -1;
}

})();

They also seek help with html homework to solve their complex problems. Students can upload their assignment questions in html homework help and our dedicated experts are always available to provide their solutions with accuracy on time.

Our HTML online tutors explain the concept of using hypertext for hyperlink within a web page in html assignment help. Beginners always have queries regarding HTML defined as a Markup Language for which they seek help with html assignment where our experts explain as HTML simply “mark-up” a text document with tags that tells a Web browser how to structure it to display. We are one of the best assignment solution providers where can students take the benefit of our highly skilled and experienced tutors whenever required.

Our experts who help with HTML assignment also discuss the attributes that are used to define the characteristics of an HTML element, which is placed inside the opening tag of the element. All attributes are made up of two parts i.e., name and another as a value where name is the property to be set. Our experts who provide HTML homework help also provide well commented code which is easy to understand. The three possible values of the property is identified as left, center and right and is given within quotations. The names and values of attributes are case sensitive. The four core attributes that are used in the majority of the HTML elements are the id, title, class and style. The id attribute of an HTML tag is used to identify any element uniquely within a web page. Another element used in HTML is the metadata which gives additional important information about a document in a variety of ways. We also offer onlinehelp with HTML homework. Students who need help with HTML homework can avail our services anytime of the day as we are available round the clock.Our online experts who offer HTML assignment help have years of experience.

Our experts are highly skilled and experienced. Students who require HTML assignment solution help can upload their assignment or may send it through email. Experts are also available 24*7 to provide help with HTML assignment project.