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

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.

Note

Use the removeChild method to remove the element from DOM.

Html code:

<body>

  <div>

   <h1>Your Saved Blogs</h1>

   <ul id="blogsListContainer"></ul>

  </div>

 </body>




In the IPv4 Header format following information is given in decimal number system, with respect to the given information calculate the header checksum value. (10)





VER=4





HLEN =6





Service type=9





Total length=26





Identification=2





Flag=3





Fragmentation offset=0





Time to live=5





Protocol=12





Source IP Address=11.13.12.6





Destination IP Address=10.6.8.11

A teacher asked Ramesh to draw a Quadrilateral of a specific pattern with only symbol. The length and height should be L. Here L is the number of characters in every line.The height of the * quadrilateral is the number of lines it contains.
The slope of the quadrilateral taken as S represents the the number of extra space characters in a line when compared to its next line.
The last line will not have any space characters before the character.

Sample Input
6
9
Sample Output1
         ******
       ******
     ******
   ******
 ******
******


list contains numbers. Write a program for containing only prime numbers.


 Write a python function Read_Prime(fname, list) which takes a list of numbers as an input, use this number to write them in a file "primes.txt" . The function then read the file and return a list containing only prime numbers as shown in the example. Also, write the exception handling code to show the proper message.

 

Example-1

Example-2

Example-2

Input:

primes.txt

[1,2,3,4,5,6,7]

 

Output:

[1,2,3,5,7]

Input:

primes.txt

[3,6,5,13,18,21]

 

Output:

[3,5,13]

Input:

primes.txt

[2,4,6,8,10]

 

Output:

[2]

 

mean,median and mode

given a list of integers,write a program to print the mean,median and mode

mean - the average value of all the numbers.

median - the mid point value in the sorted list.

mode - the most common value in the list. if multiple elements with same frequency are present, print all values with same frequency in increasing order.

input

the input will be a single line of containing space-separated integers.

output

the first line of output should contain the mean, round off the value to 2 decimal places.

the second line of output should contain the median, round off the value to 2 decimal places

the third line of output should contain the mode

mean should always be a float value

mean should be a float value when there are even number of elements, otherwise should be an integer value

see sample input/output for the output format

explanation

for example, if the given list of integers are

2 4 5 6 7 8 2 4 5 2 3 8

the average of all the numbers is 4.67.

after sorting the array,

2 2 2 3 4 4 5 6 7 8 8



Suppose we have an Array1 [5,3,8,15,12]. a) Function called Insert to add value at the beginning of Array. Now Array1 look like(if we insert 1 in beginning): [1,5,3,8,15,12]. b) Function called Insert to add value at the last of Array. Now Array1 look like(if we insert 17 in end): [5,3,8,15,12,17]. c) Function called remove to remove new value after specific value in list. Array1 is [5,3,8,15,12], if we remove 3 then it is [5,8,15,12]. d) Function called Display to show all values of Array1 [5,3,8,15,12]


Write a program that accept three numbers, 

multiply the first and the third numbers 

and divide the results by the second number. 

The output for the program should be as follows:

 The first number is 

The second number is 

The third number is 

Result is


Write in Java program that requires the user to enter their age. Your program shall then


determine if the individual is old enough to drive (age >=18). If the user is younger that 18, your program should tell them to wait for n years, where n is the number of years until they are 18. If the user is 18 or above, your program shall then require the user to enter their name and


surname in two (2) different variables. Having entered their name and surname, you program shall then print the details of the user. Ensure the following, the name of the user shall always start with a capital letter. All the letters of their surname shall be in capital letters.


A and B shall be displayed regardless of how the user had entered their details

shift numbers -2


given a string, write a program to move all the numbers in it to its start.


input


the input will contain a string A.


output


the output should contain a string after moving all the numbers in it to its start.


explanation


for example, if the given string A is "1good23morning456",the output should be "123456goodmorning",as it contains numbers at the start.


sample input 1


1good23morning456


sample output 2


123456goodmorning


sample input 2


com876binat25ion


sample output 2


87625combination


LATEST TUTORIALS
APPROVED BY CLIENTS