Programming & Computer Science Answers

C++ 9913
Python 5288
Java | JSP | JSF 3611
C 1680
C# 1362
Computer Networks 989
Algorithms 652
Databases | SQL | Oracle | MS Access 641
HTML/JavaScript Web Application 588
Other 537
Visual Basic 358
Assembler 209
Software Engineering 202
AJAX | JavaScript | HTML | PHP 166
MatLAB 150
MatLAB | Mathematica | MathCAD | Maple 124
Action Script | Flash | Flex | ColdFusion 112
UNIX/Linux Programming 89
Web Development 73
Excel 36
ASP | ASP.NET 23
Delphi | Pascal 21
Perl 16
Prolog 9
Functional Programming 9
MathCAD 5
Wolfram Mathematica 4
WPF 4
Ruby | Ruby on Rails 3
NodeJS Web Application 2

Questions answered by Experts: 26 876

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search

Switch Statement


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

  • The blog element and the respective button should be deleted.

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.







Switch Statement


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.

  1. Diameter
  2. Circumference
  3. Area 

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.

Resources

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

  • For one input use the htmlFor property to add HTML for attribute.
  • For other input use the setAttribute method to set the HTML attribute for.

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

LATEST TUTORIALS
APPROVED BY CLIENTS