{"id":908,"date":"2020-08-01T04:05:37","date_gmt":"2020-08-01T04:05:37","guid":{"rendered":"https:\/\/codeinsightacademy.com\/blog\/?p=908"},"modified":"2020-08-02T10:09:00","modified_gmt":"2020-08-02T10:09:00","slug":"assignment","status":"publish","type":"post","link":"https:\/\/codeinsightacademy.com\/blog\/javascript\/assignment\/","title":{"rendered":"Assignment"},"content":{"rendered":"<p style=\"text-align: center;\">===========================================================================<br \/>\nWeek 1 Assignment<br \/>\n===========================================================================<\/p>\n<ol>\n<li>WAP to read radius of circle and calculate Area and Circumference<\/li>\n<li>WAP to read 3 numbers and find their mean<\/li>\n<li>WAP to read 2 numbers and find Sum of their last digit<\/li>\n<li>WAP to read 4 digit number and sum of its digits<\/li>\n<li>WAP to read radius of Sphere and find its Volume<\/li>\n<li>WAP to read 3 digit number and sum of its digit<\/li>\n<li>WAP to read 4 digit number and find reverse of that number<\/li>\n<li>WAP to read temperature in degree Celsius and convert it into Fahrenheit<\/li>\n<li>WAP to read value in inches and print it in feet and inches<\/li>\n<li>WAP to read marks of 5 subjects and print total and percentage<\/li>\n<li>Create radio button<br \/>\nred blue yellow green<br \/>\non change of radio button change background color of body<\/li>\n<li>Create 2 select box and move items from left to right and vice versa<\/li>\n<li>Create 3 select box country state city<\/li>\n<\/ol>\n<ul>\n<li>on change of country load states<\/li>\n<li>on change of state load cities<\/li>\n<\/ul>\n<blockquote class=\"wp-embedded-content\" data-secret=\"X59yqngqj3\"><p><a href=\"https:\/\/codeinsightacademy.com\/blog\/c-programming\/programs-on-if-statement\/\">Programs on If Statement<\/a><\/p><\/blockquote>\n<p><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Programs on If Statement&#8221; &#8212; \" src=\"https:\/\/codeinsightacademy.com\/blog\/c-programming\/programs-on-if-statement\/embed\/#?secret=X59yqngqj3\" data-secret=\"X59yqngqj3\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"n2iqEZWteP\"><p><a href=\"https:\/\/codeinsightacademy.com\/blog\/c-programming\/switch-statement\/\">SWITCH Statement<\/a><\/p><\/blockquote>\n<p><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;SWITCH Statement&#8221; &#8212; \" src=\"https:\/\/codeinsightacademy.com\/blog\/c-programming\/switch-statement\/embed\/#?secret=n2iqEZWteP\" data-secret=\"n2iqEZWteP\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p style=\"text-align: center;\">===========================================================================<br \/>\nWeek 2 Assignment<br \/>\n===========================================================================<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"Nr597MCaBG\"><p><a href=\"https:\/\/codeinsightacademy.com\/blog\/c-programming\/loops-programs\/\">Loops Programs<\/a><\/p><\/blockquote>\n<p><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Loops Programs&#8221; &#8212; \" src=\"https:\/\/codeinsightacademy.com\/blog\/c-programming\/loops-programs\/embed\/#?secret=Nr597MCaBG\" data-secret=\"Nr597MCaBG\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"3V4axNnA2E\"><p><a href=\"https:\/\/codeinsightacademy.com\/blog\/c-programming\/arrays-programs-one-dimensional\/\">Arrays Programs (One Dimensional)<\/a><\/p><\/blockquote>\n<p><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Arrays Programs (One Dimensional)&#8221; &#8212; \" src=\"https:\/\/codeinsightacademy.com\/blog\/c-programming\/arrays-programs-one-dimensional\/embed\/#?secret=3V4axNnA2E\" data-secret=\"3V4axNnA2E\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"DG76Ns4d9K\"><p><a href=\"https:\/\/codeinsightacademy.com\/blog\/c-programming\/arrays-programs-multi-dimensional\/\">Arrays Programs (Multi Dimensional)<\/a><\/p><\/blockquote>\n<p><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Arrays Programs (Multi Dimensional)&#8221; &#8212; \" src=\"https:\/\/codeinsightacademy.com\/blog\/c-programming\/arrays-programs-multi-dimensional\/embed\/#?secret=DG76Ns4d9K\" data-secret=\"DG76Ns4d9K\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p><strong>JSON<\/strong><\/p>\n<ol>\n<li>Create JSON Object with following information<br \/>\nRoll Number, Name, Age, Sex<br \/>\nEmpNo, Name, Job, Sal<br \/>\nName, Wages, WorkingDays<\/li>\n<li>WAP to create array of 5 json objects\u00a0<strong>worker<\/strong>\u00a0and display average payment<br \/>\nobject parameter: name,wages,working_days<\/li>\n<li>WAP to create array of 5 json objects <strong>student\u00a0<\/strong>and print all student records who has greater than average marks<br \/>\nroll_no, name, marks<\/li>\n<\/ol>\n<p><strong>AJAX (fetch API)<\/strong><\/p>\n<ol>\n<li>WAS to make AJAX call for following operations\n<ol>\n<li><span id=\"LC2\" class=\"line\" lang=\"html\">Input a number in text box and get square of that number from php script<\/span><\/li>\n<li><span id=\"LC3\" class=\"line\" lang=\"html\">Input 2 numbers in text box and get addition of two numbers from php script<\/span><\/li>\n<li><span id=\"LC4\" class=\"line\" lang=\"html\">Input radius in text box and find area and circumference of circle from php script<\/span><\/li>\n<li><span id=\"LC5\" class=\"line\" lang=\"html\">Input length and breadth in text box and find area of rectangle from php script<\/span><\/li>\n<li><span id=\"LC6\" class=\"line\" lang=\"html\">Input a number in text box and find factorial of number from php script<br \/>\n<\/span><\/li>\n<\/ol>\n<\/li>\n<li>WAP to print users data in html table by making ajax call to\n<ul>\n<li>https:\/\/jsonplaceholder.typicode.com\/users<\/li>\n<li>https:\/\/reqres.in\/api\/users (should have column to display thumbnail of user avatar)<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p style=\"text-align: center;\">===========================================================================<br \/>\nWeek 3 Assignment<br \/>\n===========================================================================<\/p>\n<ol>\n<li>Design a class Rectangle\n<ul>\n<li><strong>data members:<\/strong>\n<ol>\n<li>\u00a0length<\/li>\n<li>breadth<\/li>\n<\/ol>\n<\/li>\n<li><strong>member function \/ method:\u00a0<\/strong>\n<ol>\n<li>setDimension()<\/li>\n<li>area()<\/li>\n<li>perimeter()<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<\/li>\n<li>Design a class Worker\n<ul>\n<li><strong>data members:<\/strong>\n<ol>\n<li>wages<\/li>\n<li>wdays<\/li>\n<\/ol>\n<\/li>\n<li><strong>member function \/ method:<\/strong>\n<ol>\n<li>setData()<\/li>\n<li>payment()<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<\/li>\n<li>Design a class Box\n<ul>\n<li><strong>data members<\/strong>:\n<ol>\n<li>length<\/li>\n<li>breadth<\/li>\n<li>height<\/li>\n<\/ol>\n<\/li>\n<li><strong>member functions \/ methods<\/strong>:\n<ol>\n<li>setDimension()<\/li>\n<li>volume()<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<\/li>\n<li>Design a class Rectangle\n<ul>\n<li><strong>data members:<\/strong>\n<ol>\n<li>length<\/li>\n<li>breadth<\/li>\n<\/ol>\n<\/li>\n<li><strong>member functions \/ methods:<\/strong>\n<ol>\n<li>setDimension()<\/li>\n<li>area()<\/li>\n<li>perimeter()<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<\/li>\n<li>Design a class Box\n<ul>\n<li><strong>data members:<\/strong>\n<ol>\n<li>length<\/li>\n<li>breadth<\/li>\n<li>height<\/li>\n<\/ol>\n<\/li>\n<li><strong>member functions \/ methods:<\/strong>\n<ol>\n<li>volume()<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<\/li>\n<li>Design a class Account\n<ul>\n<li><strong>data members:<\/strong>\n<ol>\n<li>account_number<\/li>\n<li>balance<\/li>\n<\/ol>\n<\/li>\n<li><strong>member functions \/ methods:<\/strong>\n<ol>\n<li>deposit()<\/li>\n<li>withdraw()<\/li>\n<li>showBalance()<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<\/li>\n<li>Design a class Set\n<ul>\n<li><strong>data members:<\/strong>\n<ol>\n<li>3 numbers<\/li>\n<\/ol>\n<\/li>\n<li><strong>member functions \/ methods:<\/strong>\n<ol>\n<li>SUM()<\/li>\n<li>MEAN()<\/li>\n<li>MAX()<\/li>\n<li>MIN()<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<\/li>\n<li>Design a class Student\n<ul>\n<li><strong>data members:<\/strong>\n<ol>\n<li>roll_number<\/li>\n<li>name<\/li>\n<\/ol>\n<\/li>\n<li><strong>member functions \/ methods:<\/strong>\n<ol>\n<li>setData()<\/li>\n<li>getData()<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<\/li>\n<li>Design a class Account\n<ul>\n<li><strong>data members:<\/strong>\n<ol>\n<li>account_number<\/li>\n<li>balance<\/li>\n<li>interest_rate<br \/>\nNOTE: interest_rate must be shared by all objects and its default value 10.25<\/li>\n<\/ol>\n<\/li>\n<li><strong>member function:<\/strong>\n<ol>\n<li>interest(no_of_years)<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<\/li>\n<li>Design a class Student\n<ul>\n<li><strong>data members:<\/strong>\n<ol>\n<li>roll_number<\/li>\n<li>name<\/li>\n<\/ol>\n<\/li>\n<li><strong>member functions \/ methods:<\/strong>\n<ol>\n<li>setData()<\/li>\n<li>getData()<br \/>\nNOTE: roll_number must be automatically generated.It also keep track of total number of Students.<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<\/li>\n<li>Design a class Student\n<ul>\n<li><strong>data members:<\/strong>\n<ol>\n<li>roll_number<\/li>\n<li>name<\/li>\n<\/ol>\n<\/li>\n<li><strong>member functions \/ methods:<\/strong>\n<ol>\n<li>getData()<\/li>\n<li>showData()<br \/>\nCreate Array of 5 Student objects<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<\/li>\n<li>Create array of Student Objects\n<ul>\n<li><strong>data members:<\/strong>\n<ol>\n<li>roll_no<\/li>\n<li>name<\/li>\n<li>college<\/li>\n<\/ol>\n<\/li>\n<li><strong>member functions \/ methods:<\/strong>\n<ol>\n<li>readData()<\/li>\n<li>showData()<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<\/li>\n<li>Create a class RBI\n<ul>\n<li><strong>data members:<\/strong>\n<ol>\n<li>account_number<\/li>\n<li>balance<\/li>\n<\/ol>\n<\/li>\n<li><strong>member functions \/ methods:<\/strong>\n<ol>\n<li>deposit(int amt)<\/li>\n<li>withdraw(int amt)<\/li>\n<li>showBalance()<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>Fun with JS CSS and HTML<\/p>\n<ol>\n<li class=\"code highlight\" lang=\"plaintext\"><span id=\"LC1\" class=\"line\" lang=\"plaintext\">Create radio button<\/span> <span id=\"LC2\" class=\"line\" lang=\"plaintext\"> red blue yellow green<\/span> <span id=\"LC3\" class=\"line\" lang=\"plaintext\"> on change of radio button change background color of body<\/span><br \/>\n<a href=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2020\/08\/shailesh_js_assignment-day-3_1_rgb_javascript.jpg\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-917\" src=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2020\/08\/shailesh_js_assignment-day-3_1_rgb_javascript-300x92.jpg\" alt=\"\" width=\"300\" height=\"92\" srcset=\"https:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2020\/08\/shailesh_js_assignment-day-3_1_rgb_javascript-300x92.jpg 300w, https:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2020\/08\/shailesh_js_assignment-day-3_1_rgb_javascript.jpg 320w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/li>\n<li class=\"code highlight\" lang=\"plaintext\"><span class=\"line\" lang=\"plaintext\"><span class=\"line\" lang=\"plaintext\">Create 2 select box and move items from left to right and vice versa<\/span><\/span><a href=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2020\/08\/shailesh_js_assignment-day-3_2_select_left_to_right.jpg\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-918\" src=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2020\/08\/shailesh_js_assignment-day-3_2_select_left_to_right-300x146.jpg\" alt=\"\" width=\"300\" height=\"146\" srcset=\"https:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2020\/08\/shailesh_js_assignment-day-3_2_select_left_to_right-300x146.jpg 300w, https:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2020\/08\/shailesh_js_assignment-day-3_2_select_left_to_right.jpg 447w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/li>\n<li class=\"code highlight\" lang=\"plaintext\"><span id=\"LC6\" class=\"line\" lang=\"plaintext\"><\/span> <span id=\"LC7\" class=\"line\" lang=\"plaintext\">Create 3 select box country state city<\/span> <span id=\"LC8\" class=\"line\" lang=\"plaintext\"> a) on change of country load states<\/span> <span id=\"LC9\" class=\"line\" lang=\"plaintext\"> b) on change of state load cities<\/span><br \/>\n<strong>NOTE: Use AJAX call and fetch country states and cities from mysql database<\/strong><br \/>\n<a href=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2020\/08\/shailesh_js_assignment-day-3_3_country_state_city.jpeg\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-919\" src=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2020\/08\/shailesh_js_assignment-day-3_3_country_state_city-300x270.jpeg\" alt=\"\" width=\"300\" height=\"270\" srcset=\"https:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2020\/08\/shailesh_js_assignment-day-3_3_country_state_city-300x270.jpeg 300w, https:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2020\/08\/shailesh_js_assignment-day-3_3_country_state_city.jpeg 552w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/li>\n<li lang=\"plaintext\">Create tic-tac-toe game.\n<ol>\n<li lang=\"plaintext\">single player with computer<\/li>\n<li lang=\"plaintext\">multiplayer with manual event\n<p><a href=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2020\/08\/tic-tac-toe-js.gif\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-921\" src=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2020\/08\/tic-tac-toe-js.gif\" alt=\"\" width=\"286\" height=\"298\" \/><\/a><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>=========================================================================== Week 1 Assignment =========================================================================== WAP to read radius of circle and calculate Area and Circumference WAP to read 3 numbers and find their mean WAP to read 2 numbers and find Sum of their last digit WAP to read 4 digit number and sum of its digits WAP to read radius of Sphere and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[18],"tags":[],"_links":{"self":[{"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/posts\/908"}],"collection":[{"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/comments?post=908"}],"version-history":[{"count":10,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/posts\/908\/revisions"}],"predecessor-version":[{"id":923,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/posts\/908\/revisions\/923"}],"wp:attachment":[{"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/media?parent=908"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/categories?post=908"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/tags?post=908"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}