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

You have given A and B as two lists with may have repeated element in the respective list. Write a python function Merge_List(A, B) which take list A and B as input and return a merged list. The function will merge the list B with A (means the list A will be expanded) such that the resultant A still contain no duplicates.

 

Example-1

Example-2

Example-3

Input:

A:

 1

 2

 3

 4

 5

 

B:

 1

 1

 1

 11

 2

 3

Output:

[1, 2, 3, 4, 5, 11]

Input:

A:

 1

 2

 3

 4

 5

 

B:

1

2

3

4

5

 

Output:

[1, 2, 3, 4, 5]

Input:

A:

 1

 2

 3

 

B:

4

5

 

Output:

[1, 2, 3, 4, 5]



the goal of this coding exam is to quickly get off you the ground with the array method every().

input

  • the input will be single line containing an array of objects candidatesList

output

  • the output should be single line containing an array with names of the selected candidates.


input1

[{'name': 'Blake Hodges', 'points':[76, 98, 88, 84]}

output1

['Blake Hodges]


"use strict";


process.stdin.resume();

process.stdin.setEncoding("utf-8");


let inputString = "";

let currentLine = 0;


process.stdin.on("data", (inputStdin) => {

 inputString += inputStdin;

});


process.stdin.on("end", (_) => {

 inputString = inputString.trim().split("\n").map((str) => str.trim());

 main();

});


function readLine() {

 return inputString[currentLine++];

}


function main() {

 const candidatesList = JSON.parse(readLine().replace(/'/g, '"'));



  

 // Write your code here

}



Bob a builder has come to you to build a program for his business. He needs to determine the square footage of a room in order to buy materials and calculate costs. Bob charges $125 per square metre. The program is going to ask the user to enter the name of a room. It will then ask for the width and length of the room (in meters) to be built. The program will calculate the room area and use this information to generate an approximate cost. Your program will display the room, the total area and the approximate cost to the screen.


Sample Run 1:


Enter the measurement of the sides of the triangle: 3 4 5


The triangle is an example of scalene triangle.



Sample Run 2:


Enter the measurement of the sides of the triangle: 10 10 8


The triangle is an example of isosceles triangle.



Sample Run 3:


Enter the measurement of the sides of the triangle: 10 10 10


The triangle is an example of equilateral triangle.



Sample Run 4:


Enter the measurement of the sides of the triangle: 10 1 2


The triangle is an example of notriangle triangle.

WAP to count number of Characters in a word using pointer to string.

WAP to find sum of number 1 to 10 using constructor , where n is parameter passed to constructor.

Leftovers

by CodeChum Admin

We Filipinos are quite known for the habit of leaving at least one of the many pieces of food on the plate as it can't be equally divided among all at most times. Just like when 3 people decide to eat a pizza of 10 slices, there will often be at least one slice left on the box. To accurately show just how many pieces of things are left when divided by a certain number, we code it using modulo.

Care to do it for me?


Input

A line containing two integers separated by a space.

10·3

Output

A single line containing an integer.

1




When will the ‘break’ and ‘continue’ statements be used in programme? Mention the scenario


and write the programme to demonstrate this.

Input numbers from the user and find the sum of all those input numbers until the user


inputs zero. In other means, the loop should end when the user enters 0. Finally, display the


sum of all those numbers entered by the user.

Explain the debugging process and explain the debugging facilities available in the IDE.


LATEST TUTORIALS
APPROVED BY CLIENTS