Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. Creste a wab applicat on that perorms mult pie tasks 2. Laa baca for ineraton and osnsibandis ta maka dasisions Uver inew Assynumeni work
1. Creste a wab applicat on that perorms mult pie tasks 2. Laa baca for ineraton and osnsibandis ta maka dasisions Uver inew Assynumeni work [2b marka] Please foke the instuctions ant camplete al of the scepr Creact a batic: akhiml file and an.jp fio for the You m.st clas the the boves attar uear tirks the buthen Fart 1: Wrime code that does the boloming (You dent tave to valudate User mput for thas part) a) Ask tho ueerto crise a satting value. b) Ask lte viee to triser an moremert value. c) Aak the ueer the number of times to apply the incremert. di Use a for loop to display the blomong to the welspage - Deeplay the starting val s, then add the ineramant valua to it and disploy the resul. Aepeat the number of anes the user requested. So, it the user enters b for the number of tmes to repeat, only the starting n.mber will he shown - Example: starting 10, interral: 2, repeat: 1 should cutput the folowng numbers 1012 1015202530 Part 2: Write code that uses a loop to mimic the behavior of Jauaseripts Sting repeatip method a) Ask the user to erler sorre teat. b) Aak the usar to erter a roe-nepariva nimbar. You don't have to valkdote Usar input for this part c) "Hulply" the string by the entered mamber. Just repeat the string, do not add ary ofher chareciers - "Bect cjuce" 3 = "EcatijuiceEcejejuiceectejuice" - Tig Ras Car" - 2 - Pig Ras Carkig Ras Car - T=e2+Q=n d) Dleplay the output to the achpage Pait 3 Wirit eate that deee the fileming 2) Witte a function named enbertvonNegativel. miserth. The function displays the pompt and ask the ueer - When the ueer eniers a lad value, use an alert to deplay an emer meeeape. Display one of the following messoges. L. "You did not emer a number, please try agan." il. "You cntered a negative number, please try ogan." Display the number entered by the user an the webpage if it valldates. al Ask the user to enier a number to speoty the s ze of an x. examples for with 5 and width 6. Deplay the tiangle ineide the HTML's epres ekment. xxx&xxxxxxxxxxxxx c) Cnca you haze a aincli X drawn comactly add a sesond pumpt and ask the usar hes meny Xa ta draw. Then draw ther many Xa cone an tap of nother se t mighe look ike the solowing for 3 Xs of width 5. Submission assigrment. - If yeu da not zip your fias you wil meste 7FRO ter thia asoichmant. Grading Den't add any c.ss. It man cauke fross and yoe will inse marka. Hegjanzed code will recenve B pensily and will be reported lor Acadamic Initgrity Violetion. Marts wil be acsignod as folowe: - 4 mades for Pat 1 - 4 marks for Part 2 - 5 marks for Part 3 - 7 maka for Pet 4 - 2 marks for Javesorpt code styk. 3ee the style gudie on D2L (2) Assignment6.pdt - Adobe Acrobat Reader (64-bit) File Edit View Sign Windaw Help Home Tools Assignmentf.pdf Convert to Microsoft Word (".docc) Document Language: Fnglish (uL.). Changr Convert, edit and e-sign PDF forms \& agreements 1. Creste a wab applicat on that perorms mult pie tasks 2. Laa baca for ineraton and osnsibandis ta maka dasisions Uver inew Assynumeni work [2b marka] Please foke the instuctions ant camplete al of the scepr Creact a batic: akhiml file and an.jp fio for the You m.st clas the the boves attar uear tirks the buthen Fart 1: Wrime code that does the boloming (You dent tave to valudate User mput for thas part) a) Ask tho ueerto crise a satting value. b) Ask lte viee to triser an moremert value. c) Aak the ueer the number of times to apply the incremert. di Use a for loop to display the blomong to the welspage - Deeplay the starting val s, then add the ineramant valua to it and disploy the resul. Aepeat the number of anes the user requested. So, it the user enters b for the number of tmes to repeat, only the starting n.mber will he shown - Example: starting 10, interral: 2, repeat: 1 should cutput the folowng numbers 1012 1015202530 Part 2: Write code that uses a loop to mimic the behavior of Jauaseripts Sting repeatip method a) Ask the user to erler sorre teat. b) Aak the usar to erter a roe-nepariva nimbar. You don't have to valkdote Usar input for this part c) "Hulply" the string by the entered mamber. Just repeat the string, do not add ary ofher chareciers - "Bect cjuce" 3 = "EcatijuiceEcejejuiceectejuice" - Tig Ras Car" - 2 - Pig Ras Carkig Ras Car - T=e2+Q=n d) Dleplay the output to the achpage Pait 3 Wirit eate that deee the fileming 2) Witte a function named enbertvonNegativel. miserth. The function displays the pompt and ask the ueer - When the ueer eniers a lad value, use an alert to deplay an emer meeeape. Display one of the following messoges. L. "You did not emer a number, please try agan." il. "You cntered a negative number, please try ogan." Display the number entered by the user an the webpage if it valldates. al Ask the user to enier a number to speoty the s ze of an x. examples for with 5 and width 6. Deplay the tiangle ineide the HTML's epres ekment. xxx&xxxxxxxxxxxxx c) Cnca you haze a aincli X drawn comactly add a sesond pumpt and ask the usar hes meny Xa ta draw. Then draw ther many Xa cone an tap of nother se t mighe look ike the solowing for 3 Xs of width 5. Submission assigrment. - If yeu da not zip your fias you wil meste 7FRO ter thia asoichmant. Grading Den't add any c.ss. It man cauke fross and yoe will inse marka. Hegjanzed code will recenve B pensily and will be reported lor Acadamic Initgrity Violetion. Marts wil be acsignod as folowe: - 4 mades for Pat 1 - 4 marks for Part 2 - 5 marks for Part 3 - 7 maka for Pet 4 - 2 marks for Javesorpt code styk. 3ee the style gudie on D2L (2) Assignment6.pdt - Adobe Acrobat Reader (64-bit) File Edit View Sign Windaw Help Home Tools Assignmentf.pdf Convert to Microsoft Word (".docc) Document Language: Fnglish (uL.). Changr Convert, edit and e-sign PDF forms \& agreements
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started