sum prime numbers in the input
given a list of integers, write a program to print the sum of all prime numbers in the list of integers.
note.one is either prime nor composite number.
input
the input will be a single line containing space separated integers..
output
the output should be a single line containing the sum of all prime numbers from 1 to N
explanation
for example, if the given list of integers are
2 4 5 6 7 3 8
as 2,3,5 and 7 are prime numbers,your code should print the sum of these numbers. so the output should be 17
sample input 1
2 4 5 6 7 3 8
sample output 1
17
sample input 2
65 87 96 31 32 86 57 69 20 42
sample output 2
31
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.
a clinical management system has functionalities, such as appointments for patients, managing medication, keeping track of overall resources is quite a challenge. Key elements within this system could be but are not limited to visiting doctors, nurses, patients, medication, and general stationaries. There may be different levels of nurses within the system and some of their tasks could be placing orders for new medication and scheduling patients for visits. The patients, on the other hand, may request an appointment and upon visiting the clinic they get to be prescribed medication by either the visiting doctor or the nurse. Medication within the clinic system is kept as inventory and nursing staff should be able to track the respective levels of medication, with the intention of placing an order if levels are low, from this information complete UML diagram that relates all the classes.
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.