Question
dont know how to do
Create a web page using a text editor. Name the file with your name and the number of the assignment. Submit the assignment v
image.png
0 0
Add a comment Improve this question Transcribed image text
Answer #1

To solve the above problem, I have created a web page named NumberGames.html

NumberGames.html

<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
</head>
<style>
td {
border: 1px solid grey;
padding: 5px;
}
</style>
<script>
function claculateResult(){
let noOfCase = document.getElementById("noOfCase").value;
var newHTML = [];
newHTML.push('<tr><td>Number</td><td>Double</td><td>Squre</td><td>Total</td></tr>');
if(noOfCase>1 && noOfCase<=25){
for(let i=1; i<=noOfCase; i++){
let obj = {
num: i,
double: i+i,
squre: i*i,
total: i + (i+i) + (i*i)
}
newHTML.push('<tr><td>' + obj.num + '</td><td>' + obj.double + '</td><td>' + obj.squre + '</td><td>' + obj.total + '</td>');
}
}
$("#result").html(newHTML.join(''));
}
</script>
<body>

<div>Number <input type="number" value="noOfCase" name="noOfCase" id="noOfCase"></input></div><br>
<button type="button" onclick="claculateResult()">Go For It</button><br>
<br>
<table id="result"></table>
</body>
</html>

----------------------------------------------------------------------------------------------------------------------

Output

Add a comment
Know the answer?
Add Answer to:
dont know how to do Create a web page using a text editor. Name the file...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Create an HTML5 page that contains a form to collect the following data. The text in...

    Create an HTML5 page that contains a form to collect the following data. The text in bold indicates the id value that should be assigned to each html control: Product (drop down list) product – iPad, iPhone 6S, Galaxy 5S, Moto X, and so on Quantity (number) quantity Unit price (number) unit_price Discount (%)(number) discount_rate Date (date)   order_date First Name (text box)   first_name Last Name (text box)   last_name Payment type (drop down list)   payment_type – Visa, Master, Discover, Amex, and...

  • please type out code ty nevermind .Exam Results Create a Web Page like the following using...

    please type out code ty nevermind .Exam Results Create a Web Page like the following using exam-results txt Page 3 of4 Web fundamentals exam result First name Last name 01 Gosho 02 Tosho 03 Gencho 04 Draga 05 Gosho Goshev Toshev Genchev Draganova Goshev Score 500 500 500 500 500 Average score from 05 participan Create two fies:exam-results.html andexam-resukses Constrains Border for ctablex, <td>, <t», cth> 1px solid #000000; thead» with (th col span."4"ว for Table Headng . <td class...

  • JAVA Primitive Editor The primary goal of the assignment is to develop a Java based primitive...

    JAVA Primitive Editor The primary goal of the assignment is to develop a Java based primitive editor. We all know what an editor of a text file is. Notepad, Wordpad, TextWrangler, Pages, and Word are all text editors, where you can type text, correct the text in various places by moving the cursor to the right place and making changes. The biggest advantage with these editors is that you can see the text and visually see the edits you are...

  • Create a program (Lab9_Act1_Write.py) that will read in data from the keyboard and store it in...

    Create a program (Lab9_Act1_Write.py) that will read in data from the keyboard and store it in a file. Your program should prompt the user for the name of the file to use and then request values be entered until the user is done. This data should be written to two files: a text file, user_file_name.txt and a comma separated value file, user_file_name.csv. To help you with decision making, we suggest that you ask the user to input data representing students’...

  • JAVA Primitive Editor (Please help, I am stuck on this assignment which is worth a lot...

    JAVA Primitive Editor (Please help, I am stuck on this assignment which is worth a lot of points. Make sure that the program works because I had someone answer this incorrectly!) The primary goal of the assignment is to develop a Java based primitive editor. We all know what an editor of a text file is. Notepad, Wordpad, TextWrangler, Pages, and Word are all text editors, where you can type text, correct the text in various places by moving the...

  • hello i was given an assignment on object orientated programming and we were asked to use...

    hello i was given an assignment on object orientated programming and we were asked to use Microsoft word, Comments for significant parts should be coloured green. And can you recommend some videos too so i can understand it better with your help. i have some questions about this assignment given and was told to create in Microsoft word Name your file with your full name, e.g.. Jessica_Jones.docx or (arth). • Programs/codes must be properly indented and free of compile-time errors....

  • in c++ please Page 1 of 3 (PRO) Project Assignment Instructions Last Charged: 6/1/2020 Read and...

    in c++ please Page 1 of 3 (PRO) Project Assignment Instructions Last Charged: 6/1/2020 Read and follow the directions below carefully and perform the steps in the order listed. You will be solving one program as instructed and turning in your work electronically via an uploaded file within Eagle Online/Canvas and copy & paste the program to the Text Entry box as well. Make sure and check your work prior to uploading the assignment (NOTE: For Steps 1 & 2...

  • Develop an HTML form that could be used to enter your book information (Books, Authors, and...

    Develop an HTML form that could be used to enter your book information (Books, Authors, and Publishers) start with the HTML/JavaScript template provided Expand upon it! What field information would you enter into a system? Have your form use more then just character text fields ... radio buttons, pick lists, and other elements make your form easier to use and you don't need to do lots of JavaScript checks. What fields would be mandatory ... which could be left blank?...

  • I need help with this assignment in C++, please! *** The instructions and programming style detai...

    I need help with this assignment in C++, please! *** The instructions and programming style details are crucial for this assignment! Goal: Your assignment is to write a C+ program to read in a list of phone call records from a file, and output them in a more user-friendly format to the standard output (cout). In so doing, you will practice using the ifstream class, I'O manipulators, and the string class. File format: Here is an example of a file...

  • SOLVE USING C!!! Project objective: Conditional statements, loops, reading from file, user defined functions. **Submit source...

    SOLVE USING C!!! Project objective: Conditional statements, loops, reading from file, user defined functions. **Submit source code (LargeProg1.c) through Canvas One source code file(unformatted text) will be submitted Here is INCOMPLETE code to get started: LargeProg1.c The file name must match the assignment The code should be tested and run on a Microsoft compiler before it is uploaded onto Canvas The code must be submitted on time in order to receive credit (11:59PM on the due date) Late submissions will...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT