Write a program to determine whether character is a vowel or not.
DOM Manipulations - 3
The goal of this coding exam is to quickly get you off the ground with the DOM Manipulations.
Use the below reference image.
https://res.cloudinary.com/dfxicv9iv/image/upload/v1619260598/dynamic-dom-manipulations-3_bov0vg.gif
When the Delete button is clicked
Html:
<div>
<h1>Your Saved Blogs</h1>
<ul id="blogsListContainer"></ul>
</div>
Note
Use the removeChild method to remove the element from DOM.
It should pass:
JS code implementation should use the removeChild method to remove the child.
When the HTML button element with the id button1 is clicked,the HTML list item element with the id blog1 should remove from the HTML unordered list element with the id blogsListContainer.
When the HTML button element with the id button1 is clicked,the HTML list item element with the id blog2 should remove from the HTML unordered list element with the id blogsListContainer.
Write a small program that displays a menu with the following options:
Program that will calculate either the diameter, circumference or area of a circle. Select your choice.
Use the switch statement. The program is to ask for the radius of a circle. Present the menu and execute the corresponding calculation.
given a four digit number N as input. write a program to print first and last digit of the number
Find latitude and longitude of utmost 20 countries, ordered by population, with a population greater or equal to the population limit given below and have atleast one currency exclusively for themselves. (countries like Madagascar, Sri Lanka but not India, USA). Use the country details from this dataset.
Your task is to find the sum of the length of all lines (in kms) that can be drawn between co-ordinates of these countries.
Assume radius of earth: 6371 km
Round length of each line and final result to 2 decimal points
If co-ordinates are missing for any country use 0.000 N 0.000 E
Population limit: 84497
Note: Population limit will change at random intervals. So please make sure answer is computed for the correct population limit before submitting.
Find latitude and longitude of utmost 20 countries, ordered by population, with a population greater or equal to the population limit given below and have atleast one currency exclusively for themselves. (countries like Madagascar, Sri Lanka but not India, USA). Use the country details from this dataset.
Your task is to find the sum of the length of all lines (in kms) that can be drawn between co-ordinates of these countries.
Assume radius of earth: 6371 km
Round length of each line and final result to 2 decimal points
If co-ordinates are missing for any country use 0.000 N 0.000 E
Population limit: 84497
Note: Population limit will change at random intervals. So please make sure answer is computed for the correct population limit before submitting.
DOM Manipulations - 2
Use the below reference image.
Dynamically add the elements in HTML container element with id
myContainer to achieve the design.
Note
Use the checked property and classList.toggle method to achieve the functionality.
CSS Colors used:
#7a0ecc
#f2ebfe
HTML:
<body>
<div id="myContainer"></div>
</body>
it should pass:
Page should consist of only one HTML checkbox input element with the HTML attribute id having a non-empty value.
Page should consist of only one HTML label element with the HTML attribute for having a non-empty value.
When the HTML checkbox input is clicked,the text content of the HTML label element should change and shouldn't be empty.
When the HTML checkbox input is clicked,the color of the HTML main heading element should change.
DOM Manipulations.
https://assets.ccbp.in/frontend/content/dynamic-webapps/ce-3-1-2-dom-manipulations-op.png
Dynamically add the
input elements in HTML container element with id interestsContainer to achieve the design.
Note
It should pass:
The HTML container element with the id interestsContainer should consist of only two HTML checkbox input elements with the HTML attribute id having a non-empty value.
The HTML container element with the id interestsContainer should consist of only two HTML label elements with the HTML attribute for having a non-empty value.
The value of the HTML id attribute of two HTML checkbox input elements and the value of the HTML for attribute of the two HTML label elements should be the same.
JS code implementation should use the property htmlFor to set the HTML for attribute.
Write a c++ program code that enters a number and prints wether or not it is prime number?
How to give values to the character array using maps